“\deleted”不支援 LaTeX 中“changes”套件中的“\autoref”

“\deleted”不支援 LaTeX 中“changes”套件中的“\autoref”

使用changes套件時,\deleted命令不支援\autoref命令,但\added支援。是什麼原因?

\documentclass{article}
\usepackage{changes}
\usepackage{hyperref}
\begin{document}
\begin{equation}
    \label{eq1}
    a+b=c
\end{equation}
\added{\autoref{eq1}}
\deleted{hello\autoref{eq1}}

\end{document}

在此輸入影像描述

錯誤是

\UL@stop ...z@ \else \UL@putbox \fi \else \egroup 
                                                  \egroup \UL@putbox \fi \if...
l.10 \deleted{hello\autoref{eq1}}
                                 
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.

相關內容