我收到一个我无法理解的错误,我不知道如何修复它。我的最小工作示例如下:
\documentclass{article}
\usepackage{changes}
\definechangesauthor{Me}
\begin{document}
Some \added[id=Me]{more} text.
\end{document}
这无法在我的安装上编译并给出错误
Runaway argument?
{
! Paragraph ended before \XC@col@rlet was complete.
<to be read again>
\par
l.6
?
! Too many }'s.
\\definechangesauthor ...let {Changes@Color#2}{#3}
l.6
在 Overleaf 上,该文档编译时没有错误,所以我认为这一定是我的安装存在问题。
pdflatex --version
返回
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
kpathsea version 6.3.4/dev
如果有帮助的话……
这是我得到的日志文件:
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) (preloaded format=pdflatex 2023.11.6) 23 NOV 2023 07:48
entering extended mode
restricted \write18 enabled.
file:line:error style messages enabled.
%&-line parsing enabled.
**mwe.tex
(./mwe.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-01-21>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
)
(/home/dlorenz/texmf/tex/latex/LaTeX/changes.sty
Package: changes 2007/10/10 v0.5.2 changes-Paket
*** changes-Paket 2007/10/10 v0.5.2 ***
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2020/11/20 v2.8 package option processing (HA)
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks16
\XKV@tempa@toks=\toks17
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex))
\XKV@depth=\count193
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2020/11/24 v1.1c Standard LaTeX ifthen package (DPC)
)
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2021/10/31 v2.13 LaTeX color extensions (UK)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 227.
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1352.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1356.
Package xcolor Info: Model `RGB' extended on input line 1368.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1370.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1371.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1372.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1373.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1374.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1375.
)
(/usr/share/texlive/texmf-dist/tex/latex/pdfcolmk/pdfcolmk.sty
Package: pdfcolmk 2019/11/24 v2.0 Color support for pdfTeX via marks
)
(/usr/share/texlive/texmf-dist/tex/generic/ulem/ulem.sty
\UL@box=\box50
\UL@hyphenbox=\box51
\UL@skip=\skip49
\UL@hook=\toks18
\UL@height=\dimen139
\UL@pe=\count194
\UL@pixel=\dimen140
\ULC@box=\box52
Package: ulem 2019/11/18
\ULdepth=\dimen141
)
\c@Changes@AuthorCount=\count195
\c@Changes@iAuthor=\count196
\c@Changes@AddCount=\count197
\c@Changes@DeleteCount=\count198
\c@Changes@ReplaceCount=\count199
)
\c@Changes@AddCountMe=\count266
\c@Changes@DeleteCountMe=\count267
\c@Changes@ReplaceCountMe=\count268
Runaway argument?
{
./mwe.tex:4: Paragraph ended before \XC@col@rlet was complete.
<to be read again>
\par
l.4
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
./mwe.tex:4: Too many }'s.
\\definechangesauthor ...let {Changes@Color#2}{#3}
l.4
You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2022-01-12 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count269
\l__pdf_internal_box=\box53
)
(./mwe.aux)
\openout1 = `mwe.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count270
\scratchdimen=\dimen142
\scratchbox=\box54
\nofMPsegments=\count271
\nofMParguments=\count272
\everyMPshowfont=\toks19
\MPscratchCnt=\count273
\MPscratchDim=\dimen143
\MPnumerator=\count274
\makeMPintoPDFobject=\count275
\everyMPtoPDFconversion=\toks20
)
./mwe.tex:7: Package xcolor Error: Undefined color `Changes@Colorid=Me'.
See the xcolor package documentation for explanation.
Type H <return> for immediate help.
...
l.7 Some \added[id=Me]{more}
text.
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 7.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 7.
./mwe.tex:7: LaTeX Error: No counter 'Changes@AddCountid=Me' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.7 Some \added[id=Me]{more}
text.
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
\Changes@OutFile=\write3
\openout3 = `mwe.loc'.
[1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./mwe.aux) )
Here is how much of TeX's memory you used:
1887 strings out of 478287
28287 string characters out of 5849289
322217 words of memory out of 5000000
20118 multiletter control sequences out of 15000+600000
469365 words of font info for 29 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
48i,5n,61p,203b,108s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/t
exlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/
texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb>
Output written on mwe.pdf (1 page, 21627 bytes).
PDF statistics:
18 PDF objects out of 1000 (max. 8388607)
10 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)