Document Classes ⇒ referencing a subsection using memoir
referencing a subsection using memoir
I am trying to reference a subsection using \autoref and I am using memoir class. For some reason I am not getting the subsections referenced. I have set the secnumdepth to subsection, so the sub-sections are getting numbered correctly. The only problem is that I am unable to reference them from other parts of the document.
Any help would be appreciated.
Cheers,
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
referencing a subsection using memoir
please post a minimal working example (MWE) showing the undesired behaviour. I ask for this MWE because the following code behaves as expected:
Code: Select all
\documentclass{memoir}
\usepackage{hyperref}
\setcounter{secnumdepth}{2}
\begin{document}
\chapter{Test chapter}
\section{test section}
\subsection{test subsection}\label{ssec:test}
\autoref{ssec:test}
\end{document}