在 overleaf 上编译,但不在本地

在 overleaf 上编译,但不在本地

我已成功在 Overleaf 上编译了我的文档,但无法在本地 Windows 机器上编译它。我安装了 TeXLive,并尝试了 1) TexStudio 2) TexWorks 和 3) powershell。

每次,它都挂在这一行:
(c:/texlive/2020/texmf-dist/tex/latex/psnfss/t1phv.fd)

我的 TexLive 安装有问题吗?安装过程中我没有看到任何错误消息,但花了大约 6 个小时,所以我可能错过了一些东西。

编辑:我不确定这里到底要放什么代码,但警告是没有文件 filename.aux 。

> pdflatex filename.tex

然后它就挂了

(c:/texlive/2020/texmf-dist/tex/latex/psnfss/t1phv.fd)  

当我在 powershell 中按下 Ctrl+C 时,我得到了以下内容:

 \citep{name_of_my_first_reference}

\org@@citex ...fe@activesfalse \org@@citex [#1][#2
                                                 ]{@tempa } 
?

我对本地 latex 还不太熟悉,我只用过 Overleaf。问题是,在回复审阅者时,我需要有“跟踪更改”文档。我在 Overleaf 中找不到解决方案,只有像 latexdiff 这样的东西,它存在于本地 latex 中。

谢谢您的建议,请告诉我还有哪些有用的信息?

我的完整日志输出:

