这是我第一次使用overleaf。我有一个latex模板,当我尝试编译它时,会显示以下错误:
Emergency stop.
<*> header.tex
*** (job aborted, no legal \end found)
Here is how much of TeX's memory you used:
28699 strings out of 480906
561966 string characters out of 5908280
1147859 words of memory out of 5000000
43764 multiletter control sequences out of 15000+600000
539149 words of font info for 32 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
73i,1n,97p,10101b,276s stack positions out of 5000i,500n,10000p,200000b,80000s! ==> Fatal error
occurred, no output PDF file produced!
我不知道该怎么办。
有没有人能建议我如何解决这个问题?
如果你需要更多的信息,请让我知道。我会在这里添加。
编辑:抛出错误的头文件:http://www.itextpad.com/pH0GJ5Bfmg
发布于 2021-04-17 04:08:24
您提供的文档只是一个前导文件。它不包含文档正文\begin{document} ... \end{document}
,因此出现Emergency stop
致命错误。
您应该做的是以某个名称保存此文件,例如mypreamble.tex
。创建一个新的.tex文件,并将这两个文件放在同一个文件目录下。最后,在新文件中
\include{mypreamble.tex}
\begin{document}
\thesistitle
\section{Section 1}
/*
* Write stuff and commands here
*/
\end{document}
您提供的文件似乎不是一个经典的模板,您可以复制-粘贴,更改某些字段并拥有您的产品。它看起来更像是一个包含一些函数和预定义的文件,可以帮助你以某种方式组织你的文件。我建议寻找另一个包含文档主体的模板,您可以立即实现和使用它。
https://stackoverflow.com/questions/67126754
复制相似问题