Debian Codegraph @

texmf-dist/doc/latex/secnum/README.md

raw
1
2 # secnum
3
4 This package provides a macro `\setsecnum` to format section numbering intuitively.
5
6 ## Usage
7
8 One can simply use `\setsecnum{A,:1.i}` to set the section numbering
9 format as `Alph` for the sections, `arabic` for the subsections and
10 `arabic.roman` for the subsubsections and
11 the `secnumdepth` and `tocdepth` will be 3.
12
13 If one want to set the tocdepth manually,
14 there is an option `tocdep` for it.
15
16 One may notice that the comma `,` plays a special role in the numbering format:
17 the shallower section levels will not be shown in titles of deeper levels,
18 but it will appear in reference labels.
19
20 ## Installation
21
22 The installation is the same as usual Tex packages.
23
24 0. Put the source file `secnum.dtx` in a empty folder and go to there.
25
26 1. Run the following to create the package file `secnum.sty` (as well as this file `README.md`)
27
28 pdfTeX secnum.dtx
29
30 2. Move the following file into proper directories searched by TeX.
31 The recommended directory is
32
33 tex/latex/secnum
34
35 3. To produce the documentation run the following
36
37 pdfLaTeX secnum.dtx
38
39 4. The recommended directory for the documentation is
40
41 doc/latex/secnum
42
43 ## Download
44
45 One can also download the generated files from the [github release](https://github.com/GauSyu/secnum/releases).
46