I put \label{}
after each section and use \nameref
with that label name for referring section names in the document.
But that doesn't work with \appendix
. What is the correct way to refer a section in a paper?
\label{appendix}
\section{Background}
\label{sec:background}
How do I refer to background section?
Best Answer
The
nameref
works in the appendix also (as shown in MWE of this answer). Hence without a complete MWE, we won't be able to help.However, a better idea will be to use the package
cleveref
.For details, refer to the package documentation (
texdoc cleveref
from command prompt)