Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have already read some similar qustions, but the solution over there does not work if I add the 'babel' package. The thing is change the autorefname of one specific, say Figure, and I just want to change the way that it is written, say capital case. Everything is fine but if I uncomment the package babel, so the command is ignored.

\documentclass[11pt]{book}

%\usepackage[english]{babel}
\usepackage{hyperref}
\def\figureautorefname{FIGURE}

\begin{document}
\begin{figure}
\centering
\rule{1cm}{1cm}
\caption{foo}\label{fig:foo}
\end{figure}
As shown in \autoref{fig:foo}~\dots
\end{document}

probably is a easy questions, but I don't find it.

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

The manual of hyperref contains an example for this case:

Example for a redefinition if babel is used:

\usepackage[ngerman]{babel}  
\addto\extrasngerman{%  
  \def\subsectionautorefname{Unterkapitel}%  
}

In your case:

\usepackage[english]{babel}
\usepackage{hyperref}
\addto\extrasenglish{%
  \def\figureautorefname{FIGURE}%
}
share|improve this answer
    
Sorry, but it doesn't work, I have already seen the example in the manual, and it works perfectly, but changing the language as well as the command extrasngerman by captionsenglish, it does not. –  Gitano Jan 22 '13 at 16:22
    
Answer fixed: \extrasenglish instead of \captionsenglish. –  Heiko Oberdiek Jan 22 '13 at 16:33
    
Thanks, it works perfectly. –  Gitano Jan 22 '13 at 17:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.