Skip to content

Commit

Permalink
fix \@finalstrut in test files for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Jun 9, 2024
1 parent 51cd2c8 commit 65d4c93
Show file tree
Hide file tree
Showing 10 changed files with 375 additions and 381 deletions.
23 changes: 20 additions & 3 deletions testfiles-pdftex/ptagging-003.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@
\input{regression-test}
\documentclass[12pt,a4paper]{article}

\makeatletter
\def\fix@finalstrut#1{%
\unskip
\ifhmode \nobreak
\else
\ifdim \prevdepth=-\@m\p@
\else
\vskip-\prevdepth
\fi
\vskip-\baselineskip %new
\fi
\vrule %new
\@width\z@\@height\z@\@depth\dp#1}
\makeatother

\textheight=20\baselineskip

Expand All @@ -16,14 +30,18 @@
%\showoutput

\START

\makeatletter
\ifx\fix@finalstrut\@finalstrut \TYPE{Remove Finalstrut FIX!} \else
\ShowCommand\@finalstrut
\let\@finalstrut\fix@finalstrut
\fi
\makeatother
\SHOWFILE{\jobname.aux}

\OMIT
\begin{document}
\TIMO


\kant[1] text\footnote{FOO: \kant[7]} barbaz

\kant[2]
Expand Down Expand Up @@ -56,4 +74,3 @@ halli


\end{document}

