Removing section numbers when using LaTeX with memoir

I have some short advice for those who write short articles with LaTeX and the memoir class. For short articles I always use the the article class and I use only sections as the highest level of headings. Because a table of contents is almost always not used in these kinds of documents, section numbers serve little use. To remove them, the following code used to work:

\setcounter{secnumdepth}{0}

However, using that code with the most recent version with memoir doesn’t work and gives an error message when you compile (I’m not sure at which version it stopped working). Searching with Google didn’t provide me with a solution, but reading the manual of the memoir class did. It’s explained on page 145 of the manual which was dated on 19 september 2010, but it’s not easy to understand. You need to use this code to get section numbers removed:

\setsecnumformat{}

Leave a Comment

Your email address will not be published. Required fields are marked *