使用背页中的乳胶文件获取编译错误

问题描述

这是我第一次使用背页。我有一个 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

解决方法

您提供的文件只是一个序言文件。它不包含文档正文 \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}

您提供的文件似乎不是您复制粘贴、更改某些字段并拥有您的产品的经典模板。它看起来更像是一个包含一些函数和预定义的文件,可以帮助您以某种方式构建文件。我建议寻找另一个包含文档主体的模板,您可以立即实施和使用。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...