I just reinstalled my MikTeX 2.9, and am getting this following error message:
! LaTeX Error: Command \counterwithin already defined. Or name \end... illegal, see p.192 of the manual.
I saw the following line of questions in this link:
! LaTeX Error: Command \counterwithout already defined but it doesn't seem to be my problem, as I checked and the chngctr version is 1.1a. Is there something else I'm missing?
Here is my MWE:
\documentclass[oneside]{memoir}
\let\counterwithout\relax
\let\counterwithin\relax
\usepackage{chngcntr}
\begin{document}
\frontmatter
This information is duplicated directly from the Blahblah.
%The above is necessary in order to display the subsections in the TOC.
\tableofcontents
\mainmatter
lalalal
\end{document}
\letlines commented. – Przemysław Scherwentke Sep 07 '18 at 01:59chngcntr.stythat takes precedence over the version you checked. Have a look at the.logfile to find out where thechngcntr.styis found and what its version is. – moewe Sep 07 '18 at 04:50memoiras well. What version do you have? I have no problems with v3.7g, 2018/04/04. At least my version ofmemoiruses\providecommand{\counterwithin}and\providecommand{\counterwithout}which should not be a problem. But I'm not sure about older versions. – moewe Sep 07 '18 at 05:53