tcolorbox 的目录中有错误

tcolorbox 的目录中有错误

我收到以下错误消息:

! error:  (pdf backend): \pdfextension endlink cannot be used in vertical mode
!  ==> Fatal error occurred, no output PDF file produced!

我尝试制作 MWE,但无法重现错误。所以我会尽力解释。我有一个主文件,它通过输入调用几个章节。这些章节使用 tcolorbox 来处理定理、证明……我使用超链接将定理和证明(双向)与以下类型的宏链接起来:

\newtcbtheorem[number within=chapter]{prop}{Proposition}{% Proposition
    enhanced,breakable,
    fonttitle=\bfseries,separator sign dash,
    lowerbox=ignored,
    sharp corners,
    hypertarget=prop@\thetcbcounter,hyperlink=demop@\thetcbcounter,
    label={prop@\thetcbcounter},
    savelowerto=\chap/Demos/demo-\thetcbcounter.tex,
    record={\string\demop{\thetcbcounter}{\chap/Demos/demo-\thetcbcounter.tex}}
    }
    {Proposition}

和:

\NewTotalTColorBox{\demop}{mm}{% Démonstration d'une proposition
    enhanced,breakable,fonttitle=\bfseries,
    sharp corners,
    title=Démonstration de la proposition~\ref{prop@#1},
    hypertarget=demop@#1,hyperlink=prop@#1
    }
    {\input{#2}}

这很有效(或者至少看起来有效):我点击定理,它会发送到相应的证明(在章节末尾),反之亦然。但我刚刚在主文件末尾添加了它,\tableofcontents却收到错误消息,没有 pdf。

如果我双击错误(我使用 TeXstudio),它会打开 toc 文件。以下是前几行:

\contentsline {chapter}{\numberline {1}Inégalités dans \R }{1}{chapter.1}%
\contentsline {section}{\numberline {I}La droite numérique}{3}{section.1.1}%
\contentsline {section}{\numberline {II}Relations de comparaison}{4}{section.1.2}%
\contentsline {section}{\numberline {III}Intervalles}{6}{section.1.3}%
\contentsline {subsection}{\numberline {III.1}Intervalles de R}{6}{subsection.1.3.1}%
\contentsline {subsection}{\numberline {III.2}Intervalles d'entiers}{7}{subsection.1.3.2}%
\contentsline {section}{\numberline {IV}Majorants, minorants}{7}{section.1.4}%
\contentsline {section}{\numberline {V}Plus grand, plus petit élément}{8}{section.1.5}%
\contentsline {section}{\numberline {VI}Valeur absolue d'un réel}{9}{section.1.6}%
\contentsline {section}{\numberline {VII}Valeurs approchées}{11}{section.1.7}%
\contentsline {section}{\numberline {VIII}Droite numérique achevée}{12}{section.1.8}%
\contentsline {section}{\numberline {IX}Partie entière d'un réel - Approximations décimales}{12}{section.1.9}%
\contentsline {subsection}{\numberline {IX.1}Partie entière d'un réel}{12}{subsection.1.9.1}%
\contentsline {subsection}{\numberline {IX.2}Approximations décimales}{13}{subsection.1.9.2}%
\contentsline {section}{\demonstrations }{15}{tcb@[email protected]}%
\babel@toc {french}{}\relax 
\babel@toc {french}{}\relax 
\contentsline {chapter}{\numberline {2}Rudiments de logique: Assertions et quantificateurs}{27}{chapter.2}%

当 TeXstudio 双击打开 toc 文件时,该行会突出显示\contentsline {section}{\demonstrations }{15}{tcb@[email protected]}%

我不确定我写的内容是否足够,所以如果有人告诉我他需要更多信息,我会编辑我的消息

相关内容