% !TeX TXS-program:compile = txs:///lualatex-dev \DocumentMetadata { pdfstandard={ua-2,a-4f}, tagging=on } \documentclass[12pt]{l3in2edoc} \usepackage[svgnames]{xcolor} \usepackage{listings} \usepackage{microtype} \usepackage{hyperref} \usepackage{parskip} \newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} \renewcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle} \renewcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}} \lstset{% language=[LaTeX]TeX,% columns=flexible,% upquote=true,% numbers=left,% basicstyle=\ttfamily,% keywordstyle=\color{Navy},% commentstyle=\color{DimGray},% stringstyle=\color{SeaGreen},% numberstyle=\scriptsize\color{SlateGray},% escapechar=\$% } \title{\bfseries\LARGE The \pkg{secdot} package\thanks{This manual corresponds to \pkg{secdot.sty}~v1.2a, dated~October 1, 2026.}\\[1ex] \normalsize Define section numbers with dots } \author{% Robin Fairbairns\and Steve Grathwohl\and \LaTeX\ Team\thanks{\url{https://github.com/LaTeX-Package-Repositories/secdot}} } \date{May 16 2026} \begin{document} \maketitle The package as loaded causes section numbers to be output with a dot after them. The command \cmd{\sectiondot}\marg{level} will make `\meta{level}' sections also be output with a dot after them -- an example of use would be: % \begin{lstlisting} \sectiondot{subsection} \end{lstlisting} The command \cmd{\sectionpunct}\marg{level}\marg{punctuation} gives finer control. Examples of use would be % \begin{lstlisting} \sectionpunct{section}{. } % \sectiondot places a \quad after the % dot, which may look excessive \sectionpunct{section}{\quad} % restores default latex behaviour \end{lstlisting} Other eccentricities of numbering could be coded by those with stronger stomachs, by defining the appropriate % \begin{lstlisting} \csname @seccntfmt@$\meta{level}$\endcsname \end{lstlisting} % macro which will take one argument, when invoked: the `\meta{level}' name. If \verb|\DocumentMetadata| is used, section headings are implemented via \LaTeX\ templates which offer much more flexible customisation, and this package is not recommended for new documents. However, a basic set of \verb|\EditInstance| declarations are included in this package so that the basic functionality still works in combination with \verb|\DocumentMetadata|. \end{document}