# Memoir class: turn off section numbering but still have header

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*

-

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

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

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}

-
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.

-