Skip to content

Commit

Permalink
extend the test to also cover extended syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankMittelbach committed Jan 23, 2025
1 parent 3430846 commit 72a3c26
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 16 deletions.
9 changes: 7 additions & 2 deletions base/testfiles/github-1638.lvt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
% Showed 2 spaces in running header, but one (correct) in TOC
%
% Also test extended syntax (which has no separate test).
%
% As neither \label nor \idex have an extended syntax so far you get strange
% output in the heading, but the TOC and the running header is ok

\documentclass{book}

Expand All @@ -15,8 +20,8 @@

\tableofcontents

\chapter{X \index{blub} X X}
\section{Y \label{bla} Y Y}
\chapter{X \index{blub} X \index*{abc} X \index[foo]{xyz} X X}
\section{Y \label{bla} Y \label[foo]{bar} Y Y}
x \newpage x \newpage x \newpage
\OMIT
\end{document}
78 changes: 64 additions & 14 deletions base/testfiles/github-1638.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Completed box being shipped out [1]
...\glue(\parskip) 0.0 plus 1.0
...\glue(\parskip) 0.0
...\glue(\baselineskip) 5.13889
...\hbox(6.86111+0.0)x345.0, glue set 278.42523fil
...\hbox(6.86111+0.0)x345.0, glue set 253.36981fil
....\glue(\leftskip) 15.00002
....\glue -15.00002
....\hbox(6.44444+0.0)x15.00002, glue set 9.25005fil
Expand All @@ -63,6 +63,10 @@ Completed box being shipped out [1]
....\OT1/cmr/bx/n/10 X
....\glue 3.83331 plus 1.91473 minus 1.27904
....\OT1/cmr/bx/n/10 X
....\glue 3.83331 plus 1.91473 minus 1.27904
....\OT1/cmr/bx/n/10 X
....\glue 3.83331 plus 1.91473 minus 1.27904
....\OT1/cmr/bx/n/10 X
....\penalty 10000
....\glue 0.0 plus 1.0fil
....\penalty 10000
Expand All @@ -79,7 +83,7 @@ Completed box being shipped out [1]
...\glue(\parskip) 0.0 plus 1.0
...\glue(\parskip) 0.0
...\glue(\baselineskip) 5.16669
...\hbox(6.83331+0.0)x345.0, glue set 262.33318fill
...\hbox(6.83331+0.0)x345.0, glue set 251.49983fill
....\glue(\leftskip) 38.00008
....\hbox(0.0+0.0)x15.00002
....\hbox(0.0+0.0)x0.0
Expand All @@ -95,6 +99,8 @@ Completed box being shipped out [1]
....\OT1/cmr/m/n/10 Y
....\glue 3.33333 plus 1.66498 minus 1.11221
....\OT1/cmr/m/n/10 Y
....\glue 3.33333 plus 1.66498 minus 1.11221
....\OT1/cmr/m/n/10 Y
....\penalty 10000
....\leaders 0.0 plus 1.0fill
.....\hbox(1.05554+0.0)x7.77766
Expand Down Expand Up @@ -162,8 +168,8 @@ Completed box being shipped out [3]
..\glue 18.06749
..\glue(\lineskip) 0.0
..\vbox(550.0+0.0)x345.0, glue set 335.09724fil
...\write1{\@writefile{toc}{\protect \contentsline {chapter}{\protect \numberline {1}X X X}{\thepage }{}\protected@file@percent }}
...\marks1{\__mark_value:nn {4}{\MakeUppercase []{Chapter\ 1. \ X \index {blub} X X}}}
...\write1{\@writefile{toc}{\protect \contentsline {chapter}{\protect \numberline {1}X X X X X}{\thepage }{}\protected@file@percent }}
...\marks1{\__mark_value:nn {4}{\MakeUppercase []{Chapter\ 1. \ X \index {blub} X \index *{abc} X \index [foo]{xyz} X X}}}
...\marks2{\__mark_value:nn {5}{}}
...\write1{\@writefile{lof}{\protect \addvspace {10\p@ }}}
...\write1{\@writefile{lot}{\protect \addvspace {10\p@ }}}
Expand Down Expand Up @@ -193,8 +199,8 @@ Completed box being shipped out [3]
...\glue 20.0
...\glue(\parskip) 0.0 plus 1.0
...\glue(\parskip) 0.0
...\glue(\baselineskip) 8.89679
...\hbox(17.07045+0.0)x345.0, glue set 131.46524fil
...\glue(\baselineskip) 7.30724
...\hbox(18.66+6.22)x345.0, glue set 26.94188fil
....\hbox(0.0+0.0)x0.0
....\OT1/cmr/bx/n/24.88 X
....\glue 9.33 plus 4.66032 minus 3.11311
Expand All @@ -203,6 +209,30 @@ Completed box being shipped out [3]
....\glue 0.0
....\OT1/cmr/bx/n/24.88 X
....\glue 9.33 plus 4.66032 minus 3.11311
....\write3{\indexentry{*}{\thepage }}
....\penalty 10000
....\glue 0.0
....\OT1/cmr/bx/n/24.88 a
....\OT1/cmr/bx/n/24.88 b
....\kern0.7775
....\OT1/cmr/bx/n/24.88 c
....\glue 9.33 plus 4.665 minus 3.11
....\OT1/cmr/bx/n/24.88 X
....\glue 9.33 plus 4.66032 minus 3.11311
....\write3{\indexentry{[}{\thepage }}
....\penalty 10000
....\glue 0.0
....\OT1/cmr/bx/n/24.88 f
....\OT1/cmr/bx/n/24.88 o
....\kern0.7775
....\OT1/cmr/bx/n/24.88 o
....\OT1/cmr/bx/n/24.88 ]
....\OT1/cmr/bx/n/24.88 x
....\OT1/cmr/bx/n/24.88 y
....\OT1/cmr/bx/n/24.88 z
....\glue 9.33 plus 4.665 minus 3.11
....\OT1/cmr/bx/n/24.88 X
....\glue 9.33 plus 4.66032 minus 3.11311
....\OT1/cmr/bx/n/24.88 X
....\penalty 10000
....\glue(\parfillskip) 0.0 plus 1.0fil
Expand All @@ -211,8 +241,8 @@ Completed box being shipped out [3]
...\glue 40.0
...\glue(\parskip) 0.0 plus 1.0
...\glue(\parskip) 0.0
...\glue(\baselineskip) 8.12001
...\hbox(9.87999+0.0)x345.0, glue set 260.60005fil
...\glue(\baselineskip) 0.98001
...\hbox(10.79999+3.59999)x345.0, glue set 187.97513fil
....\hbox(9.27998+0.0)x36.89995
.....\glue 0.0
.....\OT1/cmr/bx/n/14.4 1
Expand All @@ -226,21 +256,35 @@ Completed box being shipped out [3]
....\glue 0.0
....\OT1/cmr/bx/n/14.4 Y
....\glue 5.4 plus 2.6973 minus 1.80179
....\write1{\newlabel{[}{{1.1}{\thepage }{}{section.1.1}{}}}
....\penalty 10000
....\glue 0.0
....\OT1/cmr/bx/n/14.4 f
....\OT1/cmr/bx/n/14.4 o
....\kern0.45
....\OT1/cmr/bx/n/14.4 o
....\OT1/cmr/bx/n/14.4 ]
....\OT1/cmr/bx/n/14.4 b
....\OT1/cmr/bx/n/14.4 a
....\OT1/cmr/bx/n/14.4 r
....\glue 5.4 plus 2.7 minus 1.79999
....\OT1/cmr/bx/n/14.4 Y
....\glue 5.4 plus 2.6973 minus 1.80179
....\OT1/cmr/bx/n/14.4 Y
....\penalty 10000
....\glue(\parfillskip) 0.0 plus 1.0fil
....\glue(\rightskip) 0.0
...\marks2{\__mark_value:nn {6}{\MakeUppercase []{1.1. \ Y \label {bla} Y Y}}}
...\marks2{\__mark_value:nn {6}{\MakeUppercase []{1.1. \ Y \label {bla} Y \label [foo]{bar} Y Y}}}
...\penalty 10000
...\marks3{\__mark_value:nn {7}{\MakeUppercase []{1.1. \ Y \label {bla} Y Y}}}
...\marks3{\__mark_value:nn {7}{\MakeUppercase []{1.1. \ Y \label {bla} Y \label [foo]{bar} Y Y}}}
...\penalty 10000
...\write1{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline {1.1}Y Y Y}{\thepage }{}\protected@file@percent }}
...\write1{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline {1.1}Y Y Y Y}{\thepage }{}\protected@file@percent }}
...\penalty 10000
...\penalty 10000
...\glue 9.90276 plus 0.86108
...\glue(\parskip) 0.0 plus 1.0
...\glue(\parskip) 0.0
...\glue(\baselineskip) 7.69446
...\glue(\baselineskip) 4.09447
...\hbox(4.30554+0.0)x345.0, glue set 339.7222fil
....\OT1/cmr/m/n/10 x
....\penalty 10000
Expand All @@ -261,7 +305,7 @@ Completed box being shipped out [4]
..\vbox(12.0+0.0)x345.0, glue set 5.16669fil
...\glue 0.0 plus 1.0fil
...\hbox(6.83331+0.0)x345.0
....\hbox(6.83331+0.0)x345.0, glue set 241.52763fil
....\hbox(6.83331+0.0)x345.0, glue set 219.86095fil
.....\OT1/cmr/m/n/10 4
.....\glue 0.0 plus 1.0fil
.....\OT1/cmr/m/sl/10 C
Expand All @@ -281,6 +325,10 @@ Completed box being shipped out [4]
.....\OT1/cmr/m/sl/10 X
.....\glue 3.33333 plus 1.66498 minus 1.11221
.....\OT1/cmr/m/sl/10 X
.....\glue 3.33333 plus 1.66498 minus 1.11221
.....\OT1/cmr/m/sl/10 X
.....\glue 3.33333 plus 1.66498 minus 1.11221
.....\OT1/cmr/m/sl/10 X
..\glue 18.06749
..\glue(\lineskip) 0.0
..\vbox(550.0+0.0)x345.0, glue set 540.0fil
Expand All @@ -303,7 +351,7 @@ Completed box being shipped out [5]
..\vbox(12.0+0.0)x345.0, glue set 5.16669fil
...\glue 0.0 plus 1.0fil
...\hbox(6.83331+0.0)x345.0
....\hbox(6.83331+0.0)x345.0, glue set 287.49991fil
....\hbox(6.83331+0.0)x345.0, glue set 276.66656fil
.....\OT1/cmr/m/sl/10 1
.....\OT1/cmr/m/sl/10 .
.....\OT1/cmr/m/sl/10 1
Expand All @@ -315,6 +363,8 @@ Completed box being shipped out [5]
.....\OT1/cmr/m/sl/10 Y
.....\glue 3.33333 plus 1.66498 minus 1.11221
.....\OT1/cmr/m/sl/10 Y
.....\glue 3.33333 plus 1.66498 minus 1.11221
.....\OT1/cmr/m/sl/10 Y
.....\glue 0.0 plus 1.0fil
.....\OT1/cmr/m/n/10 5
..\glue 18.06749
Expand Down

0 comments on commit 72a3c26

Please sign in to comment.