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
    Commented 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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .