Here is an example of my problem:
Code: Select all
\documentclass[final,a4paper,11pt,fleqn,dvipsnames,article,twoside,openright,english]{memoir}
\usepackage{amsmath}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{todonotes}
\setsecnumdepth{subsection}
\maxtocdepth{subsection}
\numberwithin{figure}{chapter}
\numberwithin{table}{chapter}
\makeatletter
\renewcommand\@memmain@floats{%
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
}
\makeatother
\begin{document}
\frontmatter
text
\mainmatter
\chapter{Test}
\begin{figure}
\centering
\includegraphics[width=0.7\linewidth]{file}
\caption{}
\label{fig:acalparticlesize}
\end{figure}
\end{document}[/latex]
My figure is named Figure 1.
If i deactivate \frontmatter the figure is now called figure 1.1
[latex]\documentclass[final,a4paper,11pt,fleqn,dvipsnames,article,twoside,openright,english]{memoir}
\usepackage{amsmath}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{todonotes}
\setsecnumdepth{subsection}
\maxtocdepth{subsection}
\numberwithin{figure}{chapter}
\numberwithin{table}{chapter}
\makeatletter
\renewcommand\@memmain@floats{%
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
}
\makeatother
\begin{document}
%\frontmatter
%text
\mainmatter
\chapter{Test}
\begin{figure}
\centering
\includegraphics[width=0.7\linewidth]{file}
\caption{}
\label{fig:acalparticlesize}
\end{figure}
\end{document}