0

I'm using memoir 3.7g, with lualatex under TeX Live 2018.

With the below example,

\documentclass[a5paper]{memoir}
\begin{document}
    \mainmatter

    \chapter{Demo}

    \begin{figure}
        \caption{This should be Figure 1.1.}
    \end{figure}
\end{document}

the figure numbers (and tables) do not have a separator between chapter and figure number:

demo: wrong figure numbering (no separator)

Avoid using \mainmatter, and it's all fine:

demo: correct figure numbering

I know that somehow \mainmatter is eating the separator, so it can be patched back with something like:

\csletcs{@memoirmainmatter}{mainmatter}
\renewcommand*{\mainmatter}{
  \@memoirmainmatter
  \renewcommand*\thefigure{\thechapter.\@arabic\c@figure}
}

Has anyone else experienced this, and if so, do you have a better way to solve it?

Alan Munn
  • 218,180
amyspark
  • 628

0 Answers0