[texhax] Problem with number within

Michael Barr barr at math.mcgill.ca
Fri May 11 21:06:44 CEST 2012


If you compile the following sample
\documentclass{article}
\begin{document}
\section{one}
  \subsubsection{A subsubsection}
\section{two}
  \subsubsection{A subsubsection}
\end{document}

you will see that the first subsubsection is correctly named 1.0.1, but 
the second is called 2.0.2 instead of the expected 2.0.1.  Now I don't 
know why one would want a subsubsection with no subsection, but one of the 
contributors to the online journal whose class files I maintain did and is 
now complaining about this bug.  It clearly comes from the line
\newcounter {subsubsection}[subsection]

Michael Barr

-- 
The United States has the best congress money can buy.


More information about the texhax mailing list