我使用 Miktex 2.9 和 Texmaker 5.0.3
我编译了pdflatex和Latex。
没有创建 pdf 文件(见图):只有 .aux、.dvi、.log、.tex
错误:使用简单代码未找到文件。
最小工作代码:
\documentclass{article}
\begin{document}
Hi ABC
\end{document}
我使用 pdflatex、latex 进行编译但总是:找不到文件。
我的 PDFLATEX 日志文件:
LOG FILE :
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7050) (preloaded format=latex 2019.6.23) 23 JUN 2019 15:53
entering extended mode
**./testabc.tex
(testabc.tex
LaTeX2e <2018-12-01>
("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/base\article.cls"
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/base\size10.clo"
File: size10.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (testabc.aux)
\openout1 = `testabc.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
[1
] (testabc.aux) )
Here is how much of TeX's memory you used:
202 strings out of 492896
2428 string characters out of 3130709
59664 words of memory out of 3000000
4205 multiletter control sequences out of 15000+200000
3640 words of font info for 14 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
23i,4n,17p,133b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
Output written on testabc.dvi (1 page, 224 bytes)
MY LOG FILE OF LATEX LOG
LOG FILE :
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7050) (preloaded format=latex 2019.6.23) 23 JUN 2019 16:55
entering extended mode
**./testabc.tex
(testabc.tex
LaTeX2e <2018-12-01>
("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/base\article.cls"
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/base\size10.clo"
File: size10.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (testabc.aux)
\openout1 = `testabc.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
[1
] (testabc.aux) )
Here is how much of TeX's memory you used:
202 strings out of 492896
2428 string characters out of 3130709
59664 words of memory out of 3000000
4205 multiletter control sequences out of 15000+200000
3640 words of font info for 14 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
23i,4n,17p,133b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
Output written on testabc.dvi (1 page, 224 bytes).
答案1
正如 David Carlisle 所观察到的,您的系统配置错误。您的 PdfLaTeX 编辑器命令不应有路径,而应简单明了。pdflatex -synctex=1 -interaction=nonstopmode %.tex
因此,如果 pdf 生成不起作用,您将获得file not found
pdf 步骤。Wny,好吧,我猜是老旧的 Texmaker 没有在给定位置找到二进制文件。如何纠正所有应用程序,而不仅仅是这种情况。不要被诱惑,因为许多人会建议简单地重新配置一个条目。当然,将其改回默认值(上面),如果它有效,那么就是这样(任务完成)其他的现在也应该可以工作了。如果仍然不起作用,那么解决方法是确保在启动时系统路径中正确的文件夹,以便所有应用程序(不仅仅是 textmaker)都可以使用它们。我无法确切地说出二进制文件在哪里,但很可能在你的情况下C:\Program Files (x86)\MiKTeX 2.9\MiKTeX\bin.