我不知道为什么当我尝试引用时会出现以下错误(refer to table~\ref{trparam} on page~\pageref{\textbf{trparam}}
。
Missing \endcsname inserted.
<to be read again>
\protect
l.179 ...param} on page~\pageref{\textbf{trparam}}
)
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.
! TeX capacity exceeded, sorry [input stack size=5000].
\reserved@a ->\def \reserved@a
*{\@pagerefstar }\reserved@a
l.179 ...param} on page~\pageref{\textbf{trparam}}
)
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.
答案1
如果你尝试打印页码大胆的,你应该使用
Refer to Table~\ref{tab:table} on page~\textbf{\pageref{tab:table}}.
其中,\textbf
不适用于所引用的标签,而是适用于所检索的设置\pageref
。