Debian Codegraph @

texmf-dist/tex/latex/latex-lab/latex-lab-footnotes.ltx

raw
1 %%
2 %% This is file `latex-lab-footnotes.ltx',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% latex-lab-footnotes.dtx (with options: `kernel')
8 %%
9 %% This is a generated file.
10 %%
11 %% Copyright 2021-2025 LaTeX Project
12 %%
13 %% This file was generated from file(s) of the `LaTeX-lab Bundle'.
14 %% ------------------------------------------------------------------------------------
15 %%
16 %% It may be distributed and/or modified under the
17 %% conditions of the LaTeX Project Public License, either version 1.3c
18 %% of this license or (at your option) any later version.
19 %% The latest version of this license is in
20 %% http://www.latex-project.org/lppl.txt
21 %% and version 1.3c or later is part of all distributions of LaTeX
22 %% version 2008 or later.
23 %%
24 %% This file may only be distributed together with a copy of the LaTeX
25 %% `LaTeX-lab Bundle'. You may however distribute the `LaTeX-lab Bundle'
26 %% without such generated files.
27 %%
28 %% The newest sources can be found below
29 %%
30 %% https://github.com/latex3/latex2e/required/latex-lab
31 %%
32 %% where one can also log issues in case there are any.
33 %%
34 %%
35 %% File: latex-lab-footnotes.dtx
36 \def\ltlabfootnotedate{2025-07-04}
37 \def\ltlabfootnoteversion{0.8o}
38
39 \ProvidesFile{latex-lab-footnotes.ltx}
40 [\ltlabfootnotedate\space v\ltlabfootnoteversion\space
41 changes to the footnote interfaces]
42 %% alterations not covered:
43
44 \ExplSyntaxOn
45 \prop_new:N \l__fnote_tmpa_prop
46 \tl_new:N \l__fnote_tmpa_tl
47 \tl_new:N \l_fnote_type_tl
48 \tl_set:Nn \l_fnote_type_tl {default}
49 \bool_new:N \l_fnote_link_bool
50 \bool_set_true:N \l_fnote_link_bool
51 \tl_new:N \l_fnote_link_type_tl
52 \tl_set:Nn \l_fnote_link_type_tl {link}
53 \tl_new:N \l__fnote_linktarget_tl
54 \tl_new:N \l__fnote_currentlabel_tl
55
56 \seq_new:N \l__fnote_currentrefs_seq
57 \bool_new:N \l__fnote_autodetect_bool
58 \bool_set_true:N \l__fnote_autodetect_bool
59 \tl_new:N \l__fnote_currentstruct_tl
60 \tl_set:Nn \l__fnote_currentstruct_tl {2}
61 \cs_generate_variant:Nn \hook_gput_code:nnn{nne}
62 \cs_generate_variant:Nn \tag_struct_use:n {e}
63 \cs_new_protected:Npn \fnote_step_fnmark:nn #1#2 {
64 \tl_if_novalue:nTF {#1}
65 {
66 \stepcounter {#2}
67 \protected@xdef \@thefnmark { \use:c { the#2 } }
68 }
69 {
70 \group_begin:
71 \int_set:cn { c@#2 }{ #1 }
72 \unrestored@protected@xdef \@thefnmark { \use:c { the#2 } }
73 \group_end:
74 }
75 }
76 \cs_new_protected:Npn \fnote_set_fnmark:nn #1#2 {
77 \tl_if_novalue:nTF {#1}
78 {
79 \protected@xdef \@thefnmark { \use:c { the#2 } }
80 }
81 {
82 \group_begin:
83 \int_set:cn { c@#2 }{ #1 }
84 \unrestored@protected@xdef \@thefnmark { \use:c { the#2 } }
85 \group_end:
86 }
87 }
88 \NewMirroredHookPair{fnmark/before}{fnmark/after}
89 \NewHook{fnmark}
90 \NewHook{fnmark/begin}
91 \NewHook{fnmark/end}
92 \NewMirroredHookPair{fntext/before}{fntext/after}
93 \NewHook{fntext}
94 \NewHook{fntext/para}
95 \NewHook{fntext/begin}
96 \NewHook{fntext/end}
97 \bool_new:N \g_fnote_debug_bool
98
99 \cs_new_protected:Npn \DebugFNotesOn { \bool_gset_true:N \g_fnote_debug_bool }
100 \cs_new_protected:Npn \DebugFNotesOff { \bool_gset_false:N \g_fnote_debug_bool }
101 \cs_new_protected:Npn \__fnote_debug_footnotemark:
102 {
103 \bool_if:NT \g_fnote_debug_bool
104 {
105 \hook_log:n {fnmark/before}
106 \hook_log:n {fnmark}
107 \hook_log:n {fnmark/begin}
108 \hook_log:n {fnmark/end}
109 \hook_log:n {fnmark/after}
110 \cs_gset_eq:NN \__fnote_debug_footnotemark: \prg_do_nothing:
111 }
112 }
113 \cs_new_protected:Npn \__fnote_debug_footnotetext:
114 {
115 \bool_if:NT \g_fnote_debug_bool
116 {
117 \socket_log:n {fntext/process}
118 \socket_log:n {fntext/make}
119 \socket_log:n {fntext/begin}
120 \socket_log:n {fntext/end}
121 \socket_log:n {fntext/mark}
122 \socket_log:n {fntext/text}
123 \socket_log:n {tagsupport/fnmark}
124 \socket_log:n {tagsupport/fntext/begin}
125 \socket_log:n {tagsupport/fntext/end}
126 \socket_log:n {tagsupport/fntext/mark}
127 \socket_log:n {tagsupport/fntext/text}
128 \hook_log:n {fntext/before}
129 \hook_log:n {fntext}
130 \hook_log:n {fntext/para}
131 \hook_log:n {fntext/begin}
132 \hook_log:n {fntext/end}
133 \hook_log:n {fntext/after}
134 \cs_gset_eq:NN \__fnote_debug_footnotetext: \prg_do_nothing:
135 }
136 }
137 \cs_new_protected:Npn \fnote_footnotemark: {
138 \__fnote_debug_footnotemark:
139 \hook_use:n {fnmark/before}
140 \leavevmode
141 \ifhmode
142 \edef\@x@sf{\the\spacefactor}
143 \hook_use:n {fnmark}
144 \nobreak
145 \fi
146 \hook_use:n {fnmark/begin}
147 \tag_socket_use:nnn {fnmark}{}{ \socket_use:n{fnmark/link}{\@makefnmark} }
148 \__fnote_footnotemark_finish:
149 }
150 \cs_new_protected:Npn \__fnote_footnotemark_default_finish: {
151 \UseHook{fnmark/end}
152 \ifhmode
153 \spacefactor \@x@sf \relax
154 \fi
155 \UseHook{fnmark/after}
156 }
157 \cs_new_eq:NN \__fnote_footnotemark_finish: \__fnote_footnotemark_default_finish:
158 \NewTaggingSocket{fnmark}{2}
159 \cs_set_eq:NN \@footnotemark \fnote_footnotemark:
160 \cs_new_protected:Npn \fnote_footnotetext:n #1 {
161 \__fnote_debug_footnotetext:
162 \hook_use:n {fntext/before}
163 \tag_socket_use:n {fntext/begin}
164 \socket_use:nn {fntext/process}
165 {
166 \hook_use:n {fntext}
167 \reset@font
168 \footnotesize
169 \interlinepenalty\interfootnotelinepenalty
170 \splittopskip\footnotesep
171 \splitmaxdepth \dp\strutbox
172 \floatingpenalty \@MM
173 \hsize\columnwidth
174 \@parboxrestore
175 \UseTaggingSocket{para/restore}
176 \parindent 1em % typical default used in \@makefntext moved up here
177 \def\@currentcounter{footnote}
178 \protected@edef \@currentlabel { \p@footnote \@thefnmark }
179 \hook_use:n {fntext/para}
180 \color@begingroup
181 \socket_use:nn {fntext/make}
182 {
183 \socket_use:n {fntext/begin}%
184 \hook_use:n {fntext/begin}
185 \ignorespaces
186 #1
187 \hook_use:n {fntext/end}
188 \socket_use:n {fntext/end}
189 }
190 \par
191 \color@endgroup
192 }
193 \tag_socket_use:n{fntext/end}
194 \hook_use:n {fntext/after}
195 }
196 \NewSocket {fntext/process}{1}
197 \NewSocketPlug{fntext/process}{default}{ \insert\footins {#1} }
198 \NewSocketPlug{fntext/process}{side} { \marginpar {#1} }
199 \AssignSocketPlug{fntext/process}{default}
200 \NewSocket {fntext/make}{1}
201 \NewSocketPlug{fntext/make}{default}{ \@makefntext {#1} }
202 \NewSocketPlug{fntext/make}{para}
203 {
204 \setbox\FN@tempboxa\hbox{\@makefntext{#1}}%
205 \dp\FN@tempboxa\z@
206 \ht\FN@tempboxa
207 \dimexpr\wd\FN@tempboxa *%
208 \footnotebaselineskip /\columnwidth\relax
209 \box\FN@tempboxa
210 }
211 \AssignSocketPlug{fntext/make}{default}
212 \NewSocket {fntext/begin}{0}
213 \NewSocketPlug{fntext/begin}{default}{ \rule\z@\footnotesep }
214 \AssignSocketPlug{fntext/begin}{default}
215 \NewSocket {fntext/end}{0}
216 \NewSocketPlug{fntext/end}{default}{ \@finalstrut\strutbox }
217 \NewSocketPlug{fntext/end}{para}
218 {%
219 \strut
220 \penalty-10\relax
221 \hskip\footglue
222 }
223 \AssignSocketPlug{fntext/end}{default}
224 \NewTaggingSocket{fntext/begin}{0}
225 \NewTaggingSocket{fntext/end}{0}
226 \AddToHook{begindocument}
227 {
228 \cs_set_eq:NN \@footnotetext \fnote_footnotetext:n
229 }
230 \newdimen\footnotemargin
231 \footnotemargin\maxdimen % no value given
232
233 \AtBeginDocument
234 {
235 \ifdim \footnotemargin=\maxdimen
236 \setlength\footnotemargin{1.8em}
237 \fi
238 }
239 \cs_new_protected:Npn \fnote_makefntext:n #1 {
240 \noindent
241 \socket_use:n{fntext/mark/link}
242 \tag_socket_use:nnn {fntext/mark} {} { \socket_use:n {fntext/mark} }
243 \tag_socket_use:nnn {fntext/text} {} { \socket_use:nn {fntext/text}{#1} }
244 }
245 \NewSocket {fntext/mark}{0}
246 \NewSocketPlug{fntext/mark}{default}{
247 \ifdim\footnotemargin>\z@
248 \hb@xt@ \footnotemargin{\hss\@makefnmark}
249 \else
250 \ifdim\footnotemargin=\z@
251 \llap{\@makefnmark}
252 \else
253 \ifdim\footnotemargin=-\maxdimen
254 \@makefnmark
255 \else
256 \llap{\hb@xt@ -\footnotemargin{\@makefnmark\hss}}
257 \fi
258 \fi
259 \fi
260 }
261 \AssignSocketPlug{fntext/mark}{default}
262 \NewSocket {fntext/text}{1}
263 \NewTaggingSocket{fntext/mark}{2}
264 \NewTaggingSocket{fntext/text}{2}
265 \newcommand\old@std@class@makefntext[1]{%
266 \parindent 1em%
267 \noindent
268 \hb@[email protected]{\hss\@makefnmark}#1}
269 \tl_new:N \l__fnote_patch_tl
270 \cs_new_eq:NN \__fnote_tmp:w \ERROR
271
272 \cs_new_protected:Npn \__fnote_patch:
273 {
274 \tl_set:No \l__fnote_patch_tl { \@makefntext { \UseTaggingSocket{fntext/text}{}{##1} } }
275 \tl_if_in:NnTF \l__fnote_patch_tl { \hbox }
276 { \cs_set_eq:NN \__fnote_tmp:w \__fnote_patch_hbox:w }
277 {
278 \tl_if_in:NnTF \l__fnote_patch_tl { \hb@xt@ }
279 { \cs_set_eq:NN \__fnote_tmp:w \__fnote_patch_hb@xt@:w }
280 {
281 \tl_if_in:NnTF \l__fnote_patch_tl { \makebox }
282 { \cs_set_eq:NN \__fnote_tmp:w \__fnote_patch_makebox:w }
283 {
284 \tl_if_in:NnTF \l__fnote_patch_tl { \@makefnmark }
285 { \cs_set_eq:NN \__fnote_tmp:w \__fnote_patch_@makefnmark:w }
286 { \ERROR
287 \cs_set_eq:NN \__fnote_tmp:w \exp_stop_f: }
288 }
289 }
290 }
291 \tl_set:Nf \l__fnote_patch_tl
292 { \exp_after:wN \__fnote_tmp:w \l__fnote_patch_tl }
293 \cs_set:Npn \__fnote_tmp:w { \long \def \@makefntext ####1 }
294 \exp_after:wN \__fnote_tmp:w \exp_after:wN { \l__fnote_patch_tl }
295 }
296 \cs_new:Npn \__fnote_patch_hbox:w #1 \hbox #2 #
297 { \exp_stop_f: #1 \@makefntext@processX { \hbox #2 } }
298 \cs_new:Npn \__fnote_patch_hb@xt@:w #1 \hb@xt@ #2 #
299 { \exp_stop_f: #1 \@makefntext@processX { \hb@xt@ #2 } }
300 \cs_new:Npn \__fnote_patch_makebox:w #1 \makebox #2 #
301 { \exp_stop_f: #1 \@makefntext@processX { \makebox #2 } }
302 \cs_new:Npn \__fnote_patch_@makefnmark:w #1 \@makefnmark
303 { \exp_stop_f: #1 \@makefntext@processX { \use:n } { \@makefnmark } }
304 \cs_new:Npn \@makefntext@processX #1#2
305 {
306 \socket_use:n{fntext/mark/link}
307 \UseTaggingSocket{fntext/mark}{}{#1{#2}}
308 }
309
310 \AddToHook{begindocument}
311 {
312 \cs_if_eq:NNF\@makefntext \fnote_makefntext:n
313 {
314 \cs_if_eq:NNTF \@makefntext \old@std@class@makefntext
315 {
316 \cs_set_eq:NN \@makefntext \fnote_makefntext:n
317 }
318 {
319 \cs_if_eq:NNF \@makefntext \footmisc@hang@makefntext
320 { \__fnote_patch: }
321 }
322 }
323 }
324
325 \DeclareDocumentCommand\footnotetext {o+m}
326 {
327 \fnote_set_fnmark:nn {#1} \@mpfn
328 \@footnotetext {#2}
329 }
330 \DeclareDocumentCommand\footnote {o+m}
331 {
332 \fnote_step_fnmark:nn {#1} \@mpfn
333 \cs_set_eq:NN \__fnote_footnotemark_finish: \prg_do_nothing:
334 \@footnotemark
335 \cs_set_eq:NN \__fnote_footnotemark_finish: \__fnote_footnotemark_default_finish:
336 \@footnotetext {#2}
337 \__fnote_footnotemark_finish:
338 }
339
340 \DeclareDocumentCommand\footnotemark {o}
341 {
342 \fnote_step_fnmark:nn {#1} { footnote }
343 \@footnotemark
344 }
345
346 \DeclareDocumentCommand\footref {m}
347 {
348 \begingroup
349 \unrestored@protected@xdef\@thefnmark{\ref*{#1}}%
350 \endgroup
351 \bool_set_false:N \l__fnote_autodetect_bool
352 \tl_set:Nn \l__fnote_currentlabel_tl {#1}
353 \@footnotemark
354 \bool_set_true:N \l__fnote_autodetect_bool
355 }
356 \NewSocketPlug{fntext/process}{mp}
357 {
358 \global\setbox\@mpfootins\vbox{%
359 \unvbox\@mpfootins
360 #1
361 }
362 }
363 \AddToHook{class/memoir/before}
364 { \let\new@std@class@makecol\@makecol }
365 \AddToHook{class/memoir/after}
366 {
367 \cs_set_eq:NN \@footnotemark \fnote_footnotemark:
368 \cs_set_eq:NN \@makefntext\old@std@class@makefntext
369 \cs_set_eq:NN \@makecol\new@std@class@makecol
370 }
371 \AddToHook{package/setspace/after}
372 {\let \@footnotetext \fnote_footnotetext:n
373 \AddToHook{fntext}[setspace]{\let\baselinestretch\setspace@singlespace}}
374 \def\hyper@nopatch@footnote{}
375 \AtBeginDocument
376 {
377 \providecommand\hyper@linkstart{\@gobbletwo}
378 \providecommand\hyper@linkend{\@empty}
379 }
380 \AtBeginDocument
381 {
382 \@ifpackageloaded{hyperref}
383 {
384 \AssignSocketPlug{fnmark/link}{link}
385 \AssignSocketPlug{fntext/mark/link}{link}
386 \legacy_if:nF{Hy@hyperfootnotes}{\bool_set_false:N \l_fnote_link_bool}
387 }
388 {
389 \bool_set_false:N \l_fnote_link_bool
390 }
391 }
392 \int_new:N \g_fnote_id_int
393 \AddToHook{fntext/before}{\int_gincr:N\g_fnote_id_int}
394
395 \property_new:nnnn {fnote/struct}{now}{1}{\l__fnote_currentstruct_tl}
396 \property_new:nnnn {fnote/id}{now}{1}{\int_use:N\g_fnote_id_int}
397 \cs_new_protected:Npn \__fnote_label_hook:e #1 {}
398 \AddToHookWithArguments{label}{ \__fnote_label_hook:e{#1}}
399 \AddToHook{fntext/begin}
400 {
401 \cs_set_protected:Npn \__fnote_label_hook:e #1
402 {
403 \property_record:ee {__fnote/#1} {fnote/struct,fnote/id}
404 }
405 }
406 \cs_new_protected:Npn \fnote_class_new:nn #1 #2 % #1 name, #2 options
407 {
408 \prop_new:c { g__fnote_currentmarks_struct_#1_prop }
409 \prop_new:c { g__fnote_currentmarks_id_#1_prop }
410 }
411
412 \fnote_class_new:nn {default}{}
413 \cs_new_protected:Npn \fnote_mark_struct_gput:nn #1 #2 % #1 the representation of the mark, #2 type
414 {
415 \prop_gput:cen { g__fnote_currentmarks_struct_#2_prop }
416 { \tag_get:n{struct_num} }
417 { #1 }
418 }
419 \cs_new_protected:Npn \fnote_mark_id_gput:nn #1 #2 % #1 the representation of the mark, #2 type
420 {
421 \prop_gput:cen { g__fnote_currentmarks_id_#2 _prop }
422 { \int_use:N\g_fnote_id_int }
423 { #1 }
424 }
425 \cs_generate_variant:Nn \fnote_mark_struct_gput:nn {no,oo}
426 \cs_generate_variant:Nn \fnote_mark_id_gput:nn {no,oo}
427 \cs_new_protected:Npn \fnote_mark_gpop_all:nnnN #1 #2 #3 #4
428 {
429 \seq_clear:N #4
430 \prop_set_eq:Nc \l__fnote_tmpa_prop { g__fnote_currentmarks_#1_#3_prop }
431 \prop_map_inline:Nn \l__fnote_tmpa_prop
432 {
433 \tl_if_eq:nnT {#2} { ##2 }
434 {
435 \seq_put_right:Nn #4 { ##1 }
436 \prop_gremove:cn { g__fnote_currentmarks_#1_#3_prop } {##1}
437 }
438 }
439 }
440 \cs_generate_variant:Nn\fnote_mark_gpop_all:nnnN {nooN}
441 \NewSocket{fnmark/link}{1}
442 \NewSocketPlug{fnmark/link}{link}
443 {
444 \int_gincr:N\g_fnote_id_int
445 \bool_if:NTF \l__fnote_autodetect_bool
446 {
447 \fnote_mark_id_gput:oo {\@thefnmark}{\l_fnote_type_tl}
448 \tl_set:Ne \l__fnote_linktarget_tl {footnote*.\int_use:N\g_fnote_id_int}
449 }
450 {
451 \tl_set:Ne \l__fnote_linktarget_tl
452 {footnote*.\property_ref:ee {__fnote/\l__fnote_currentlabel_tl} {fnote/id}}
453 }
454 \bool_if:NTF \l_fnote_link_bool
455 {
456 \exp_args:No
457 \hyper@linkstart
458 { \l_fnote_link_type_tl }
459 { \l__fnote_linktarget_tl }
460 #1
461 \hyper@linkend
462 }
463 { #1 }
464 }
465 \NewTaggingSocketPlug{fnmark}{FEMark}
466 {
467 \tag_mc_end_push:
468 \tag_struct_begin:n { tag=footnotemark }
469 \bool_if:NF \l__fnote_autodetect_bool
470 {
471 \hook_gput_code:nne {tagpdf/finish/before} {tagpdf/footnote}
472 {
473 \exp_not:N\fnote_gput_refs:ee
474 { \tag_get:n{struct_num} }
475 { \property_ref:ee{ __fnote/\l__fnote_currentlabel_tl } {fnote/struct} }
476 }
477 }
478 \tag_mc_begin:n{tag=Lbl}
479 \bool_if:NT \l__fnote_autodetect_bool
480 {
481 \fnote_mark_struct_gput:oo {\@thefnmark}{\l_fnote_type_tl}
482 }
483 #2
484 \tag_mc_end:
485 \tag_struct_end:
486 \tag_mc_begin_pop:n{}
487 }
488 \AssignTaggingSocketPlug{fnmark}{FEMark}
489
490 \cs_new_protected:Npn \__fnote_gput_ref:nn #1 #2 %#1 the structure number receiving the ref #2
491 {
492 \tag_struct_gput:nnn {#1}{ref_num}{#2}
493 }
494 \cs_new_protected:Npn \fnote_gput_refs:nn #1 #2 % pair of structure numbers
495 {
496 \__fnote_gput_ref:nn {#1}{#2}
497 \__fnote_gput_ref:nn {#2}{#1}
498 }
499 \cs_generate_variant:Nn \fnote_gput_refs:nn {ee}
500 \NewTaggingSocketPlug{fntext/begin}{FENote}
501 {
502 \tag_mc_end_push:
503 \tag_check_child:nnTF {FENote}{pdf2}
504 {
505 \tag_struct_begin:n { tag=footnote }
506 }
507 {
508 \tag_struct_begin:n
509 {
510 tag=footnote,
511 parent=\int_max:nn{2}{\tag_get:n{current_Sect}+0}
512 }
513 }
514 \tl_set:Ne \l__fnote_currentstruct_tl { \tag_get:n{struct_num} }
515 \bool_if:NTF \l__fnote_autodetect_bool
516 {
517 \fnote_mark_gpop_all:nooN {struct}{ \@thefnmark }{ \l_fnote_type_tl } \l__fnote_currentrefs_seq
518 \seq_map_inline:Nn \l__fnote_currentrefs_seq
519 {
520 \fnote_gput_refs:ee {##1}{ \l__fnote_currentstruct_tl }
521 }
522 }
523 {%no auto
524
525 }
526 }
527 \NewTaggingSocketPlug{fntext/end}{FENote}
528 {
529 \tag_struct_end:
530 \tag_mc_begin_pop:n{}
531 }
532 \AssignTaggingSocketPlug{fntext/begin}{FENote}
533 \AssignTaggingSocketPlug{fntext/end}{FENote}
534 \NewSocket{fntext/mark/link}{0}
535 \NewSocketPlug{fntext/mark/link}{link}
536 {
537 \fnote_mark_gpop_all:nooN {id}{ \@thefnmark }{ \l_fnote_type_tl } \l__fnote_currentrefs_seq
538 \seq_map_inline:Nn\l__fnote_currentrefs_seq {\MakeLinkTarget*{footnote*.##1}}
539 \MakeLinkTarget*{footnote*.\int_use:N\g_fnote_id_int}
540 }
541
542 \NewTaggingSocketPlug{fntext/mark}{FENoteLbl}
543 {
544 \tag_mc_end_push:
545 \tag_struct_begin:n { tag=footnotelabel,parent=\l__fnote_currentstruct_tl,firstkid }
546 \tag_mc_begin:n { tag=Lbl }
547 #2
548 \tag_mc_end:
549 \tag_struct_end:
550 \tag_mc_begin_pop:n{}
551 }
552 \AssignSocketPlug{tagsupport/fntext/mark}{FENoteLbl}
553 \NewTaggingSocketPlug{fntext/text}{FENotetext}
554 {
555 \tag_mc_end_push:
556 \tag_mc_begin:n{}
557 #2
558 \tag_mc_end:
559 \tag_mc_begin_pop:n{}
560 }
561 \AssignTaggingSocketPlug{fntext/text}{FENotetext}
562
563 \ExplSyntaxOff
564 \endinput
565 %%
566 %% End of file `latex-lab-footnotes.ltx'.