我在运行 Parabola(与 Arch 非常相似)的计算机上安装了 LaTex,使用以下命令:
sudo pacman -S texlive-most
。安装过程中我记得屏幕上出现了此错误:
error: command failed to execute correctly
。为了检查 LaTex 是否正常工作,我创建了文件 test.tex:
\documentclass{article}
\begin{document}
dfvlkmdfv
\end{document}
我输入了pdflatex test.tex
,但效果不佳。结果是:
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Parabola GNU/Linux-libre) (preloaded format=pdflatex)
restricted \write18 enabled.
kpathsea: Running mktexfmt pdflatex.fmt
mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):
mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:
mktexfmt: /home/michael/.texlive/texmf-config/web2c/fmtutil.cnf
mktexfmt [INFO]: writing formats under /home/michael/.texlive/texmf-var/web2c
mktexfmt [INFO]: did not find entry for byfmt=pdflatex, skipped
mktexfmt [INFO]: Total formats: 0
mktexfmt [INFO]: exiting with status 0
I can't find the format file `pdflatex.fmt'!
我尝试按照这里的建议去做sudo texconfig rehash
:错误:我找不到格式文件 pdflatex.fmt
但它不起作用,我得到了:
/usr/bin/texconfig: line 1304: mktexlsr: command not found
。那么你有什么建议吗?