I use the memoir class to control my document. I have placed the section numbering in the margin with \hangsecnum, but I don't want the subsection and subsubsection numbering in the margin.

How do I prevent this?

1 Answer 1


Using the sectioning hooks would be an easy way:


Edit: here's a minimal working example, according to the comments:

\section{Section heading}
\subsection{Subsection heading}
\subsubsection{Subsubsection heading}

alt text

  • Sorry, I thought it worked but \setsechook{\hangsecnum} do not work
    – aagaard
    Jan 22, 2011 at 13:21
  • 1
    @aagaard: "do not work" isn't a sufficient problem description. Better post error message, description of behavior, a minimal example. I added one showing how it works.
    – Stefan Kottwitz
    Jan 22, 2011 at 13:34
  • I found out, that there is some compatibility issues with this package: titlesec. When it is included, it meshed up the indent.
    – aagaard
    Jan 22, 2011 at 13:45
  • Why do you use titlesec in this context? Jan 22, 2011 at 14:01
  • To control the vertical space between the section title and the text.
    – aagaard
    Jan 22, 2011 at 14:05

You must log in to answer this question.

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