Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

** ERROR ** File ended prematurely #1

Closed
sjtubinlong opened this issue Nov 14, 2012 · 1 comment
Closed

** ERROR ** File ended prematurely #1

sjtubinlong opened this issue Nov 14, 2012 · 1 comment

Comments

@sjtubinlong
Copy link

test可以编译,diss会报错,信息如下

This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9)
entering extended mode
(D:\Theis\longbin.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for loaded.
(D:\Theis\sjtumaster-xetex.cls (C:\CTEX\MiKTeX\tex\latex\ams\math\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\CTEX\MiKTeX\tex\latex\ams\math\amstext.sty
(C:\CTEX\MiKTeX\tex\latex\ams\math\amsgen.sty))
(C:\CTEX\MiKTeX\tex\latex\ams\math\amsbsy.sty)
(C:\CTEX\MiKTeX\tex\latex\ams\math\amsopn.sty))
(C:\CTEX\MiKTeX\tex\latex\ams\classes\amsthm.sty)
(C:\CTEX\MiKTeX\tex\latex\amsfonts\amsfonts.sty)
(C:\CTEX\MiKTeX\tex\latex\amsfonts\amssymb.sty)
(C:\CTEX\MiKTeX\tex\latex\tools\bm.sty)
(C:\CTEX\MiKTeX\tex\latex\jknappen\mathrsfs.sty)
(C:\CTEX\MiKTeX\tex\latex\was\upgreek.sty)
Document Class: sjtumaster-xetex 2009/12/25 v0.2a sjtumaster-xetex document cla
ss
(C:\CTEX\MiKTeX\tex\latex\ctex\ctexbook.cls
Document Class: ctexbook 2011/03/11 v1.02c ctexbook document class
(C:\CTEX\MiKTeX\tex\latex\ctex\opt\ctex-common-opts.def)
(C:\CTEX\MiKTeX\tex\latex\ctex\opt\ctex-caption-opts.def)
(C:\CTEX\MiKTeX\tex\latex\ctex\opt\ctex-class-opts.def)
(C:\CTEX\CTeX\tex\latex\ctex\cfg\ctexopts.cfg)
(C:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-loadclass.def
(C:\CTEX\MiKTeX\tex\latex\base\book.cls
Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
(C:\CTEX\MiKTeX\tex\latex\base\bk12.clo)))
(C:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-common.def
(C:\CTEX\MiKTeX\tex\latex\l3kernel\expl3.sty
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3names.sty
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3bootstrap.sty))
(C:\CTEX\MiKTeX\tex\latex\misc\etex.sty)
(C:\CTEX\MiKTeX\tex\latex\graphics\color.sty
(C:\CTEX\MiKTeX\tex\latex\00miktex\color.cfg)
(C:\CTEX\MiKTeX\tex\xelatex\xetex-def\xetex.def))
(C:\CTEX\MiKTeX\tex\latex\graphics\graphics.sty
(C:\CTEX\MiKTeX\tex\latex\graphics\trig.sty)
(C:\CTEX\MiKTeX\tex\latex\00miktex\graphics.cfg))
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3basics.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3expan.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3tl.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3seq.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3int.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3quark.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3prg.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3clist.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3token.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3prop.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3msg.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3file.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3skip.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3keys.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3fp.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3box.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3coffins.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3color.sty)
(C:\CTEX\MiKTeX\tex\latex\l3kernel\l3luatex.sty))
(C:\CTEX\MiKTeX\tex\latex\etoolbox\etoolbox.sty)
(C:\CTEX\MiKTeX\tex\generic\oberdiek\ifpdf.sty)
(C:\CTEX\MiKTeX\tex\generic\ifxetex\ifxetex.sty)
(C:\CTEX\MiKTeX\tex\latex\graphics\keyval.sty)
(C:\CTEX\MiKTeX\tex\latex\tools\indentfirst.sty)
(C:\CTEX\MiKTeX\tex\latex\base\fix-cm.sty
(C:\CTEX\MiKTeX\tex\latex\base\ts1enc.def))
(C:\CTEX\MiKTeX\tex\latex\fancyhdr\fancyhdr.sty)
(C:\CTEX\MiKTeX\tex\latex\ctex\engine\ctex-xecjk-engine.def
(C:\CTEX\MiKTeX\tex\latex\savesym\savesym.sty

LaTeX Warning: You have requested package savesym', but the package providessavesymbol'.

) (C:\CTEX\MiKTeX\tex\xelatex\xecjk\xeCJK.sty
(C:\CTEX\MiKTeX\tex\latex\xkeyval\xkeyval.sty
(C:\CTEX\MiKTeX\tex\generic\xkeyval\xkeyval.tex))
(C:\CTEX\MiKTeX\tex\latex\fontspec\fontspec.sty
(C:\CTEX\MiKTeX\tex\latex\l3packages\xparse\xparse.sty)
(C:\CTEX\MiKTeX\tex\latex\fontspec\fontspec-patches.sty
(C:\CTEX\MiKTeX\tex\latex\base\fixltx2e.sty)


  • LaTeX warning: "xparse/redefine-command"
  • Redefining document command \oldstylenums with arg. spec. 'm' on line 107.
    ) (C:\CTEX\MiKTeX\tex\latex\fontspec\fontspec-xetex.sty
    (C:\CTEX\MiKTeX\tex\latex\base\fontenc.sty
    (C:\CTEX\MiKTeX\tex\latex\euenc\eu1enc.def)
    (C:\CTEX\MiKTeX\tex\latex\euenc\eu1lmr.fd))
    (C:\CTEX\MiKTeX\tex\xelatex\xunicode\xunicode.sty
    (C:\CTEX\MiKTeX\tex\latex\tipa\t3enc.def
    (C:\CTEX\MiKTeX\tex\latex\euenc\eu1lmss.fd))
    (C:\CTEX\MiKTeX\tex\latex\graphics\graphicx.sty))
    (C:\CTEX\MiKTeX\tex\latex\fontspec\fontspec.cfg))))
    (C:\CTEX\MiKTeX\tex\latex\ctex\engine\ctex-cjk-common.def
    (C:\CTEX\CTeX\tex\latex\CJK\CJKfntef.sty
    (C:\CTEX\MiKTeX\tex\latex\cjk\CJKulem.sty
    (C:\CTEX\MiKTeX\tex\latex\ulem\ulem.sty))))
    (C:\CTEX\MiKTeX\tex\latex\ctex\fontset\ctex-xecjk-adobefonts.def)))
    (C:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-caption.def)
    (C:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-class.def)
    (C:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-book.def))
    (C:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-utf8.def)
    (C:\CTEX\MiKTeX\tex\latex\ctex\cfg\ctexcap.cfg
    (C:\CTEX\MiKTeX\tex\latex\ctex\cfg\ctexcap-utf8.cfg))
    (C:\CTEX\MiKTeX\tex\latex\ctex\cfg\ctex.cfg)
    (C:\CTEX\MiKTeX\tex\latex\base\ifthen.sty)
    (C:\CTEX\MiKTeX\tex\latex\threeparttable\threeparttable.sty)
    (C:\CTEX\MiKTeX\tex\latex\tools\dcolumn.sty
    (C:\CTEX\MiKTeX\tex\latex\tools\array.sty))
    (C:\CTEX\MiKTeX\tex\latex\multirow\multirow.sty)
    (C:\CTEX\MiKTeX\tex\latex\booktabs\booktabs.sty)
    (C:\CTEX\MiKTeX\tex\latex\xltxtra\xltxtra.sty
    (C:\CTEX\MiKTeX\tex\generic\oberdiek\ifluatex.sty)
    (C:\CTEX\MiKTeX\tex\latex\realscripts\realscripts.sty
  • LaTeX warning: "xparse/redefine-command"
  • Redefining document command \textsubscript with arg. spec. 's' on line 25.

  • LaTeX warning: "xparse/redefine-command"
  • Redefining document command \textsuperscript with arg. spec. 's' on line 28.
    ) (C:\CTEX\MiKTeX\tex\latex\metalogo\metalogo.sty))
    (C:\CTEX\MiKTeX\tex\latex\subfigure\subfigure.sty
  • Local config file subfigure.cfg used *
    (C:\CTEX\MiKTeX\tex\latex\subfigure\subfigure.cfg))
    (C:\CTEX\MiKTeX\tex\latex\ccaption\ccaption.sty)
    (C:\CTEX\MiKTeX\tex\latex\natbib\natbib.sty)
    (C:\CTEX\MiKTeX\tex\latex\xcolor\xcolor.sty
    (C:\CTEX\MiKTeX\tex\latex\00miktex\color.cfg))
    (C:\CTEX\MiKTeX\tex\latex\marvosym\marvosym.sty)
    (C:\CTEX\MiKTeX\tex\latex\wasysym\wasysym.sty)
    (C:\CTEX\MiKTeX\tex\latex\listings\listings.sty
    (C:\CTEX\MiKTeX\tex\latex\listings\lstmisc.sty)
    (C:\CTEX\MiKTeX\tex\latex\listings\listings.cfg))
    (C:\CTEX\MiKTeX\tex\latex\hyperref\hyperref.sty
    (C:\CTEX\MiKTeX\tex\generic\oberdiek\hobsub-hyperref.sty
    (C:\CTEX\MiKTeX\tex\generic\oberdiek\hobsub-generic.sty))
    (C:\CTEX\MiKTeX\tex\latex\oberdiek\kvoptions.sty)
    (C:\CTEX\MiKTeX\tex\latex\hyperref\pd1enc.def)
    (C:\CTEX\MiKTeX\tex\latex\00miktex\hyperref.cfg)
    (C:\CTEX\MiKTeX\tex\xelatex\xetexurl\url.sty))

