blob: 6ed0aee990473d6d238886c1063a9cce8117da00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# 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.
0. 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
2. Move the following file into proper directories searched by TeX.
The recommended directory is
tex/latex/secnum
3. To produce the documentation run the following
pdfLaTeX secnum.dtx
4. The recommended directory for the documentation is
doc/latex/secnum
## Download
One can also download the generated files from the [github release](https://github.com/GauSyu/secnum/releases).
|