92 changes: 5 additions & 87 deletions testfiles-pdftex/ptagging-003.pdftexmain.tlg
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
> \@finalstrut=macro:
#1->\unskip \ifhmode \nobreak \vrule \else \ifdim \prevdepth =-\@m \p@ \else \vskip -\prevdepth \fi \hrule \fi \@width \z@ \@height \z@ \@depth \dp #1.
<argument> \@finalstrut
l. ...\ShowCommand\@finalstrut
-------- ptagging-003.aux (start) ---------
(ptagging-003.aux) \relax^^M
\new@label@record{mcid-2}{{tagabspage}{1}{tagmcabs}{2}{tagmcid}{0}}^^M
Expand Down Expand Up @@ -29,98 +33,12 @@ Don't change this file in any respect.
\new@label@record{@tag@LastPage}{{abspage}{4}{tagmcabs}{58}{tagstruct}{32}}^^M
\gdef \@abspage@last{4}^^M
-------- ptagging-003.aux (end) -----------
-> The hook 'fnmark/before':
> The hook is empty.
-> The hook 'fnmark':
> The hook is empty.
-> The hook 'fnmark/begin':
> The hook is empty.
-> The hook 'fnmark/end':
> The hook is empty.
-> The hook 'fnmark/after':
> The hook is empty.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line ....
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line ....
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line ....
Socket fntext/process:
number of inputs = 1
available plugs = noop, identity, default, side, mp
current plug = default
definition = \protected\long macro:#1->\insert \footins {#1}
Socket fntext/make:
number of inputs = 1
available plugs = noop, identity, default, para
current plug = default
definition = \protected\long macro:#1->\@makefntext {#1}
Socket fntext/begin:
number of inputs = 0
available plugs = noop, default
current plug = default
definition = \protected\long macro:->\rule \z@ \footnotesep
Socket fntext/end:
number of inputs = 0
available plugs = noop, default, para
current plug = default
definition = \protected\long macro:->\@finalstrut \strutbox
Socket fntext/mark:
number of inputs = 0
available plugs = noop, default
current plug = default
definition = \protected\long macro:->\ifdim \footnotemargin >\z@ \hb@xt@ \footnotemargin {\hss \@makefnmark }\else \ifdim \footnotemargin =\z@ \llap {\@makefnmark }\else \ifdim \footnotemargin =-\maxdimen \@makefnmark \else \llap {\hb@xt@ -\footnotemargin {\@makefnmark \hss }}\fi \fi \fi
Socket fntext/text:
number of inputs = 1
available plugs = noop, identity
current plug = identity
definition = \protected\long macro:#1->#1
Socket tagsupport/fnmark:
number of inputs = 1
available plugs = noop, identity, FEMark
current plug = FEMark
definition = \protected\long macro:#1->\tag_mc_end_push: \tag_struct_begin:n {tag=footnotemark}\bool_if:NTF \l__fnote_autodetect_bool {\fnote_mark_gput:oo {\@thefnmark }{\l_fnote_type_tl }\tl_set:Ne \l__fnote_linktarget_tl {footnote*.\tag_get:n {struct_num}}}{\hook_gput_code:nne {tagpdf/finish/before}{tagpdf/footnote}{\exp_not:N \fnote_gput_refs:ee {\tag_get:n {struct_num}}{\property_ref:ee {__fnote/\l__fnote_currentlabel_tl }{fnote/struct}}}\tl_set:Ne \l__fnote_linktarget_tl {footnote*.\property_ref:ee {__fnote/\l__fnote_currentlabel_tl }{fnote/struct}}}\tag_mc_begin:n {tag=Lbl}\bool_if:NTF \l_fnote_link_bool {\exp_args:No \hyper@linkstart {\l_fnote_link_type_tl }{\l__fnote_linktarget_tl }#1\hyper@linkend }{#1}\tag_mc_end: \tag_struct_end: \tag_mc_begin_pop:n {}
Socket tagsupport/fntext/begin:
number of inputs = 0
available plugs = noop, FENote
current plug = FENote
definition = \protected\long macro:->\tag_mc_end_push: \tag_check_child:nnTF {FENote}{pdf2}{\tag_struct_begin:n {tag=footnote}}{\tag_struct_begin:n {tag=footnote,parent=\l__fnote_dflt_struct_tl }}\tl_set:Ne \l__fnote_currentstruct_tl {\tag_get:n {struct_num}}\tag_struct_begin:n {tag=footnotelabel}\tag_struct_end: \bool_if:NTF \l__fnote_autodetect_bool {\fnote_mark_gpop_all:ooN {\@thefnmark }{\l_fnote_type_tl }\l__fnote_currentrefs_seq \seq_map_inline:Nn \l__fnote_currentrefs_seq {\fnote_gput_refs:ee {##1}{\l__fnote_currentstruct_tl }}}{}
Socket tagsupport/fntext/end:
number of inputs = 0
available plugs = noop, FENote
current plug = FENote
definition = \protected\long macro:->\tag_struct_end: \tag_mc_begin_pop:n {}
Socket tagsupport/fntext/mark:
number of inputs = 1
available plugs = noop, identity, FENoteLbl
current plug = FENoteLbl
definition = \protected\long macro:#1->\tag_mc_end_push: \seq_map_inline:Nn \l__fnote_currentrefs_seq {\MakeLinkTarget *{footnote*.##1}}\MakeLinkTarget *{footnote*.\l__fnote_currentstruct_tl }\tag_struct_begin:n {tag=NonStruct,parent=\l__fnote_currentstruct_tl +1}\tag_mc_begin:n {tag=Lbl}#1\tag_mc_end: \tag_struct_end: \tag_mc_begin_pop:n {}
Socket tagsupport/fntext/text:
number of inputs = 1
available plugs = noop, identity, FENotetext
current plug = FENotetext
definition = \protected\long macro:#1->\tag_mc_end_push: \tag_mc_begin:n {}#1\tag_mc_end: \tag_mc_begin_pop:n {}
-> The hook 'fntext/before':
> The hook is empty.
-> The hook 'fntext':
> The hook is empty.
-> The hook 'fntext/para':
> The hook is empty.
-> The hook 'fntext/begin':
> Code chunks:
> latex-lab-testphase-new-or-2 -> \cs_set_protected:Npn \__fnote_label_hook:e ##1{\property_record:ee {__fnote/##1}{fnote/struct}}
> Document-level (top-level) code (executed last):
> ---
> Extra code for next invocation:
> ---
> Rules:
> ---
> Execution order:
> latex-lab-testphase-new-or-2.
-> The hook 'fntext/end':
> The hook is empty.
-> The hook 'fntext/after':
> The hook is empty.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line ....
LaTeX Font Info: External font `cmex10' loaded for size
Expand All @@ -129,7 +47,7 @@ LaTeX Font Info: External font `cmex10' loaded for size
]
Package multicol: Starting environment with 2 columns on input line ....
Package multicol: Current page:
(multicol) height=171.19997pt: used 157.0pt -> free=14.19997pt
(multicol) height=183.19997pt: used 157.0pt -> free=26.19997pt
(multicol) needed 50.0pt (for \premulticols ) on input line ....
[2]
Package multicol: Column spec: 390.0pt = indent + columns + sep =
Expand Down
6 changes: 5 additions & 1 deletion testfiles-pdftex/ptagging-003.tlg
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
> \@finalstrut=macro:
#1->\unskip \ifhmode \nobreak \vrule \else \ifdim \prevdepth =-\@m \p@ \else \vskip -\prevdepth \fi \hrule \fi \@width \z@ \@height \z@ \@depth \dp #1.
<argument> \@finalstrut
l. ...\ShowCommand\@finalstrut
-------- ptagging-003.aux (start) ---------
(ptagging-003.aux) \relax^^M
\new@label@record{mcid-2}{{tagabspage}{1}{tagmcabs}{2}{tagmcid}{0}}^^M
Expand Down Expand Up @@ -43,7 +47,7 @@ LaTeX Font Info: External font `cmex10' loaded for size
]
Package multicol: Starting environment with 2 columns on input line ....
Package multicol: Current page:
(multicol) height=171.19997pt: used 157.0pt -> free=14.19997pt
(multicol) height=183.19997pt: used 157.0pt -> free=26.19997pt
(multicol) needed 50.0pt (for \premulticols ) on input line ....
[2]
Package multicol: Column spec: 390.0pt = indent + columns + sep =
Expand Down
Loading

0 comments on commit 65d4c93

Please sign in to comment.