This package provides a macro \setsecnum
to format section numbering intuitively.
One can simply use \setsecnum{A,:1.i}
to set the section numbering
format as Alph
for the sections, arabic
for the subsections and
arabic.roman
for the subsubsections and
the secnumdepth
and tocdepth
will be 3.
If one want to set the tocdepth manually,
there is an option tocdep
for it.
One may notice that the comma ,
plays a special role in the numbering format:
the shallower section levels will not be shown in titles of deeper levels,
but it will appear in reference labels.
The installation is the same as usual Tex packages.
-
Put the source file
secnum.dtx
in a empty folder and go to there. -
Run the following to create the package file
secnum.sty
(as well as this fileREADME.md
)pdfTeX secnum.dtx
-
Move the following file into proper directories searched by TeX. The recommended directory is
tex/latex/secnum
-
To produce the documentation run the following
pdfLaTeX secnum.dtx
-
The recommended directory for the documentation is
doc/latex/secnum
One can also download the generated files from the github release.