Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 10 down vote accepted

Use the \counterwithout command:

\counterwithout{section}{chapter}

See §18.8 of the memoir manual.

share|improve this answer
1  
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 :) –  Aleksandar Savkov Jul 3 '12 at 16:44
5  
@AleksandarSavkov: In memoir you can use the section name rather than having to remember numbers: \setsecnumdepth{subsubsection}, for example. –  Brent.Longborough Jul 3 '12 at 17:02

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}
share|improve this answer
1  
Although this works, there's something perverse about memoir's implementation of article. –  Alan Munn Jul 4 '12 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 '12 at 12:17

Your Answer

 
discard

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.