\documentclass[pagesize=auto, fontsize=12pt, DIV=10, parskip=half]{scrartcl}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[svgnames]{xcolor}
\usepackage{listings}
\usepackage{microtype}
\usepackage{hyperref}

\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
\newcommand*{\pkg}[1]{\textsf{#1}}
\newcommand*{\cls}[1]{\textsf{#1}}
\newcommand*{\cs}[1]{\texttt{\textbackslash#1}}
\makeatletter
\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}}
\makeatother
\newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle}
\newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}}

\addtokomafont{title}{\rmfamily}

\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{The \pkg{secdot} package\thanks{This manual corresponds to \pkg{secdot.sty}~v1.2, dated~May 16 2026.}}
\subtitle{Define section numbers with dots}
\author{%
  Robin Fairbairns\and
  \and Steve Grathwohl\and
  \LaTeX\ Team\thanks{\url{https://github.com/rf-latex}}
}
\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}
%
which macro will take one argument, when invoked: the `\meta{level}' name.

If \verb|\DocumentDocumentMetadata| 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|\DocumentDocumentMetadata|.

\end{document}