> pdflatex filename.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./filename.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18> (./copernicus.cls
Document Class: copernicus 2020/06/24 9.11 Copernicus papers
(c:/texlive/2020/texmf-dist/tex/latex/base/fixltx2e.sty

Package fixltx2e Warning: fixltx2e is not required with releases after 2015
(fixltx2e)                All fixes are now in the LaTeX kernel.
(fixltx2e)                See the latexrelease package for details.

)
Additional configuration file copernicus.cfg used
(./copernicus.cfg) (c:/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(c:/texlive/2020/texmf-dist/tex/latex/base/fleqn.clo)
(c:/texlive/2020/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2020/texmf-dist/tex/generic/ulem/ulem.sty)
(c:/texlive/2020/texmf-dist/tex/latex/base/fontenc.sty)
(c:/texlive/2020/texmf-dist/tex/latex/base/textcomp.sty)
(c:/texlive/2020/texmf-dist/tex/latex/base/inputenc.sty)
(c:/texlive/2020/texmf-dist/tex/xmltex/passivetex/ucharacters.sty)
(c:/texlive/2020/texmf-dist/tex/generic/babel/babel.sty
(c:/texlive/2020/texmf-dist/tex/generic/babel/babel.def
(c:/texlive/2020/texmf-dist/tex/generic/babel/txtbabel.def))
(c:/texlive/2020/texmf-dist/tex/generic/babel-english/english.ldf))
(c:/texlive/2020/texmf-dist/tex/latex/tools/array.sty)
(c:/texlive/2020/texmf-dist/tex/latex/tools/tabularx.sty)
(c:/texlive/2020/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/texlive/2020/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2020/texmf-dist/tex/latex/graphics/graphics.sty
(c:/texlive/2020/texmf-dist/tex/latex/graphics/trig.sty)
(c:/texlive/2020/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(c:/texlive/2020/texmf-dist/tex/latex/graphics-def/pdftex.def)))
(c:/texlive/2020/texmf-dist/tex/latex/graphics/color.sty
(c:/texlive/2020/texmf-dist/tex/latex/graphics-cfg/color.cfg))
(c:/texlive/2020/texmf-dist/tex/latex/amsfonts/amssymb.sty
(c:/texlive/2020/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/texlive/2020/texmf-dist/tex/latex/amsmath/amsopn.sty))
(c:/texlive/2020/texmf-dist/tex/latex/amscls/amsthm.sty)
(c:/texlive/2020/texmf-dist/tex/latex/url/url.sty)
(c:/texlive/2020/texmf-dist/tex/latex/accents/accents.sty)
(c:/texlive/2020/texmf-dist/tex/latex/cancel/cancel.sty)
(c:/texlive/2020/texmf-dist/tex/latex/multirow/multirow.sty)
(c:/texlive/2020/texmf-dist/tex/latex/supertabular/supertabular.sty)
(c:/texlive/2020/texmf-dist/tex/latex/algorithms/algorithmic.sty
(c:/texlive/2020/texmf-dist/tex/latex/base/ifthen.sty))
(c:/texlive/2020/texmf-dist/tex/latex/algorithms/algorithm.sty
(c:/texlive/2020/texmf-dist/tex/latex/float/float.sty))
(c:/texlive/2020/texmf-dist/tex/latex/caption/caption.sty
(c:/texlive/2020/texmf-dist/tex/latex/caption/caption3.sty)

Package caption Warning: Unknown document class (or package),
(caption)                standard defaults will be used.
See the caption package documentation for explanation.

) (c:/texlive/2020/texmf-dist/tex/latex/subfloat/subfloat.sty
Package `subfloat', Version 2.14 of 2003/08/21.

Package subfloat Warning: Numbers of floats not counted:
(subfloat)                If you use one of the counters subfloatfiguremax or
(subfloat)                subfloattablemax you will get strange error messages
(subfloat)                containing \c@subfloatfiguremax or
(subfloat)                \c@subfloattablemax:
(subfloat)                Please switch on countmax or remove the code using
(subfloat)                the counter then..

) (./natbib.sty) (c:/texlive/2020/texmf-dist/tex/latex/graphics/rotating.sty)
(c:/texlive/2020/texmf-dist/tex/latex/lineno/lineno.sty)
(c:/texlive/2020/texmf-dist/tex/latex/psnfss/times.sty)
(c:/texlive/2020/texmf-dist/tex/latex/psnfss/pifont.sty
(c:/texlive/2020/texmf-dist/tex/latex/psnfss/upzd.fd)
(c:/texlive/2020/texmf-dist/tex/latex/psnfss/upsy.fd))
(c:/texlive/2020/texmf-dist/tex/latex/hyperref/hyperref.sty
(c:/texlive/2020/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(c:/texlive/2020/texmf-dist/tex/generic/iftex/iftex.sty)
(c:/texlive/2020/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(c:/texlive/2020/texmf-dist/tex/generic/infwarerr/infwarerr.sty))
(c:/texlive/2020/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty)
(c:/texlive/2020/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(c:/texlive/2020/texmf-dist/tex/generic/pdfescape/pdfescape.sty)
(c:/texlive/2020/texmf-dist/tex/latex/hycolor/hycolor.sty)
(c:/texlive/2020/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty)
(c:/texlive/2020/texmf-dist/tex/latex/auxhook/auxhook.sty)
(c:/texlive/2020/texmf-dist/tex/latex/kvoptions/kvoptions.sty)
(c:/texlive/2020/texmf-dist/tex/latex/hyperref/pd1enc.def)
(c:/texlive/2020/texmf-dist/tex/latex/hyperref/hyperref-langpatches.def)
(c:/texlive/2020/texmf-dist/tex/generic/intcalc/intcalc.sty)
(c:/texlive/2020/texmf-dist/tex/generic/etexcmds/etexcmds.sty)
(c:/texlive/2020/texmf-dist/tex/latex/hyperref/puenc.def)
(c:/texlive/2020/texmf-dist/tex/generic/bitset/bitset.sty
(c:/texlive/2020/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty))
(c:/texlive/2020/texmf-dist/tex/latex/base/atbegshi-ltx.sty))
(c:/texlive/2020/texmf-dist/tex/latex/hyperref/hpdftex.def
(c:/texlive/2020/texmf-dist/tex/latex/base/atveryend-ltx.sty)
(c:/texlive/2020/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
(c:/texlive/2020/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty))))
(c:/texlive/2020/texmf-dist/tex/latex/psnfss/t1ptm.fd)
(c:/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
No file filename.aux.
(c:/texlive/2020/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (c:/texlive/2020/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(c:/texlive/2020/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(c:/texlive/2020/texmf-dist/tex/latex/hyperref/nameref.sty
(c:/texlive/2020/texmf-dist/tex/latex/refcount/refcount.sty)
(c:/texlive/2020/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty))
(c:/texlive/2020/texmf-dist/tex/latex/amsfonts/umsa.fd)
(c:/texlive/2020/texmf-dist/tex/latex/amsfonts/umsb.fd)
(c:/texlive/2020/texmf-dist/tex/latex/psnfss/t1phv.fd)

答案1

看来,更新到copernicus.cls文档类的最新版本(2021/01/12 的 9.25 版)可以解决此问题。

基于旧文档类在 TeXLive 2019 和 2020 年 2 月发布的 TeXLive 上编译良好这一事实,我怀疑该问题与 2020 年 10 月 TeXLive 版本中所做的一项更改有关。

相关内容