(possibly related to unanswered Align section titles in margins properly)

\section{My Section Title}

In memoir.cls, I would like the number of the section be set in the margin. Unfortunately, the indent parameter in @startsection is not what I want. It counts where the number is set relative to the left margin. Thus, if the section number is 1, 10, or 100, the 'My Section Title` is pushed more or left towards the right. Ideally, the distance between the number and the title itself would stay constant (1em), and the number itself would be flushright against this space.

I read the memoir manual 6.6 again, but the answer is not obvious to me. I am guessing that \@hangfrom and \sethangfrom would be used, although this would then apply to all headings, not just section. Or maybe \Shook?

Solutions appreciated...

1 Answer 1


Maybe I've misunderstood what you want, but the \hangsecnum command is all you need, I think.

\chapter{A chapter}
\section{A section}
\section{A section}
\section{A section}

output of code

You must log in to answer this question.

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