I wonder if there any option to call subsection or subsubsection in a way of using \autoref{}?

For example:

\subsection{Basic Structure}

According to \autoref{\subsection{Basic Structure}}....

Thanks, Tommy

  • 2
    Off-topic: You have answers to most of your questions, but accepted not a single one up to now nor cast any upvote (which is possible, since your reputation is > 15). Please accept answers to your questions and upvote them (and no, I don't have answered one of your questions (yet) ;-)) in order to appreciate the work done by users to help you – user31729 Mar 2 '17 at 10:49
  • Please show us always a MWE not only a code snippet. – Schweinebacke Mar 2 '17 at 10:49

You code should look like this:

\subsection{Basic Structure} \label{sec:basic} % choose a suitable "label"
According to \autoref{sec:basic}, \dots 

\autoref is a hyperref extension of the \label-\ref-mechanism. So you have to set a \label after \subsection and use the argument of \label as argument of \autoref:


\section{Test section}


\subsection{Test subsection}


This is \autoref{ssec:test} in \autoref{sec:test} with headline ``\nameref{ssec:test}''.

enter image description here

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.