Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-footnote.sty

raw
1 %%
2 %% This is file `lwarp-footnote.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `footnote')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \long\def\@makefntext#1{\textsuperscript{\@thefnmark}~#1}
19
20 \LWR@ProvidesPackagePass{footnote}[1997/01/28]
21
22 \long\def\@makefntext#1{\textsuperscript{\@thefnmark}~{#1}}
23
24 \VerifyCommand[lwarp][footnote]{\spewnotes}{BCC4919F5404BADA8F1CF486E5709072}
25
26 \def\spewnotes{%
27 \endgroup%
28 \if@savingnotes\else\ifvoid\fn@notes\else\begingroup%
29 \let\@makefntext\@empty%
30 \let\@finalstrut\@gobble%
31 \let\rule\@gobbletwo%
32 \booltrue{LWR@spewingnotes}% lwarp
33 \@footnotetext{\unvbox\fn@notes}%
34 \endgroup\fi\fi%
35 }
36 \let\endsavenotes\spewnotes
37
38 \VerifyCommand[lwarp][footnote]{\fn@fntext}{4C750987515F28FE665A08AB710193BA}
39
40 \def\fn@fntext#1{%
41 \ifx\ifmeasuring@\@@undefined%
42 \expandafter\@secondoftwo\else\expandafter\@iden%
43 \fi%
44 {\ifmeasuring@\expandafter\@gobble\else\expandafter\@iden\fi}%
45 {%
46 \LWR@ensuredoingapar% lwarp
47 \setcounter{LWR@saved@spandepth}{\value{LWR@spandepth}}% lwarp
48 \setcounter{LWR@spandepth}{0}% lwarp
49 \LWR@save@doingapar% lwarp
50 \global\setbox\fn@notes\vbox{%
51 \unvbox\fn@notes%
52 \LWR@htmltagc{\LWR@tagregularparagraph}% lwarp
53 \LWR@orignewline% lwarp
54 \fn@startnote%
55 \@makefntext{%
56 \rule\z@\footnotesep%
57 \ignorespaces%
58 #1%
59 \@finalstrut\strutbox%
60 }%
61 \fn@endnote%
62 \global\boolfalse{LWR@doingapar}% lwarp
63 }%
64 \setcounter{LWR@spandepth}{\value{LWR@saved@spandepth}}% lwarp
65 \LWR@restore@doingapar% lwarp
66 }%
67 }
68 \VerifyCommand[lwarp][footnote]{\fn@startnote}{D101A3D1B9653A6FDD7E9CF37BD5A4DD}
69
70 \def\fn@startnote{%
71 \protected@edef\@currentlabel{\csname p@\@mpfn\endcsname\@thefnmark}%
72 }
73
74 \def\fn@endnote{%
75 \LWR@orignobreakspace\LWR@orignewline%
76 \LWR@htmltagc{/\LWR@tagregularparagraph}\LWR@orignewline%
77 \LWR@orignobreakspace\LWR@orignewline%
78 }
79 \VerifyCommand[lwarp][footnote]{\fn@startfntext}{7270AD27C28391C41DA1FE47C49B5E7A}
80
81 \def\fn@startfntext{%
82 \setbox\z@\vbox\bgroup%
83 \LWR@htmltagc{\LWR@tagregularparagraph}% lwarp
84 \LWR@orignewline% lwarp
85 \fn@startnote%
86 \fn@prefntext% Req'd for numbering.
87 \ignorespaces%
88 }
89
90 \VerifyCommand[lwarp][footnote]{\fn@endfntext}{17BC1D2CD9A84BAFFBE765CC1618C36D}
91
92 \def\fn@endfntext{%
93 \fn@postfntext%
94 \LWR@orignobreakspace\LWR@orignewline%
95 \egroup%
96 \begingroup%
97 \let\@makefntext\@empty%
98 \let\@finalstrut\@gobble%
99 \renewcommand*{\rule}[3][]{}%
100 \booltrue{LWR@spewingnotes}% lwarp
101 \global\booltrue{LWR@doingapar}%
102 \@footnotetext{\unvbox\z@}%
103 \endgroup%
104 }
105 \let\endfootnote\fn@endfntext
106 \let\endfootnotetext\endfootnote
107
108 \endinput
109 %%
110 %% End of file `lwarp-footnote.sty'.