10

I'm trying to find a way to remove the chapter number from the section headers when using memoir. Right now I'm using parts, but no chapters and zeroes appear in front of all section numbers. I tried reseting the chapter command like that:

\renewcommand\thesection{\arabic{section}}

or like that

\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}}

and it didn't work as I expected. They both removed the chapter number, but also removed the subsection numbers. I'm sure there is a more clever way to do it.

0

2 Answers 2

15

Use the \counterwithout command:

\counterwithout{section}{chapter}

See §18.8 of the memoir manual.

2
  • 2
    Thanks, the problem was actually in the memoir default section numbering depth. It was set to 1 and I needed it to be 3. Thanks for the advice, though. This is a better way to do it :) Jul 3, 2012 at 16:44
  • 6
    @AleksandarSavkov: In memoir you can use the section name rather than having to remember numbers: \setsecnumdepth{subsubsection}, for example. Jul 3, 2012 at 17:02
1

Maybe you can use the option article and \chapter as the sectioning heading. An MWE:

\documentclass[article,a4paper]{memoir}

\begin{document}

\part{Test}

\chapter{Old Test}

\part{Next Test}

\chapter{New test}

\end{document}
2
  • 1
    Although this works, there's something perverse about memoir's implementation of article.
    – Alan Munn
    Jul 4, 2012 at 11:46
  • @AlanMunn Maybe, but I have several hundred documents based on memoir's article (memos, legal opinions,bylaws, article of associations, protocols and agreement). Of course, using \chapter when you need a \section breach the logic of TeX, but a section is not the same in my language as in English so it doesn't matter.
    – Sveinung
    Jul 4, 2012 at 12:17

You must log in to answer this question.

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