紧急停止。(非停止模式下作业中止、文件错误)

紧急停止。(非停止模式下作业中止、文件错误)

我正在尝试用 latex 写论文,但还没有完全理解它。我偶然发现了一个问题,如果我清除缓存,这个问题就可以解决。但每次我重新编译它时,错误都会再次出现。

这篇论文现在已经变得很长了,我不知道是什么原因造成的。

以下是红色区域显示的内容:

  Emergency stop.
<*> main.tex

*** (job aborted, file error in nonstop mode)


Here is how much of TeX's memory you used:
 5 strings out of 492990
 123 string characters out of 6132621
 54148 words of memory out of 5000000
 3663 multiletter control sequences out of 15000+600000
 3640 words of font info for 14 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 0i,0n,0p,1b,6s stack positions out of 5000i,500n,10000p,200000b,80000s
!  ==> Fatal error occurred, no output PDF file produced!

这是原始日志:

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex 2017.7.12)  3 SEP 2017 18:35
entering extended mode
 \write18 enabled.
 %&-line parsing enabled.
**main.tex
! Emergency stop.
<*> main.tex

*** (job aborted, file error in nonstop mode)


Here is how much of TeX's memory you used:
 5 strings out of 492990
 123 string characters out of 6132621
 54148 words of memory out of 5000000
 3663 multiletter control sequences out of 15000+600000
 3640 words of font info for 14 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 0i,0n,0p,1b,6s stack positions out of 5000i,500n,10000p,200000b,80000s
!  ==> Fatal error occurred, no output PDF file produced!

有人能告诉我应该搜索什么关键字来解决这个问题吗?

答案1

我假设您 (a) 没有文件main.tex并且 (b) 您以批处理模式调用 latex,因此终端上不会出现任何丢失的错误文件。

如果我做

 pdflatex -interaction=batchmode main.tex

然后终端就显示

$ pdflatex -interaction=batchmode main.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode

但是日志出现在 TeX 的默认日志文件中texput.log并显示

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex 2017.7.3)  3 SEP 2017 20:48
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**main.tex
! Emergency stop.
<*> main.tex

*** (job aborted, file error in nonstop mode)


Here is how much of TeX's memory you used:
 3 strings out of 492987
 99 string characters out of 6132658
 54148 words of memory out of 5000000
 3666 multiletter control sequences out of 15000+600000
 3640 words of font info for 14 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 0i,0n,0p,1b,6s stack positions out of 5000i,500n,10000p,200000b,80000s
!  ==> Fatal error occurred, no output PDF file produced!

相关内容