[texhax] Section numbering

Jerry jerry at seibercom.net
Sun Mar 10 00:19:51 CET 2013

I am trying to format a legal document so that it follows this format.

      Article 1.

1.01 First section

      bla bla bla

1.02 Second section

      bla bla bla


I tried using this to get things working the way I wanted:

\usepackage{etoolbox}  %needed to make chapters continuous on page
%% Need with {etoolbox} package
\patchcmd{\chapter}{\if at openright\cleardoublepage\else\clearpage\fi}{}{}{}

% change % chapter to article and center it

%Format section numbering

% Set section number depth to level 3

Now, the problem is how to get a leading zero in the section and then
have it increment correctly. Once I reach the 10 level, the section is
shown as: "1.010", which is wrong. It should read "1.10". I can
accomplish this in MS Word; however, I can find no way to do it in
LaTeX. Does anyone have a solution?


Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.

More information about the texhax mailing list