Skip to content

Commit 96e000a

Browse files
committed
support label in minipage footnote, issue #402
1 parent 65bfb69 commit 96e000a

File tree

4 files changed

+229
-1
lines changed

4 files changed

+229
-1
lines changed

ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-07-12 Ulrike Fischer
2+
* hyperref.dtx: set \@currentHref in \@mpfootnotetext, issue #402.
3+
14
2025-07-12 Ulrike Fischer
25
* hyperref.dtx: prepare disabling patches if DocumentMetadata is used.
36

hyperref.dtx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11176,7 +11176,13 @@
1117611176
\expandafter\hyper@@anchor\expandafter{%
1117711177
\Hy@footnote@currentHref
1117811178
}{\relax}%
11179-
}\ignorespaces #1%
11179+
}%
11180+
% \end{macrocode}
11181+
% Change 2025-09-29: set \cs{@currentHref} and \cs{@currentlabelname} for issue 402.
11182+
% \begin{macrocode}
11183+
\let\@currentHref\Hy@footnote@currentHref
11184+
\let\@currentlabelname\@empty
11185+
\ignorespaces #1%
1118011186
}%
1118111187
}%
1118211188
}%

testfiles-pdftex/gh402.lvt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
\documentclass{article}
2+
\input{regression-test}
3+
\usepackage{hyperref}
4+
5+
\begin{document}
6+
\START\showoutput
7+
\section{minipage}
8+
\begin{minipage}{\linewidth}
9+
\centering
10+
\begin{tabular}{ccc}
11+
X\footnote{\label{minipage}minipage} & \footnote{other} & X\footref{minipage} \\
12+
\end{tabular}
13+
\end{minipage}
14+
15+
\end{document}

