求助,cmd编译未找到`latex.fmt' 财富值5

2019-12-11 08:40发布

安装了Tex live,命令提示符编译文件时出错,怎么办?C:\testLatex>latex test.texThis is pdfTeX, Version 3.14159265-2.6-1....

安装了Tex live,命令提示符编译文件时出错,怎么办?
C:\testLatex>latex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/W32TeX) (preloaded format=latex)
restricted \write18 enabled.

kpathsea: Running mktexfmt latex.fmt

The command name is C:\texlive\2019\bin\win32\mktexfmt
Running the command C:\texlive\2019\bin\win32\fmtutil-user.exe
Use of uninitialized value $ver in scalar chomp at C:/texlive/2019/tlpkg/TeXLive/TLWinGoo.pm line 204.
Use of uninitialized value $ver in substitution (s///) at C:/texlive/2019/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/texlive/2019/tlpkg/TeXLive/TLWinGoo.pm line 205.
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil: c:/texlive/2019/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil: c:/users/多自然啊,是初恋吧!/.texlive2019/texmf-config/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under c:/users/多自然啊,是初恋吧!/.texlive2019/texmf-var/web2c
fmtutil [INFO]: —- remaking latex with pdftex
Can’t spawn “cmd.exe”: No such file or directory at c:\texlive\2019\texmf-dist\scripts\texlive\fmtutil.pl line 598.
fmtutil [WARNING]: inifile latex.ini for latex/pdftex not found.
fmtutil [INFO]: Disabled formats: 6
fmtutil [INFO]: Not selected formats: 44
fmtutil [INFO]: Failed to build: 1 (pdftex/latex)
fmtutil [INFO]: Total formats: 51
fmtutil [INFO]: exiting with status 1
C:\texlive\2019\bin\win32\runscript.tlu:911: command failed with exit code 1:
perl.exe c:\texlive\2019\texmf-dist\scripts\texlive\fmtutil.pl —user —byfmt latex
I can’t find the format file `latex.fmt’!

我觉得原因很有可能在截图左上角那个红色的。

2条回答
先保证你的路径和文件名都不要用中文,应该使用不带空格的英文。 然后试试在命令行中执行 ``` tlmgr install —reinstall latex ``` 或者 ``` fmtutil-sys --force --all ```

作者追问:2019-12-11 09:33

你说的我都做过了,依然没有用。

回答: 2019-12-11 09:33

既然如此,就别麻烦了,去 [overleaf](www.overleaf.com "overleaf") 吧,在线的,就不用本地安装了

一周热门 更多>