Debian Codegraph @

texmf-dist/tex/latex-dev/tools/ftnright.sty

raw
1 %%
2 %% This is file `ftnright.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ftnright.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% The source is maintained by the LaTeX Project team and bug
12 %% reports for it can be opened at https://latex-project.org/bugs/
13 %% (but please observe conditions on bug reports sent to that address!)
14 %%
15 %%
16 %% Copyright (C) 1993-2026
17 %% The LaTeX Project and any individual authors listed elsewhere
18 %% in this file.
19 %%
20 %% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'.
21 %% --------------------------------------------------------------------------
22 %%
23 %% It may be distributed and/or modified under the
24 %% conditions of the LaTeX Project Public License, either version 1.3c
25 %% of this license or (at your option) any later version.
26 %% The latest version of this license is in
27 %% https://www.latex-project.org/lppl.txt
28 %% and version 1.3c or later is part of all distributions of LaTeX
29 %% version 2005/12/01 or later.
30 %%
31 %% This file may only be distributed together with a copy of the LaTeX
32 %% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle'
33 %% without such generated files.
34 %%
35 %% The list of all files belonging to the LaTeX `Tools Bundle' is
36 %% given in the file `manifest.txt'.
37 %%
38 %% Package `ftnright' to use with LaTeX 2e
39 %% Copyright (C) 1989-2004 Frank Mittelbach, all rights reserved.
40 \NeedsTeXFormat{LaTeX2e}[1995/06/01]
41 \ProvidesPackage{ftnright}
42 [2023/07/08 v1.1f footnote layout package (FMi)]
43 %%
44 %%
45 \def\preparefootins{%
46 \global\rcol@footinsskip\skip\footins
47 \global\skip\footins\z@
48 \global\count\footins\z@
49 \global\dimen\footins\textheight}
50 \newskip\rcol@footinsskip
51 \def\@outputdblcol{\if@firstcolumn
52 \global\@firstcolumnfalse
53 \global\setbox\@leftcolumn\box\@outputbox
54 \global\count\footins\@m
55 \global\skip\footins\rcol@footinsskip
56 \else \preparefootins
57 \global\@firstcolumntrue
58 \setbox\@outputbox\vbox{\hbox to\textwidth
59 {\hbox to\columnwidth
60 {\box\@leftcolumn\hss}%
61 \hfil\vrule\@width\columnseprule\hfil
62 \hbox to\columnwidth
63 {\box\@outputbox\hss}}}%
64 \@combinedblfloats\@outputpage
65 \begingroup
66 \@dblfloatplacement\@startdblcolumn
67 \@whilesw\if@fcolmade\fi
68 {\@outputpage\@startdblcolumn}%
69 \endgroup
70 \fi}
71 \def\@startcolumn{%
72 \ifx\@deferlist\@empty
73 \global\@fcolmadefalse
74 \global\@colroom\@colht
75 \else
76 \ifvoid\footins\else
77 \ftn@amount\ht\footins
78 \advance\ftn@amount\dp\footins
79 \advance\ftn@amount\skip\footins
80 \fi
81 \global\advance\@colht-\ftn@amount
82 \global\@colroom\@colht
83 \@xstartcol
84 \global\advance\@colht\ftn@amount
85 \global\advance\@colroom\ftn@amount
86 \fi
87 \if@fcolmade
88 \setbox\@cclv\box\@outputbox
89 \@makecol
90 \else
91 \ifvoid\footins\else
92 \insert\footins{\unvbox\footins}\fi
93 \fi}
94 \newdimen\ftn@amount
95
96 \def\@xstartcol{%
97 \@tryfcolumn \@deferlist
98 \if@fcolmade
99 \else
100 \begingroup
101 \let \@tempb \@deferlist
102 \global \let \@deferlist \@empty
103 \let \@elt \@scolelt
104 \@tempb
105 \endgroup
106 \fi
107 }
108 \def\@makecol{\if@firstcolumn
109 \setbox\@outputbox\box\@cclv
110 \if@twocolumn \else
111 \ifvoid\footins \else
112 \@latexerr{ftnright package
113 used in one-column mode}%
114 {The ftnright package was designed to
115 work with LaTeX's standard^^Jtwocolumn
116 option. It does *not* work with the
117 multicol package.^^JSo please specify
118 `twocolumn' in the
119 \noexpand\documentclass command.}%
120 \shipout\box\footins \fi\fi
121 \ifnum\insertpenalties>\z@
122 \@latexerr{ftnright package
123 scrambled footnotes}%
124 {There is too much footnote material in
125 the first column and ftnright^^Jis
126 unable to cope with this.^^JYou need
127 to reduce the amount to get a properly
128 formatted page.}%
129 \fi
130 \else
131 \ifvoid\footins
132 \setbox\@outputbox\box\@cclv
133 \else
134 \setbox\@outputbox\vbox
135 {\ifvoid\@cclv \else
136 \unvbox\@cclv
137 \vskip\skip\footins\fi
138 \color@begingroup
139 \normalcolor
140 \footnoterule\unvbox\footins
141 \color@endgroup}\fi
142 \fi
143 \xdef\@freelist{\@freelist\@midlist}%
144 \global \let \@midlist \@empty
145 \@combinefloats
146 \ifvbox\@kludgeins
147 \@makespecialcolbox
148 \else
149 \setbox\@outputbox\vbox to\@colht
150 {\boxmaxdepth\maxdepth
151 \@texttop
152 \@tempdima\dp\@outputbox
153 \unvbox\@outputbox
154 \vskip-\@tempdima
155 \@textbottom}%
156 \fi
157 \global\maxdepth\@maxdepth}
158 \ifcase \@ptsize
159 \renewcommand\footnotesize{%
160 \@setfontsize\footnotesize\@viiipt{9.9}%
161 \abovedisplayskip 6\p@\@plus2\p@\@minus4\p@
162 \abovedisplayshortskip \z@ \@plus\p@
163 \belowdisplayshortskip
164 3\p@\@plus\p@\@minus2\p@
165 \def\@listi{\leftmargin\leftmargini
166 \topsep 3\p@ \@plus\p@ \@minus\p@
167 \parsep 2\p@ \@plus\p@ \@minus\p@
168 \itemsep \parsep}%
169 \belowdisplayskip \abovedisplayskip
170 }
171 \or
172 \renewcommand\footnotesize{%
173 \@setfontsize\footnotesize\@ixpt{11.1}%
174 \abovedisplayskip 8\p@\@plus2\p@\@minus4\p@
175 \abovedisplayshortskip \z@ \@plus\p@
176 \belowdisplayshortskip
177 4\p@ \@plus2\p@ \@minus2\p@
178 \def\@listi{\leftmargin\leftmargini
179 \topsep 4\p@ \@plus2\p@\@minus2\p@
180 \parsep 2\p@ \@plus\p@ \@minus\p@
181 \itemsep \parsep}%
182 \belowdisplayskip \abovedisplayskip
183 }
184 \or
185 \renewcommand\footnotesize{%
186 \@setfontsize\footnotesize\@xpt{12.3}%
187 \abovedisplayskip10\p@\@plus2\p@\@minus5\p@
188 \abovedisplayshortskip \z@ \@plus3\p@
189 \belowdisplayshortskip
190 6\p@ \@plus3\p@ \@minus3\p@
191 \def\@listi{\leftmargin\leftmargini
192 \topsep 6\p@ \@plus2\p@ \@minus2\p@
193 \parsep 3\p@ \@plus2\p@ \@minus\p@
194 \itemsep \parsep}%
195 \belowdisplayskip \abovedisplayskip
196 }
197 \fi
198 \let\footnoterule\@empty
199 \AtBeginDocument
200 {\global\footnotesep\ht\strutbox}
201 \long\def\@makefntext#1{\parindent 1em
202 \noindent\hbox to 2em{}%
203 \llap{\@thefnmark.\,\,}#1}
204 \setlength{\skip\footins}
205 {10pt plus 5pt minus 3pt}
206 \AtBeginDocument{\preparefootins}
207
208 \endinput
209 %%
210 %% End of file `ftnright.sty'.