I changed the caption of my figures running the following command (I'm using the babel
package):
\addto\captionsngerman{\renewcommand{\figurename}{Abb.}}
If I use \autoref{$LABEL}
to reference to the figure, however, it still shows the original figure caption, instead of "Abb. X".
Do I have to renew the command for refname
as well? If so, would that change anything, if I now use \ref
on something else besides my figures?
Here the MWE:
\documentclass[a4paper]{IEEEtran}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{hyperref}
\addto\captionsngerman{\renewcommand{\figurename}{Abb.}}
\begin{document}
\autoref{fig:foobar}
\begin{figure}[htb]
\caption{BarFooCamp}
\label{fig:foobar}
\end{figure}
\end{document}
\autoref
macro of thehyperref
package? If so, you may want to issue the command\renewcommand\figureautorefname{Abb.}
.\autoref
ofhyperref
, but inserting your code, doesn't seem to solve the problem.figure
environment be a associated with theAbb.
prefix.