Document Classesreferencing a subsection using memoir

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
santo
Posts: 5
Joined: Thu Aug 05, 2010 3:50 am

referencing a subsection using memoir

Post by santo »

Hi there,
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,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

referencing a subsection using memoir

Post by gmedina »

Hi,

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}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply