# elegantbook模板使用问题 elegantbook.cls(3.08) 之前一直使用的是旧版本,今天下载了新版本3.08,下载的文件可以直接编译通过.但是我吧cls替换原来的,也按照 - #### 从 Github 上下载最新的模板,将 3.x 版本的 elegantbook.cls 替换你当前目录下 2.x 的 elegantbook.cls。 - #### 将下载下来的 logo.png 和 cover.jpg 复制到 2.x 版本 ./figure/ 文件夹下,因为 2.x 使用的是 PDF 文件,需要把 2.x 版本的主文件(main.tex)中的 \logo{logo.pdf} 替换为 \logo{logo.png},\cover{cover.pdf} 替换为 \cover{cover.jpg}。 这个操作了,编译通过不了. 为了进一步找问题,我就把所有input文件注释后,什么都没有进行编译,还是不行. ![文件目录](https://wenda.latexstudio.net/data/attach/190926/kAhALa5i.jpg "文件目录") 这是文件内容 \documentclass[cn,11pt]{elegantbook} \title{ElegantBook:优美的 \LaTeX{} 书籍模板} \subtitle{Elegant\LaTeX{} 经典之作} \author{Ethan Deng \& Liam Huang} \institute{Elegant\LaTeX{} Program} %\date{\today} \version{3.08} \extrainfo{Victory won\rq t come to us unless we go to it. --- M. Moore} \logo{logo.png} \cover{cover.jpg} \begin{document} \maketitle \tableofcontents %\input{chap1-phy} %\input{chap2-imaginary-time} \end{document} 这是错误信息: Command Line: xelatex.exe --interaction=errorstopmode --synctex=-1 "Main-NoteBook.tex" Startup Folder: F:\test This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/W32TeX) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode (./Main-NoteBook.tex LaTeX2e <2018> (./elegantbook.cls Document Class: elegantbook 2019/05/26 v3.08 ElegantBook document class (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/oberdiek/kvoptions.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/graphics/keyval.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/ltxcmds.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/infwarerr.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/etexcmds.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/ifluatex.sty)))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/etoolbox/etoolbox.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/base/book.cls Document Class: book 2018/09/03 v1.4i Standard LaTeX document class (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/base/bk11.clo)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tools/indentfirst.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/comment/comment.sty Excluding comment 'comment') (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/ctex/ctex.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e. sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/ctex/ctexhook.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/ctex/ctexpatch.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/base/fix-cm.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/base/ts1enc.def)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/ms/everysel.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/ctex/config/ctexopts.cfg) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex .def (d:/TexLive2019/texlive/2019/texmf-dist/tex/xelatex/xecjk/xeCJK.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/l3packages/xtemplate/xtemplat e.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/base/fontenc.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/base/tuenc.def)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/ulem/ulem.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/cjk/texinput/CJKfntef.sty))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/zhnumber/zhnumber.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain .def) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-win dows.def (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-win dowsnew.def))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/ctex/config/ctex.cfg) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/ifxetex/ifxetex.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/base/fontenc.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/newtx/newtxtext.sty `newtxtext' v1.531, 2018/03/27 Text macros taking advantage of TeX-Gyre Termes fonts (msharpe) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/fontaxes/fontaxes.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/xkeyval/xkeyval.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/xkeyval/xkeyval.tex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/xkeyval/xkvutils.tex))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/base/fontenc.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/base/t1enc.def) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/lm/t1lmr.fd)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/base/textcomp.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/base/ts1enc.def))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/newtx/newtxmath.sty `newtxmath' v1.553, 2018/05/15 Math macros based originally on txfonts (msharpe ) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/amsmath/amstext.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/amsmath/amsgen.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/amsmath/amsbsy.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/amsmath/amsopn.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/oberdiek/centernot.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/kastrup/binhex.tex)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/anyfontsize/anyfontsize.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/xcolor/xcolor.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/graphics-cfg/color.cfg) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/graphics-def/xetex.def)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/natbib/natbib.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tools/enumerate.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/enumitem/enumitem.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/caption/caption.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/caption/caption3.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/graphics/graphicx.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/graphics/graphics.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/graphics/trig.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/graphics-cfg/graphics.cfg))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/jknapltx/mathrsfs.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/amsfonts/amsfonts.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/amsfonts/amssymb.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/booktabs/booktabs.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tools/multicol.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty Style option: `fancyvrb' v3.2a <2019> (tvz)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/makecell/makecell.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tools/array.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/lipsum/lipsum.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/lipsum/lipsum.ltd.tex)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/hologo.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/ifpdf.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/ifvtex.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/setspace/setspace.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/gbt7714/gbt7714.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/url/url.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/xpatch/xpatch.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfutil-commo n.tex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfutil-commo n-lists.tex)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex .def (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/ms/everyshi.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.t ex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/pgf.revision.tex))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code .tex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code. tex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfkeysfilter ed.code.tex)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-xete x.def (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-dvip dfmx.def (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-comm on-pdf.def)))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftp ath.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/systemlayer/pgfsysproto col.code.tex)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code .tex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.t ex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.t ex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathparser.code .tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.c ode.tex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.b asic.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.t rigonometric.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.r andom.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.c omparison.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.b ase.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.r ound.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.m isc.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.i ntegerarithmetics.code.tex))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code. tex)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoint s.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathc onstruct.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathu sage.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescope s.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraph icstate.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretrans formations.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick .code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjec ts.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathp rocessing.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrow s.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade .code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage .code.tex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexter nal.code.tex)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayer s.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretrans parency.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatte rns.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.c ode.tex))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes .code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.c ode.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-ver sion-0-65.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-ver sion-1-18.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgf/utilities/pgffor.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code. tex)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgf/math/pgfmath.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgffor.code.t ex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex)) ) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz .code.tex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/libraries/pgflibraryplo thandlers.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix .code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libr aries/tikzlibrarytopaths.code.tex))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libr aries/tikzlibrarybackgrounds.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libr aries/tikzlibrarycalc.code.tex) (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libr aries/tikzlibraryshadows.code.tex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libr aries/tikzlibraryfadings.code.tex (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgf/libraries/pgflibraryfad ings.code.tex))) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgfornament/pgfornament.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgfopts/pgfopts.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/pgfornament/pgflibraryvectori an.code.tex)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/geometry/geometry.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/marginnote/marginnote.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/hyperref/hyperref.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.st y (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty )) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/oberdiek/auxhook.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/hyperref/pd1enc.def) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/latexconfig/hyperref.cfg) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/hyperref/puenc.def)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/hyperref/hxetex.def (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/stringenc.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/titlesec/titlesec.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/titlesec/ttlps.def)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/apptools/apptools.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/appendix/appendix.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/psnfss/pifont.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/psnfss/upzd.fd) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/psnfss/upsy.fd)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/manfnt/manfnt.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/bbding/bbding.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tools/verbatim.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/environ/environ.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/trimspaces/trimspaces.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex Library (tcolorbox): 'tcbraster.code.tex' version '4.20' ) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex Library (tcolorbox): 'tcbskins.code.tex' version '4.20' (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code .tex Library (tcolorbox): 'tcbskinsjigsaw.code.tex' version '4.20' )) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.t ex Library (tcolorbox): 'tcbbreakable.code.tex' version '4.20' ) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex Library (tcolorbox): 'tcbhooks.code.tex' version '4.20' ) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.te x Library (tcolorbox): 'tcbtheorems.code.tex' version '4.20' ) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex Library (tcolorbox): 'tcbfitting.code.tex' version '4.20' ) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex Library (tcolorbox): 'tcbxparse.code.tex' version '4.20' )) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/adforn/adforn.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/adforn/uornementsadf.fd)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/lastpage/lastpage.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/listings.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/lstmisc.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/listings.cfg)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/lstlang1.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/lstlang2.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/lstlang3.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/lstlang1.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/lstlang2.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/lstlang3.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/lstlang1.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/lstlang2.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/lstlang3.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/listings/lstmisc.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/tools/bm.sty)) (d:/TexLive2019/texlive/2019/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/newtx/t1ntxtlf.fd) (./Main-NoteBook.aux) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/newtx/omlntxmi.fd) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/newtx/untxexa.fd) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/newtx/lmsntxsy.fd) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/newtx/lmxntxexx.fd) ABD: EverySelectfont initializing macros ABD: EveryShipout initializing macros *geometry* driver: auto-detecting *geometry* detected driver: xetex (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/hyperref/nameref.sty (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/oberdiek/gettitlestring.sty )) (./Main-NoteBook.out) (./Main-NoteBook.out) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/newtx/ot1ntxtlf.fd) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/newtx/untxmia.fd) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/newtx/untxsym.fd) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/newtx/untxsyc.fd) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/jknapltx/ursfs.fd) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/amsfonts/umsa.fd) (d:/TexLive2019/texlive/2019/texmf-dist/tex/latex/amsfonts/umsb.fd) [1] (d:/TexLive2019/texlive/2019/texmf-dist/tex/generic/pgfornament/vectorian/vecto rian88.pgf) (./Main-NoteBook.toc) AED: lastpage setting LastPage [1] ! Package lastpage Error: hyperref option pageanchor disabled. See the lastpage package documentation for explanation. Type H for immediate help. ... l.17 \end{document} ? Process has been terminated ... ## ! Package lastpage Error: hyperref option pageanchor disabled.

2 回答2

2
在 `\tableofcontents` 后面加上一句 ```tex \hypersetup{pageanchor=true} ```
  • 问题完美解决,谢谢 – shizy 2019-09-26 21:54 回复
0
应该是`hyperref`宏包参数异常了,可以去掉测试下.
  • 但是我没有引用这个宏包 – shizy 2019-09-26 21:13 回复

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。