CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/secnum

README.md

secnum

This package provides a macro \setsecnum to format section numbering intuitively.

Usage

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.

Installation

The installation is the same as usual Tex packages.

  1. Put the source file secnum.dtx in a empty folder and go to there.
  1. Run the following to create the package file secnum.sty (as well as this file README.md)
   pdfTeX secnum.dtx
  1. Move the following file into proper directories searched by . The recommended directory is
   tex/latex/secnum
  1. To produce the documentation run the following
   pdfLaTeX secnum.dtx
  1. The recommended directory for the documentation is
   doc/latex/secnum

Download

One can also download the generated files from the github release.

Download the contents of this package in one zip archive (439.2k).

secnum – A macro to format section numbering intuitively

This package provides a macro \setsecnum to format section numbering intuitively.

\setsecnum{1.1.1} will set the section numbering format to arabic.arabic.arabic and the depth to 3.

The package uses 3.

Packagesecnum
Repositoryhttps://github.com/GauSyu/secnum
Version 2022-01-30
LicensesThe Project Public License 1.3c
Copyright2019–2022 Gau, Syu
MaintainerSyu Gau
Contained inTeX Live as secnum
MiKTeX as secnum
TopicsHeadings
Experimental 3
...
Guest Book Sitemap Contact Contact Author