4

I get the following warning in LaTeX while trying to automatically refer via \autoref{} to a label in my appendix.

No autoref name for `Appendix'

I guess it is trying to tell me that it has no label defined for appendix, funny because it directly displays me the name I’d like to have which it doesn’t output; it’s simply blank.

Minimal Example

\documentclass{article}
\usepackage{appendix}
\usepackage{hyperref}

\begin{document}
  \autoref{a:entry}

  \begin{appendices}
    \section{Entry}
    \label{a:entry}
  \end{appendices}
\end{document}
5

The command for the label with uppercase letter is not defined and that’s why the hyperref package is complaining. You have to define the command yourself:

\newcommand*{\Appendixautorefname}{Appendix}

Include this after loading the hyperref package and before beginning the actual document and it should work just fine.

|improve this answer|||||
  • Does not work for me. Apprently this is due to \usepackage[ngerman]{babel} (it works with \usepackage[english]{babel}). Any idea how to get this solved? Thanks a lot in advance. – Grodon Mar 17 '16 at 16:04
  • Addition: Also using \addto\extrasngerman{ \def\Appendixautorefname{Anhang}} or \addto\extrasngerman{ \def\appendixautorefname{Anhang}} as described in [tex.stackexchange.com/questions/94872/… does not help. – Grodon Mar 17 '16 at 16:23
  • 1
    Addition 2: Like @ted assumed in tex.stackexchange.com/questions/130096/… I just discovered that this has also to do something with the appendix package. Still did not find a solution, though ... – Grodon Mar 18 '16 at 14:16
  • Addition 3: Opened a separate Question for this: tex.stackexchange.com/questions/299675/… – Grodon Mar 18 '16 at 14:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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