I would like to have the first 1-9 numbered heading from chapter to subsubsections be two digits.

So instead of:
1 Chapter One
1.1 Section One
1.1.1 Subsection One Subsubsection One

I would like:
01 Chapter One
01.01 Section One
01.01.01 Subsection One Subsubsection One

After the first 9 they should just continue 10, 11, 12 etc. without a zero in front.

  • 2
    The question is not really memoir related, here is a general solution: tex.stackexchange.com/a/30932/3929, you'll need to use it in a redefinition of \thechapter, \thesection etc.
    – daleif
    May 14, 2021 at 7:50

1 Answer 1


The code of memoir contains


so you have to replace every \@arabic... by \two@digits...







enter image description here

  • Ahh, didn't even know that was in the kernel
    – daleif
    May 14, 2021 at 8:13
  • 2
    @daleif I found that out quite by accident only last week while looking for the definition of \@firstoftwo (I couldn't remember if it was \long or not). I've been using my own macro for years :-)
    – campa
    May 14, 2021 at 8:17
  • Legend. This is my favorite kind of answer; one that requires a level of understanding I can forgive myself for not having, and yet being easy to apply in practice.
    – Faergen
    May 15, 2021 at 20:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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