I want to number my figures as Figure 1, 2, ... throughout the document.
I checked the answer here and it works perfectly. However, when I use \mainmatter in memoir class it returns. (If you comment the \mainmatter line in my code it will work, but I need the\mainmatter`)
MWE:
\documentclass{memoir}
\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\begin{document}
\mainmatter %when using this the numbering changes
\chapter{Test Chapter}
\section{Test Section}
\begin{figure}
\caption{Caption 1}
\end{figure}
\begin{figure}
\caption{Caption 2}
\end{figure}
\end{document}

\counterwithoutcommand after the\mainmatter. – Phelype Oleinik Mar 21 '18 at 18:41chngcntr, asmemoirimplements\counterwithout. – Torbjørn T. Mar 21 '18 at 18:47memoirclass) – Werner Mar 21 '18 at 18:48memoirdocumentation. There is a reference on code required for continuous float numbering. – Werner Mar 21 '18 at 18:50