Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-manyfoot.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `manyfoot')
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 \LWR@ProvidesPackageDrop{manyfoot}[2005/09/11]
19 \RequirePackage{nccfoots}
20
21 \newcommand{\extrafootnoterule}{}
22
23 \let\defaultfootnoterule\footnoterule
24
25 \newcommand*{\SelectFootnoteRule}[2][0]{}
26
27 \newcommand{\footnoterulepriority}{1}
28
29 \newcommand{\SetFootnoteHook}[1]{}
30 \@onlypreamble\SetFootnoteHook
31
32 \newcommand{\SplitNote}{}
33
34 \newcommand*\ExtraParaSkip[1]{}
35
36 \newcommand*{\newfootnote}[2][plain]{%
37 \ifstrequal{#2}{default}{}{% not "default"
38 \expandafter\newbox\csname LWR@footnote#2box\endcsname%
39 \appto{\LWR@printpendingfootnotes}{%
40 \LWR@@printpendingfootnotes{footnote#2}%
41 }
42 \long\csdef{Footnotetext#2}##1##2{%
43 \NCC@makefnmark{##1}%
44 \LWR@@footnotetext{##2}{LWR@footnote#2box}%
45 }%
46 \long\csdef{Footnotetext#2+}##1##2{%
47 \NCC@makefnmark{##1}%
48 \LWR@@footnotetext{##2}{LWR@footnote#2box}%
49 }%
50 }% not "default"
51 }
52 \@onlypreamble\newfootnote
53
54 \newcommand*{\DeclareNewFootnote}[2][plain]{%
55 \@ifnextchar[%
56 {\LWR@manyfoot@declare{#1}{#2}}%
57 {\LWR@manyfoot@declare{#1}{#2}[arabic]}%
58 }
59
60 \def\LWR@manyfoot@declare#1#2[#3]{%
61 \ifstrequal{#2}{default}{}{% not "default"
62 \newfootnote[#1]{#2}%
63 \newcounter{footnote#2}%
64 \newcounter{footnote#2Reset}%
65 \setcounter{footnote#2Reset}{0}%
66 \csdef{thefootnote#2}{%
67 \expandafter\noexpand\csname @#3\endcsname%
68 \expandafter\noexpand\csname c@footnote#2\endcsname%
69 }%
70 \expandafter\NewDocumentCommand\csname footnote#2\endcsname{t{+}t{+}t{-}t{-}}{%
71 \stepcounter{footnote#2}%
72 \protected@xdef\@thefnmark{\csname thefootnote#2\endcsname}%
73 \@footnotemark%
74 \csuse{Footnotetext#2}{\@thefnmark}% absorbs the footnote contents
75 }%
76 \csdef{footnotemark#2}{%
77 \stepcounter{footnote#2}%
78 \protected@xdef\@thefnmark{\csname thefootnote#2\endcsname}%
79 \@footnotemark%
80 }%
81 \expandafter\NewDocumentCommand\csname footnotetext#2\endcsname{t{+}t{+}t{-}t{-}}{%
82 \protected@xdef\@thefnmark{\csname thefootnote#2\endcsname}%
83 \csuse{Footnotetext#2}{\@thefnmark}% absorbs the footnote contents
84 }%
85 \csdef{Footnotemark#2}{%
86 \Footnotemark%
87 }%
88 \csdef{Footnote#2}##1{%
89 \Footnotemark{##1}%
90 \csuse{Footnotetext#2}{##1}%
91 }%
92 }% not "default"
93 }
94 \@onlypreamble\DeclareNewFootnote
95
96 \endinput
97 %%
98 %% End of file `lwarp-manyfoot.sty'.