testfiles-pdftex/gh402.tlg

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
This is a generated file for the l3build validation system.
2+
Don't change this file in any respect.
3+
LaTeX Font Info: External font `cmex10' loaded for size
4+
(Font) <7> on input line ....
5+
LaTeX Font Info: External font `cmex10' loaded for size
6+
(Font) <5> on input line ....
7+
LaTeX Font Info: External font `cmex10' loaded for size
8+
(Font) <8> on input line ....
9+
LaTeX Font Info: External font `cmex10' loaded for size
10+
(Font) <6> on input line ....
11+
Completed box being shipped out [1]
12+
\vbox(633.0+0.0)x407.0
13+
.\hbox(0.0+0.0)x0.0
14+
.\vbox(0.0+0.0)x0.0, glue set - 14.99626fil
15+
..\kern 0.0
16+
..\kern 16.0
17+
..\kern -1.00374
18+
..\hbox(0.0+0.0)x0.0, glue set - 60.99626fil
19+
...\kern 0.0
20+
...\kern 62.0
21+
...\kern -1.00374
22+
...\pdfdest name{page.1} xyz
23+
...\penalty 10000
24+
...\glue 0.0 plus 1.0fil minus 1.0fil
25+
..\glue 0.0 plus 1.0fil minus 1.0fil
26+
.\glue(\lineskip) 0.0
27+
.\vbox(633.0+0.0)x407.0
28+
..\glue 16.0
29+
..\vbox(617.0+0.0)x345.0, shifted 62.0
30+
...\vbox(12.0+0.0)x345.0, glue set 12.0fil
31+
....\glue 0.0 plus 1.0fil
32+
....\hbox(0.0+0.0)x345.0
33+
.....\hbox(0.0+0.0)x345.0
34+
...\glue 25.0
35+
...\glue(\lineskip) 0.0
36+
...\vbox(550.0+0.0)x345.0, glue set 490.81474fil
37+
....\write-{}
38+
....\pdfdest name{Doc-Start} xyz
39+
....\pdfdest name{section.1} xyz
40+
....\glue(\topskip) 0.00002
41+
....\hbox(9.99998+2.79999)x345.0, glue set 256.83347fil
42+
.....\hbox(9.27998+0.0)x24.29997
43+
......\glue 0.0
44+
......\OT1/cmr/bx/n/14.4 1
45+
......\glue 16.19998
46+
.....\OT1/cmr/bx/n/14.4 m
47+
.....\OT1/cmr/bx/n/14.4 i
48+
.....\OT1/cmr/bx/n/14.4 n
49+
.....\OT1/cmr/bx/n/14.4 i
50+
.....\OT1/cmr/bx/n/14.4 p
51+
.....\OT1/cmr/bx/n/14.4 a
52+
.....\OT1/cmr/bx/n/14.4 g
53+
.....\OT1/cmr/bx/n/14.4 e
54+
.....\penalty 10000
55+
.....\glue(\parfillskip) 0.0 plus 1.0fil
56+
.....\glue(\rightskip) 0.0
57+
....\write3{\protect \BOOKMARK [1][-]{section.1}{\376\377\000m\000i\000n\000i\000p\000a\000g\000e}{}% 1}
58+
....\write1{\@writefile{toc}{\protect \contentsline {section}{\protect \numberline {1}minipage}{\thepage }{section.1}\protected@file@percent }}
59+
....\penalty 10000
60+
....\glue 9.90276 plus 0.86108
61+
....\glue(\parskip) 0.0 plus 1.0
62+
....\glue(\parskip) 0.0
63+
....\glue(\lineskip) 1.0
64+
....\hbox(22.71504+17.71504)x345.0
65+
.....\mathon
66+
.....\vbox(22.71504+17.71504)x345.0
67+
......\hbox(8.54503+3.54503)x345.0, glue set 140.12213fil
68+
.......\glue(\leftskip) 0.0 plus 1.0fil
69+
.......\hbox(0.0+0.0)x0.0
70+
.......\hbox(8.54503+3.54503)x64.75574
71+
........\mathon
72+
........\vbox(8.54503+3.54503)x64.75574
73+
.........\hbox(8.49002+3.60004)x64.75574
74+
..........\glue(\tabskip) 0.0
75+
..........\hbox(8.49002+3.60004)x24.22229
76+
...........\rule(8.39996+3.60004)x0.0
77+
...........\glue 6.0
78+
...........\glue 0.0 plus 1.0fil
79+
...........\glue 0.00002
80+
...........\OT1/cmr/m/n/10 X
81+
...........\penalty 10000
82+
...........\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{Hfootnote.1}
83+
...........\hbox(6.6428+0.0)x4.72226
84+
............\mathon
85+
............\hbox(3.01389+0.0)x4.72226, shifted -3.62892
86+
.............\OT1/cmr/m/it/7 a
87+
............\mathoff
88+
...........\pdfendlink
89+
...........\glue 0.0 plus 1.0fil
90+
...........\glue 6.0
91+
..........\glue(\tabskip) 0.0
92+
..........\hbox(8.49002+3.60004)x16.31116
93+
...........\glue 6.0
94+
...........\glue 0.0 plus 1.0fil
95+
...........\glue 0.00002
96+
...........\penalty 10000
97+
...........\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{Hfootnote.2}
98+
...........\hbox(8.49002+0.0)x4.31114
99+
............\mathon
100+
............\hbox(4.8611+0.0)x4.31114, shifted -3.62892
101+
.............\OT1/cmr/m/it/7 b
102+
............\mathoff
103+
...........\pdfendlink
104+
...........\glue 0.0 plus 1.0fil
105+
...........\glue 6.0
106+
..........\glue(\tabskip) 0.0
107+
..........\hbox(8.49002+3.60004)x24.22229
108+
...........\glue 6.0
109+
...........\glue 0.0 plus 1.0fil
110+
...........\glue 0.00002
111+
...........\OT1/cmr/m/n/10 X
112+
...........\penalty 10000
113+
...........\hbox(6.6428+0.0)x4.72226
114+
............\mathon
115+
............\hbox(3.01389+0.0)x4.72226, shifted -3.62892
116+
.............\pdfstartlink(*+*)x* attr{/Border[0 0 1]/H/I/C[1 0 0]} action goto name{Hfootnote.1}
117+
.............\OT1/cmr/m/it/7 a
118+
.............\pdfendlink
119+
............\mathoff
120+
...........\glue 0.0 plus 1.0fil
121+
...........\glue 6.0
122+
..........\glue(\tabskip) 0.0
123+
........\mathoff
124+
.......\penalty 10000
125+
.......\glue(\parfillskip) 0.0
126+
.......\glue(\rightskip) 0.0 plus 1.0fil
127+
......\glue 9.0 plus 4.0 minus 2.0
128+
......\kern -3.0
129+
......\rule(0.4+0.0)x137.9979
130+
......\kern 2.6
131+
......\hbox(6.65+2.85002)x345.0, glue set 296.17151fil
132+
.......\hbox(5.40666+0.0)x15.30023, glue set 11.18115fil
133+
........\glue 0.0 plus 1.0fil minus 1.0fil
134+
........\hbox(5.40666+0.0)x4.11908
135+
.........\mathon
136+
.........\hbox(2.58333+0.0)x4.11908, shifted -2.82333
137+
..........\OT1/cmr/m/it/6 a
138+
.........\mathoff
139+
.......\hbox(6.65+0.0)x0.0
140+
........\rule(6.65+0.0)x0.0
141+
.......\penalty 10000
142+
.......\hbox(0.0+0.0)x0.0
143+
........\hbox(0.0+0.0)x0.0, shifted -9.5
144+
.........\pdfdest name{Hfootnote.1} xyz
145+
.........\penalty 10000
146+
.......\write1{\newlabel{minipage}{{{\itshape a}}{\thepage }{}{Hfootnote.1}{}}}
147+
.......\OT1/cmr/m/n/8 m
148+
.......\OT1/cmr/m/n/8 i
149+
.......\OT1/cmr/m/n/8 n
150+
.......\OT1/cmr/m/n/8 i
151+
.......\OT1/cmr/m/n/8 p
152+
.......\OT1/cmr/m/n/8 a
153+
.......\OT1/cmr/m/n/8 g
154+
.......\OT1/cmr/m/n/8 e
155+
.......\penalty 10000
156+
.......\rule(0.0+2.85002)x0.0
157+
.......\penalty 10000
158+
.......\glue(\parfillskip) 0.0 plus 1.0fil
159+
.......\glue(\rightskip) 0.0
160+
......\glue(\parskip) 0.0
161+
......\glue(\parskip) 0.0
162+
......\hbox(6.98999+2.85002)x345.0, glue set 310.33144fil
163+
.......\hbox(6.98999+0.0)x15.30023, glue set 11.53354fil
164+
........\glue 0.0 plus 1.0fil minus 1.0fil
165+
........\hbox(6.98999+0.0)x3.7667
166+
.........\mathon
167+
.........\hbox(4.16666+0.0)x3.7667, shifted -2.82333
168+
..........\OT1/cmr/m/it/6 b
169+
.........\mathoff
170+
.......\hbox(6.65+0.0)x0.0
171+
........\rule(6.65+0.0)x0.0
172+
.......\penalty 10000
173+
.......\hbox(0.0+0.0)x0.0
174+
........\hbox(0.0+0.0)x0.0, shifted -9.5
175+
.........\pdfdest name{Hfootnote.2} xyz
176+
.........\penalty 10000
177+
.......\OT1/cmr/m/n/8 o
178+
.......\OT1/cmr/m/n/8 t
179+
.......\OT1/cmr/m/n/8 h
180+
.......\OT1/cmr/m/n/8 e
181+
.......\OT1/cmr/m/n/8 r
182+
.......\penalty 10000
183+
.......\rule(0.0+2.85002)x0.0
184+
.......\penalty 10000
185+
.......\glue(\parfillskip) 0.0 plus 1.0fil
186+
.......\glue(\rightskip) 0.0
187+
.....\mathoff
188+
.....\penalty 10000
189+
.....\glue(\parfillskip) 0.0 plus 1.0fil
190+
.....\glue(\rightskip) 0.0
191+
....\glue -5.0
192+
....\glue 0.0 plus 1.0fil
193+
....\glue 0.0
194+
....\glue 0.0 plus 0.0001fil
195+
...\glue(\baselineskip) 23.55556
196+
...\hbox(6.44444+0.0)x345.0
197+
....\hbox(6.44444+0.0)x345.0, glue set 170.0fil
198+
.....\glue 0.0 plus 1.0fil
199+
.....\OT1/cmr/m/n/10 1
200+
.....\glue 0.0 plus 1.0fil
201+
.\kern 0.0
202+
(gh402.aux)
203+
Package rerunfilecheck Info: File `gh402.out' has not changed.
204+
(rerunfilecheck) Checksum: 17BFA5B4BFBC2C93BDB643E8FB3C06EF;83.

0 commit comments

Comments
 (0)