tuxify / zzuthesis

郑州大学本科毕业设计(论文)和研究生学位论文(含 硕士和博士) LaTex 模版。--Imported from code.google.com/p/zzuthesis
45 stars 21 forks source link

模板编译出错 #3

Closed cddwx525 closed 4 years ago

cddwx525 commented 4 years ago

编译本项目时遇到如下错误:

LaTeX Warning: Reference `fig:subfig_a' on page 20 undefined on input line 134.

LaTeX Warning: Reference `fig:subfig_b' on page 20 undefined on input line 135.

Overfull \hbox (16.0pt too wide) in paragraph at lines 154--154
[][][][][][][]
[20C:\Users\fjc\opt\texlive\2016\bin\win32\runscript.tlu:931: C:\Users\fjc\opt\texlive\2016\bin\win32\runscript.tlu:430: module 'ffi' not found:
        no field package.preload['ffi']
        [kpse lua searcher] file not found: 'ffi'
        [kpse C searcher] file not found: 'ffi'

xdvipdfmx:fatal: pdf_ref_obj(): passed invalid object.

Output file removed.
fwrite: Broken pipe
xelatex.exe: make: *** [Makefile:26: main.bbl] Error 1

上网查也没有解决,最后把 main.tex 里面 \include{chp04.tex} 那一行注释之后可以成功编译了, @tuxify 知道这是怎么回事吗?

我是在 Windows 下用 TexLive 2016 编译的。

tuxify commented 4 years ago

@cddwx 我在 Windows 下用 TeXLive 2019 编译可以成功编译的。

看网上说明,这个错误可能跟字体有关,在 chap04.tex 中没注意到有用特殊字体的。如果不想纠结这个问题,可以换新版本的 TeXLive 试试,或者分别注释 chap04.tex 文件中的不同部分,看下错误具体出现在哪一行。看报错信息,可能出现在 154 行前后。

tuxify commented 4 years ago

最新版本的模板完全采用 ctex 宏包的字体配置,字体方面应该没什么问题了。