Debian Codegraph @

texmf-dist/doc/latex/secdot/secdot.ltx

raw
1 \documentclass[pagesize=auto, fontsize=12pt, DIV=10, parskip=half]{scrartcl}
2
3 \usepackage{lmodern}
4 \usepackage[T1]{fontenc}
5 \usepackage{textcomp}
6 \usepackage[svgnames]{xcolor}
7 \usepackage{listings}
8 \usepackage{microtype}
9 \usepackage{hyperref}
10
11 \newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
12 \newcommand*{\pkg}[1]{\textsf{#1}}
13 \newcommand*{\cls}[1]{\textsf{#1}}
14 \newcommand*{\cs}[1]{\texttt{\textbackslash#1}}
15 \makeatletter
16 \newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}}
17 \makeatother
18 \newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle}
19 \newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}}
20
21 \addtokomafont{title}{\rmfamily}
22
23 \lstset{%
24 language=[LaTeX]TeX,%
25 columns=flexible,%
26 upquote=true,%
27 numbers=left,%
28 basicstyle=\ttfamily,%
29 keywordstyle=\color{Navy},%
30 commentstyle=\color{DimGray},%
31 stringstyle=\color{SeaGreen},%
32 numberstyle=\scriptsize\color{SlateGray},%
33 escapechar=\$%
34 }
35
36 \title{The \pkg{secdot} package\thanks{This manual corresponds to \pkg{secdot.sty}~v1.2, dated~May 16 2026.}}
37 \subtitle{Define section numbers with dots}
38 \author{%
39 Robin Fairbairns\and
40 \and Steve Grathwohl\and
41 \LaTeX\ Team\thanks{\url{https://github.com/rf-latex}}
42 }
43 \date{May 16 2026}
44
45
46 \begin{document}
47
48 \maketitle
49
50 The package as loaded causes section numbers to be output with a dot
51 after them.
52
53 The command \cmd{\sectiondot}\marg{level} will make `\meta{level}' sections also be
54 output with a dot after them -- an example of use would be:
55 %
56 \begin{lstlisting}
57 \sectiondot{subsection}
58 \end{lstlisting}
59
60 The command \cmd{\sectionpunct}\marg{level}\marg{punctuation} gives finer
61 control. examples of use would be
62 %
63 \begin{lstlisting}
64 \sectionpunct{section}{. } % \sectiondot places a \quad after the
65 % dot, which may look excessive
66 \sectionpunct{section}{\quad} % restores default latex behaviour
67 \end{lstlisting}
68
69 Other eccentricities of numbering could be coded by those with
70 stronger stomachs, by defining the appropriate
71 %
72 \begin{lstlisting}
73 \csname @seccntfmt@$\meta{level}$\endcsname
74 \end{lstlisting}
75 %
76 which macro will take one argument, when invoked: the `\meta{level}' name.
77
78 If \verb|\DocumentDocumentMetadata| is used, section headings are
79 implemented via \LaTeX\ templates which offer much more flexible
80 customisation, and this package is not recommended for new documents.
81 However, a basic set of \verb|\EditInstance| declarations are included
82 in this package so that the basic functionality still works in
83 combination with \verb|\DocumentDocumentMetadata|.
84
85 \end{document}