No table of contents entries with scrjura and lualatex-dev 2021-05-27
KOMA-Script is a bundle of versatile LaTeX classes and packages
Brought to you by:
kohm
On latex3/latex2 Keks-Dose reported a bug with scrartcl + scrjura and the current lualatex-dev:
\documentclass[pagesize, ngerman, fontsize=12pt, parskip=half, juratotoc=true,]{scrartcl}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\setsansfont{Linux Biolinum O}
\usepackage{babel, scrjura, xspace, fewerfloatpages, geometry}
\geometry{bottom=4cm, right=4.5cm, top=3cm, left=4cm}
\title{dingens}
\begin{document}
\maketitle{}
\tableofcontents{}
\begin{contract}
\Clause{title=erstens}
\label{CLA:title=erstens}
Text und nochwas whatever.
\Clause{title=segundo}
Yes.
and no.
\end{contract}
\end{document}
does not produce any table of contents entries.
Due to Ulrike's comment there may be an issue with spaces before or after the option when using the raw option list.
This is strange, because if the options (or their values) are not recognised, they should be reported a »
Unused global option(s)« but they are not. So I need further debugging. First step will be to eliminate all third-party packages likebabel,xspace,fewerfloatpages,geometry. In past especiallybabelwas known as breaking the option handling, e.g., the reporting of unused global options.It is still a
babelbug.babeldefines all (not yet defined) options a empty:results in:
But it should result in
as it does, if you do not load
babel.Because of this, KOMA-Script's
\FamilyProcessOptionsinterpretes all options as classic options after loadingbabel. Your example does work, if loadbabelafter all KOMA-Script packages.babelbug)Last edit: Markus Kohm 2021-05-28
Well, babel development is under the roof of the l3 project:
https://github.com/latex3/babel
So I guess the babel maintainer will already know.
https://github.com/latex3/babel/issues/134