When referring to subordinated sections, cleverref by default shows the identifier of the referred section as it is actually displayed in full text. I redefined the \part
, \chapter
, ... commands to display only the identifier of the actual section. Is there a way to show the identifiers of the superordinated section, chapter, part ... as well? Cleveref does not seem to have an option for this and unfortunately I was not able to investigate a solution on my own.
Here is my MWE to demonstrate what I am looking for:
\documentclass[fontsize=12pt, a4paper]{scrreprt}
\usepackage{cleveref}
\renewcommand*\thepart{\Alph{part}}
\renewcommand*\thechapter{\Roman{chapter}}
\renewcommand*\thesection{\arabic{section}}
\renewcommand*\thesubsection{\alph{subsection}}
\renewcommand*\thesubsubsection{\roman{subsubsection}}
\begin{document}
\part{First Part}
\chapter{First Chapter}
\label{first_chapter}
Is: For further information see \cref{first_subsection}.
Should be: For further information see section B.II.1.a.
\section{First Section}
\part{Second Part}
\chapter{Second Chapter}
\section{Second Section}
\subsection{First Subsection}
\label{first_subsection}
Is: As noticed in \cref{first_chapter} ...
Should be: As noticed in A.I. ...
\end{document}