1

There is a easy way to modify only this command

\renewcommand\thesection{\arabic{section}.}

in order to have an arabic counter with just one leading zero instead the original arabic without leading zero?

Torbjørn T.
  • 206,688
Andrea Leo
  • 1,011

1 Answers1

1

This small document adds a leading zero in front of the section number and uses 15 dummy \blinddocument commands in the loop to fill up.

enter image description here

\documentclass{article}


\usepackage{blindtext}
\makeatletter
\let\latex@@thesection\thesection
\newcommand{\padwithzero}{%
  0%
}%
\renewcommand{\thesection}{\ifnum\c@section<10\relax\padwithzero\fi\latex@@thesection}
\newcount\dummycntr
\makeatother
\begin{document}
\tableofcontents

\loop\unless\ifnum\dummycntr=15
\begingroup
\blinddocument
\endgroup
\advance\dummycntr by 1
\repeat
\end{document}