1

Is there any simple way to make

"Textual reference of Section" followed by "Number reference of Subsection"

with one command?

What I want to see is e.g., Appendix A.1, in which "Appendix" is the name of the (higher-level) section and "A.1" is the number of (lower-level) subsection.

1
  • Welcome to TeX.SE.
    – Mico
    Sep 23, 2021 at 5:34

1 Answer 1

2

I would like to suggest that you look into the cleveref package and its main user command, \cref.

enter image description here

\documentclass{article}
\usepackage[capitalize]{cleveref}

\begin{document}
\section{Introduction}
A cross-reference to \cref{sec:appA1}.

\appendix
\section{Additional results}
\subsection{Proofs of various theorems} \label{sec:appA1}
\dots
\end{document}

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.