Package hyperref Message: Driver: hxetex.

(C:\CTEX\MiKTeX\tex\latex\hyperref\hxetex.def
(C:\CTEX\MiKTeX\tex\latex\hyperref\puenc.def)
(C:\CTEX\MiKTeX\tex\generic\oberdiek\stringenc.sty)
(C:\CTEX\MiKTeX\tex\latex\oberdiek\rerunfilecheck.sty))
(C:\CTEX\MiKTeX\tex\latex\enumitem\enumitem.sty))
(D:\Theis\sjtumaster-xetex.cfg) (D:\Theis\longbin.aux
(D:\Theis\body/abstract.aux)) (C:\CTEX\MiKTeX\tex\latex\tipa\t3cmr.fd)
(C:\CTEX\MiKTeX\tex\latex\hyperref\nameref.sty
(C:\CTEX\MiKTeX\tex\generic\oberdiek\gettitlestring.sty)) (D:\Theis\longbin.out
) (D:\Theis\longbin.out) (C:\CTEX\MiKTeX\tex\latex\amsfonts\umsa.fd)
(C:\CTEX\MiKTeX\tex\latex\amsfonts\umsb.fd)
(C:\CTEX\MiKTeX\tex\latex\jknappen\ursfs.fd)

LaTeX Font Warning: Font shape `U/rsfs/m/n' in size <16.06> not available
(Font) size <17.28> substituted on input line 77.

LaTeX Font Warning: Font shape `U/rsfs/m/n' in size <10.54> not available
(Font) size <10.95> substituted on input line 77.

