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.

Trying to get rid of auto display of section numbers within text (section title only), but still have a header that gives the section title (also sans number). Can't seem to find this in memoir docs. In other words, I want some of the behavior of \section and some of \section*

share|improve this question

3 Answers 3

Set \setsecnumformat to be empty (this suppresses the numbering for the titles in the body) and redefine \sectionmark appropriately (to suppress the numbering from the headings); for example:

\documentclass{memoir}
\usepackage{lipsum}

\setsecnumformat{}
\def\sectionmark#1{\markboth{#1}{#1}}

\begin{document}

\section{Test section}
\lipsum[1-20]

\end{document}
share|improve this answer
    
OK, buena respuesta. –  NVaughan Jun 17 '12 at 2:26
    
Thanks. Worked like a charm. –  will4685 Jun 17 '12 at 2:28
    
@will4685 You're welcome. Don't forget, after a sensible wait, to accept the answer that best solved your problem. In case of doubt, please see How do you accept an answer?. –  Gonzalo Medina Jun 17 '12 at 2:36

If you want to turn off numbering for \sections and all lower levels of heading, then place this in your preamble:

\setsecnumdepth{chapter}

\section and \section* will continue to work as advertised, but simply without any numbering.

share|improve this answer

Just add \setsecnumformat{} to the preamble of your document. That'll do. (See p.107 of memman, the Memoir Class manual, for details.)

share|improve this answer
    
Not necessarily; this won't take care of suppressing the numbering from the headers. –  Gonzalo Medina Jun 17 '12 at 2:21

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.