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}
您提供的文件似乎不是您复制粘贴、更改某些字段并拥有您的产品的经典模板。它看起来更像是一个包含一些函数和预定义的文件,可以帮助您以某种方式构建文件。我建议寻找另一个包含文档主体的模板,您可以立即实施和使用。
推荐阅读
- tsql - 为每个参数设置加密
- angular - 如何避免检测到循环依赖中的警告:使用模态
- r - 如何在 R 中创建漏斗视图
- java - ConstraintLayout layoutParams setMargin() notWorking
- c# - 使用 WebClient 复制到 FTP 后文件正在使用错误
- flutter - 如何使用颤动在页面加载时淡入图像过渡?
- java - 使用循环替换 .txt 文件或 .xml 文件中的文本
- matlab - 加快 MATLAB 中 netcdf 数据的读入
- python - Django 重定向:没有错误,但没有重定向
- jenkins - 有没有办法通过api访问Jenkins自定义环境变量?