[Tex/LaTex] Subsection numbers with memoir + frontmatter

front-mattermemoirtable of contents

I've just tried to use \frontmatter with memoir class for the first time and everything works fine except for some weird detail. When I add \frontmatter and \mainmatter commands, the numbers of subsections disappear in the ToC and also in the subsection titles themselves. The code is the following:


ToC looks like this:

enter image description here

Why and how can I get them back while keeping the matter-commands?

Best Answer

Sorry, I've found an answer to this question eventually: in the comment to https://tex.stackexchange.com/a/3329/3897: I should use \setcounter{maxsecnumdepth}{3}, not secnumdepth.

Or, even better, \setsecnumdepth{subsection} as said in https://tex.stackexchange.com/a/33458/3897.

Related Question