(C:\CTEX\MiKTeX\tex\latex\wasysym\uwasy.fd)

LaTeX Font Warning: Font shape `U/wasy/m/n' in size <16.06> not available
(Font) size <17.28> substituted on input line 77.

LaTeX Font Warning: Font shape `U/wasy/m/n' in size <10.54> not available
(Font) size <10.95> substituted on input line 77.

LaTeX Font Warning: Font shape `U/rsfs/m/n' in size <15.06> not available
(Font) size <14.4> substituted on input line 77.

LaTeX Font Warning: Font shape `U/wasy/m/n' in size <15.06> not available
(Font) size <14.4> substituted on input line 77.

(C:\CTEX\MiKTeX\tex\generic\oberdiek\se-ascii-print.def) [1] [2]

LaTeX Font Warning: Font shape `U/rsfs/m/n' in size <24.09> not available
(Font) size <24.88> substituted on input line 80.

LaTeX Font Warning: Font shape `U/rsfs/m/n' in size <18.07> not available
(Font) size <17.28> substituted on input line 80.

LaTeX Font Warning: Font shape `U/wasy/m/n' in size <24.09> not available
(Font) size <24.88> substituted on input line 80.

LaTeX Font Warning: Font shape `U/wasy/m/n' in size <18.07> not available
(Font) size <17.28> substituted on input line 80.

[3] [4] [5] [6]
Underfull \hbox (badness 10000) in paragraph at lines 83--83

Underfull \hbox (badness 10000) in paragraph at lines 83--83

Underfull \hbox (badness 10000) in paragraph at lines 83--83

Underfull \hbox (badness 10000) in paragraph at lines 83--83

[7]TFM file C:\CTEX\UserData\fonts/tfm/public/rsfs\rsfs7.tfm already exists.
[8] (D:\Theis\body/abstract.tex

Package hyperref Warning: Token not allowed in a PDF string (Unicode):
(hyperref) removing `-command' on input line 10.

Package hyperref Warning: Token not allowed in a PDF string (Unicode):
(hyperref) removing `\xeCJK@family' on input line 10.

Package xeCJK Warning: Unknown CJK family `ZHHEI' is ignored.
Use \setCJKfamilyfont to define a CJK family. on input line 19.

[1]xelatex[Finished in 1.6s with exit code 1]: The font file could not be found.
xelatex: Data: rsfs7

** ERROR ** File ended prematurely

Output file removed.

@weijianwen
Copy link
Collaborator

水源BBS的回复参考:https://bbs.sjtu.edu.cn/bbscon,board,TeX_LaTeX,file,M.1352890696.A.html

我把内容复制一份过来:

无法编译模板,错误提示:** ERROR ** File ended prematurely

从日志上看,我猜测是缺少Adobe Heiti字体——zhhei 在 tex-xecjk-adobefonts.def 中被定义为使用 Adobe Heiti Std 字体。这是在我机器上看到的字体,我用MacTeX编译时没有遇到缺少字体的警告,你需要检查一下能否找到 Adobe 黑体。

$ fc-list | grep -i adobe | grep -i heiti
/Library/Fonts/AdobeHeitiStd-Regular.otf: Adobe 黑体 Std,Adobe Heiti Std,Adobe Heiti Std R,Adobe 黑体 Std R:style=R,Regular
/Library/Fonts/AdobeFanHeitiStd-Bold.otf: Adobe 繁黑體 Std,Adobe Fan Heiti Std,Adobe 繁黑體 Std B,Adobe Fan Heiti Std B:style=B,Bold
/Users/jianwen/Library/Fonts/AdobeHeitiStd-Regular.otf: Adobe 黑体 Std,Adobe Heiti Std,Adobe Heiti Std R,Adobe 黑体 Std R:style=R,Regular

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants