On Sun, Apr 30, 2023 at 08:22:29AM +0900, Akira Yokosawa wrote: > We now have Section 15.5.10, (five digits + two periods). > Default of the book class can not afford that much digits in > subsection count. > Increase width parameters to accomodate it. > > Also, as for -sf builds, the Helvetica clone font needs slightly > wider spaces in the "em" unit. Add settings for -sf builds. > > Mention default widths in the comment block for future reference. > > Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> And I also pulled in the rest of these patches, thank you! Huh. Maybe this is a hint that I should drop one of the CPU families. Alpha and Itanium would be good candidates except for their historical significance. ARM7 and PowerPC are significant in being non-multicopy atomic. z Systems is significant in being fully multicopy atomic (as opposed to merely other-multicopy atomic). Armv8 and x86 are heavily used. MIPS appears to feed directly into LoongArch, which may prove to be a candidate for addition, as might RISC-V. That leaves SPARC. But that means I would be removing one and adding two, so this patch would still be required. So it goes! ;-) Thanx, Paul > --- > perfbook-lt.tex | 21 +++++++++++++++++++-- > 1 file changed, 19 insertions(+), 2 deletions(-) > > diff --git a/perfbook-lt.tex b/perfbook-lt.tex > index cdac9d495a3a..af5e0bf30032 100644 > --- a/perfbook-lt.tex > +++ b/perfbook-lt.tex > @@ -158,11 +158,28 @@ > \setboolean{indexhier}{true} > \newcommand{\IfIndexHier}[2]{\ifthenelse{\boolean{indexhier}}{#1}{#2}} > > -% Widen pnumwidth in TOC for ebook size build (more than 1000 pages) > +% Tweak width params of TOC > \makeatletter > -\IfEbookSize{ > +\IfEbookSize{ % for ebook size build (more than 1000 pages) > \renewcommand*\@pnumwidth{2.2em} > }{} > +% default params defined in book.sty: > +% width of chapter (two digits): 1.5em > +% indent of section: 1.5em > +% width of section (three digits + one periods): 2.3em > +% indent of subsection: 3.8em > +% width of subsection (four digits + two periods): 3.2em > +\IfSansSerif{ % sans serif (Helvetica clone) > + % to cover section "E.10" and subsection "15.5.10", > + % width of section: 2.4em > + % width of subsection: 3.7em > +\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.4em}} > +\renewcommand*\l@subsection{\@dottedtocline{2}{3.9em}{3.7em}} > +}{ % serif (Times Roman clone) > + % to cover subsection "15.5.10", > + % width of subsection: 3.4em > +\renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.4em}} > +} > \makeatother > > \IfEbookSize{ > -- > 2.25.1 > >