Was ist daran falsch: \renewcommand{fnum@figure}{\textsc{Figure~\thefigure}}

Was ist daran falsch: \renewcommand{fnum@figure}{\textsc{Figure~\thefigure}}

Wie der Titel schon sagt, bin ich mir nicht sicher, warum meine Datei nicht kompiliert wird. Hier ist ein MWE:

  \documentclass{amsart}
  \renewcommand{fnum@figure}{\textsc{Figure ~\thefigure}}
  \begin{document}
         Dude!
  \end{document}

Hier ist ein interessanter Teil der .logDatei:

 ! 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.

Antwort1

Es sollte lauten:

\documentclass{amsart}
\makeatletter
\renewcommand{\fnum@figure}{\textsc{Figure ~\thefigure}}
\makeatother
\begin{document}
     Dude!
\end{document}

verwandte Informationen