TeX - LaTeX Asked by Daniel Řehák on January 23, 2021
I am new to LaTeX offline compilers and editors (I used Overleaf before, so with LaTeX language itself – I am pretty comfortable). I am unable to compile a simple document using pdflatex
option.
My OS is Windows 10
.
TeXLive version is probably TeX 3.14159265
(TeX Live 2020/W32TeX)? I tried typing command tex --version
into cmd
and it spat out this answer:
TeX 3.14159265 (TeX Live 2020/W32TeX)
kpathsea version 6.3.2
Copyright 2020 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
TexLive is installed in C:texlive
path.
Version of TeXStudio is 3.0.1
and it is installed in C:Program Files (x86)texstudio
path.
When I write a really simple document and try to Build & View
option using F5
key, I get this following error message:
Could not start Default Compiler:PdfLaTeX:
"C:/texlive/2020/bin/win32/pdflatex.exe" -synctex=1 -interaction=nonstopmode "Pokus1".tex
I tried few things.
1) I tried to go to Options --> Configure TexStudio --> Check 'Show advanced options' box --> Build --> Commands ($PATH)
There I changed an empty path into ‘C:texlive2020binwin32’ where all the TeXstudio .exe files are located. It did not help.
2) I went to Options --> Configure TeXStudio --> Commands
and I changed all the default command values to point into their corresponding .exe
files in TeXLive binwin32
folder. It also didn’t help.
3) Lastly, I tried to compile using cmd
. I placed my Pokus1.tex
file into a Desktop, I opened my cmd
, navigated into Desktop path using cd
command and then I tried to compile it using pdflatex Pokus1
command. I got this message:
C:Userss4tydDesktop>pdflatex Pokus1
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX) (preloaded format=pdflatex)
restricted write18 enabled.
kpathsea: Running mktexfmt pdflatex.fmt
The command name is C:texlive2020binwin32mktexfmt
Running the command C:texlive2020binwin32fmtutil-user.exe
Use of uninitialized value $ver in scalar chomp at C:/texlive/2020/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/texlive/2020/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/texlive/2020/tlpkg/TeXLive/TLWinGoo.pm line 206.
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil: c:/texlive/2020/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil: c:/users/s4tyd/.texlive2020/texmf-config/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under c:/users/s4tyd/.texlive2020/texmf-var/web2c
fmtutil [INFO]: --- remaking pdflatex with pdftex
Can't spawn "cmd.exe": No such file or directory at c:texlive2020texmf-distscriptstexlivefmtutil.pl line 600.
fmtutil [WARNING]: inifile pdflatex.ini for pdflatex/pdftex not found.
fmtutil [INFO]: disabled formats: 5
fmtutil [INFO]: not selected formats: 54
fmtutil [INFO]: failed to build: 1 (pdftex/pdflatex)
fmtutil [INFO]: total formats: 60
fmtutil [INFO]: exiting with status 1
C:texlive2020binwin32runscript.tlu:915: command failed with exit code 1:
perl.exe c:texlive2020texmf-distscriptstexlivefmtutil.pl --user --byfmt pdflatex
I can't find the format file `pdflatex.fmt'!
I was pretty surprised here, since at 5th line you can see kpathsea: Running mktexfmt pdflatex.fmt
. Does mktexfmt
stand for MiKTeX
? Before installing TexLive + TexStudio
I spent approximately 1 week working with MiKTeX + TeXMaker
. However when I almost threw my computer from window, after trying for 3 days to get my glossaries
package working (since MiKTeX doesnt have perl.exe
and installing Active Perl
or Strawberry Perl
did not help) I had it enough with MiKTeX + TeXMaker
and decided to switch to TexLive + TexStudio
. I did proper uninstallation and to make sure, after windows uninstall I scanned my computer using file explorer and deleted all the remaining files containing MiKTeX/TeXMaker
data.
I attach few screenshots showing my default configuration.
If anybody could help my it would be a life saver. I checked all over the internet yet none solution helped.
EDIT:
Build&View
option using LaTeX
/LuaLaTeX
/XeLaTeX
does not work either. I attach screenshot of the message view that I get (particularly using LuaLaTeX
, but the error is same for all of them. Also it was done with default option (in Configure --> Command
no paths were altered and in Options --> Configure TexStudio --> Check
Show advanced options
box --> Build --> Commands ($PATH)
I did not change anything, so it remains empty.
Edit 2: I tried opening TeXLive Shell
and in Actions
tab I tried all 3 options. I attach images:
Regenerate filename database
– seems ok to me
Regenerate formats
-this was huge error. See the 2 screenshots below
Regenerate fontmaps
– I am not sure whether this is OK or NOK
Any ideas? I would really like to avoid having to factory reset my whole computer :/
Edit 3: Maybe we are getting closer to the solution! Those are screenshots of System properties –> Environment variables. Look at the PATH there. Any ideas which path should I add there? Perhaps path into bin directory of TexLive?
Unfortunately I am forced to delete previous picture since I cannot post more than 8.
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP