I am using the cleveref
package. My document looks something like this:
\documentclass{article}
\usepackage{cleveref}
\begin{document}
\tableofcontents
\section{Section A}
Refer to \cref{append} for more details.
\appendix
\renewcommand{\thesection}{\Roman{section}}
\renewcommand{\thesubsection}{\Alph{subsection}}
\renewcommand{\thesubsubsection}{\Roman{subsubsection}}
\section{Appendix}
\subsection{Appendix A}
\subsubsection{Detailed Explanation} \label{append}
blah
\subsection{Appendix B}
\end{document}
I have to use subsections and subsubsections this way, because the appendix itself is required to have its own entry and section number in the ToC
.
Now I want my output to be something along the lines of
Section A
Refer to Appendix A, Section I for more details.
I have already tried to use \crefname
to customize the output:
\crefname{secapp}{Anhang \Alph{subsection}, Section}{Appendix \Alph{subsection}, Section}
%Stuff here
\subsubsection{Detailed Explanation} \label[secapp]{append}
but defining secapp
like this causes cleveref
to print the number of the subsection in which \cref
was called.
Is there a way to format the output like described above using cleveref
?
Thanks!
secapp
is no counter which can be fed to\label[secapp]{append}
– user31729 Jan 28 '17 at 21:45cleveref
. I think this is something forzref
rather! – user31729 Jan 28 '17 at 21:52\crefname
with the formatting of the label. It can't work. Post a compilable minimal example. – Bernard Jan 29 '17 at 0:14