It is a KOMA Script feature to add a period after (all sectioning) numbers as soon as there is a non-Arabic number at some level. To quote the documentation (pp. 99-100 in 2021-06-25)
According to DUDEN, if only Arabic numerals are used to number section headings, the German practice is to have no point at the end (see [DUD96, R3]). On the other hand, if Roman numerals or letters appear in the numbering, then a point should appear at the end of the numbering (see [DUD96, R4]). KOMA-Script has a mechanism that tries to automate this somewhat complex rule. The result is that normally after the sectioning commands \part
and \appendix
the numbering switches to using a final point. This information is saved in the .aux
file and takes effect on the next LaTeX run.
Sometimes the mechanism for placing or omitting the final point may fail. Sometimes other languages have different rules. Therefore you can force the use of the final point with the option numbers=endperiod
or to prohibit it with numbers=noendperiod
.
Note that this mechanism only takes effect on the next LaTeX run. Therefore, before you try to use these options to force the correct numbering format, you should always perform another LaTeX run without modifying the document.
If you want to stick to the Duden rules, you have to do nothing.
If you want to get rid of the period, use numbers=noendperiod
.
If you want to retain the period for the paragraph heading, you can additionally redefine \paragraphformat
and replace \autodot
with .
to force a period.
\documentclass[numbers=noendperiod]{scrartcl}
\renewcommand*{\theparagraph}{\alph{paragraph}}
\renewcommand*{\paragraphformat}{\theparagraph.\enskip}
\setcounter{secnumdepth}{4}
\begin{document}
\section{Foo}\label{sec:foo}
\ref{sec:foo}
\paragraph{Bar}\label{sec:bar}
\end{document}
\theparagraph
, it is specified by who\paragraph
is typeset.\renewcommand
and\setcounter
commands in my MWE. Unfortunately I know little about the inner workings. Could you maybe elaborate on your comment?\renewcommand...
and section etc., numbers are still followed by a period. This is the default for the class you are using. I have no idea how to remove the periods you object to.\renewcommand...
, the trailing periods do not appear. Although indeed the described behaviour appears only with thescr...
KOMA-classes.