TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 4 down vote accepted

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

share|improve this answer
Sorry, I thought it worked but \setsechook{\hangsecnum} do not work – aagaard Jan 22 '11 at 13:21
@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 '11 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 '11 at 13:45
Why do you use titlesec in this context? – Thorsten Donig Jan 22 '11 at 14:01
To control the vertical space between the section title and the text. – aagaard Jan 22 '11 at 14:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.