Summary
In the generated PDF table of contents, section numbers of two or more digits run into the section title with no separating space. With wider numbers (e.g. 10.10) the number visibly overlaps the start of the title.
Affected
Any spec built with doc_build that has ≥10 top-level sections. Observed in both the Geometry spec (severe) and the Core spec (mild), so it is not spec-specific.
Evidence
- Geometry spec (22 sections):
10Cube, 10.1Overview, and especially 10.10Example show the number jammed against — or overlapping — the title, while single-digit entries (9 Gprim, 9.1 Overview) are spaced correctly.
- Core spec (16 sections):
10Composition, 10.1Scope, 10.2Overview show the same gluing. It reads as merely "tight" rather than overlapping only because its subsection numbers never exceed 10.8-width; a XX.YY entry would overflow the same box and overlap.
(TOC screenshots from both specs can be attached.)
Root cause
template/after-header-includes.latex customizes the deepest TOC level (\l@subsubparagraph) and raises secnumdepth/tocdepth to 6, but never widens the number columns for \l@section / \l@subsection / \l@subsubsection. The document uses the default article class, whose \numberline boxes for those levels are sized for single-digit numbers, so any number ≥ 10 (and any X.YY subsection) overflows its box and collides with the title.
Not a font issue — it reproduces with the bundled DejaVu fonts on Linux.
Suggested fix (direction, not yet validated)
Widen the TOC number columns in after-header-includes.latex, e.g. with tocloft:
\usepackage{tocloft}
\setlength{\cftsecnumwidth}{2.6em}
\setlength{\cftsubsecnumwidth}{3.4em}
\setlength{\cftsubsubsecnumwidth}{4.3em}
or by redefining the \@dottedtocline number widths directly. Either should be validated against a spec that reaches XX.YY numbering (the Geometry spec is a good test case), and checked for interaction with the existing titlesec setup and the custom \l@subsubparagraph definition.
Fixing this upstream corrects the Core and Geometry specs (and any future spec with ≥10 sections) at once.
Summary
In the generated PDF table of contents, section numbers of two or more digits run into the section title with no separating space. With wider numbers (e.g.
10.10) the number visibly overlaps the start of the title.Affected
Any spec built with
doc_buildthat has ≥10 top-level sections. Observed in both the Geometry spec (severe) and the Core spec (mild), so it is not spec-specific.Evidence
10Cube,10.1Overview, and especially10.10Exampleshow the number jammed against — or overlapping — the title, while single-digit entries (9 Gprim,9.1 Overview) are spaced correctly.10Composition,10.1Scope,10.2Overviewshow the same gluing. It reads as merely "tight" rather than overlapping only because its subsection numbers never exceed10.8-width; aXX.YYentry would overflow the same box and overlap.(TOC screenshots from both specs can be attached.)
Root cause
template/after-header-includes.latexcustomizes the deepest TOC level (\l@subsubparagraph) and raisessecnumdepth/tocdepthto 6, but never widens the number columns for\l@section/\l@subsection/\l@subsubsection. The document uses the defaultarticleclass, whose\numberlineboxes for those levels are sized for single-digit numbers, so any number ≥ 10 (and anyX.YYsubsection) overflows its box and collides with the title.Not a font issue — it reproduces with the bundled DejaVu fonts on Linux.
Suggested fix (direction, not yet validated)
Widen the TOC number columns in
after-header-includes.latex, e.g. withtocloft:or by redefining the
\@dottedtoclinenumber widths directly. Either should be validated against a spec that reachesXX.YYnumbering (the Geometry spec is a good test case), and checked for interaction with the existingtitlesecsetup and the custom\l@subsubparagraphdefinition.Fixing this upstream corrects the Core and Geometry specs (and any future spec with ≥10 sections) at once.