正如标题所示,我不确定为什么我的文件无法编译。这是一个 MWE:
\documentclass{amsart}
\renewcommand{fnum@figure}{\textsc{Figure ~\thefigure}}
\begin{document}
Dude!
\end{document}
以下是该.log
文件的一个有趣部分:
! Missing control sequence inserted.
<inserted text>
\inaccessible
l.2 \renewcommand{fnum@figure}
{\textsc{Figure ~\thefigure}}
Please don't say `\def cs{...}', say `\def\cs{...}'.
I've inserted an inaccessible control sequence so that your
definition will be completed without mixing me up too badly.
You can recover graciously from this error, if you're
careful; see exercise 27.2 in The TeXbook.
答案1
它应该读作
\documentclass{amsart}
\makeatletter
\renewcommand{\fnum@figure}{\textsc{Figure ~\thefigure}}
\makeatother
\begin{document}
Dude!
\end{document}