| 1 |
%% |
| 2 |
%% This is file `flafter.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% ltoutput.dtx (with options: `flafter,trace') |
| 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.html |
| 13 |
%% (but please observe conditions on bug reports sent to that address!) |
| 14 |
%% |
| 15 |
%% |
| 16 |
%% Copyright (C) 1993-2025 |
| 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 LaTeX base system. |
| 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 2008 or later. |
| 30 |
%% |
| 31 |
%% This file has the LPPL maintenance status "maintained". |
| 32 |
%% |
| 33 |
%% This file may only be distributed together with a copy of the LaTeX |
| 34 |
%% base system. You may however distribute the LaTeX base system without |
| 35 |
%% such generated files. |
| 36 |
%% |
| 37 |
%% The list of all files belonging to the LaTeX base distribution is |
| 38 |
%% given in the file `manifest.txt'. See also `legal.txt' for additional |
| 39 |
%% information. |
| 40 |
%% |
| 41 |
%% The list of derived (unpacked) files belonging to the distribution |
| 42 |
%% and covered by LPPL is defined by the unpacking scripts (with |
| 43 |
%% extension .ins) which are part of the distribution. |
| 44 |
%%% From File: ltoutput.dtx |
| 45 |
\ProvidesPackage{flafter} |
| 46 |
[2025/08/22 v1.4z |
| 47 |
Standard LaTeX floats after reference (FMi)] |
| 48 |
\IncludeInRelease{2025/06/01}% |
| 49 |
{\@addtocurcol}{float order in 2-column}% |
| 50 |
\def \@addtocurcol {% |
| 51 |
\fl@trace{***Start addtocurcol}% |
| 52 |
\@insertfalse |
| 53 |
\@setfloattypecounts |
| 54 |
\ifnum \@fpstype=8 |
| 55 |
\fl@trace{fpstype !p only (addtocurcol): \the \@fpstype = 8?}% |
| 56 |
\else |
| 57 |
\ifnum \@fpstype=24 |
| 58 |
\fl@trace{fpstype p only (addtocurcol): \the \@fpstype = 24?}% |
| 59 |
\else |
| 60 |
\@flsettextmin |
| 61 |
\fl@trace{textfloatsheight (before) = \the \@textfloatsheight}% |
| 62 |
\advance \@textmin \@textfloatsheight |
| 63 |
\@reqcolroom \@pageht |
| 64 |
\fl@trace{textmin + textfloatsheight: \the \@textmin}% |
| 65 |
\fl@trace{page-so-far: \the \@reqcolroom}% |
| 66 |
\ifdim \@textmin>\@reqcolroom |
| 67 |
\@reqcolroom \@textmin |
| 68 |
\fl@trace{ORD? textmin being used}% |
| 69 |
\fi |
| 70 |
\advance \@reqcolroom \ht\@currbox |
| 71 |
\saved@reqcolroom \@reqcolroom |
| 72 |
\fl@trace{float size = \the \ht \@currbox (addtocurcol)}% |
| 73 |
\fl@trace{colroom = \the \@colroom (addtocurcol)}% |
| 74 |
\fl@trace{reqcolroom = \the \@reqcolroom (addtocurcol)}% |
| 75 |
\ifdim \@colroom>\@reqcolroom |
| 76 |
\@flsetnum \@colnum |
| 77 |
\ifnum \@colnum>\z@ |
| 78 |
\@bitor\@currtype\@deferlist |
| 79 |
\@testwrongwidth\@currbox |
| 80 |
\fl@trace{deferlist: \@deferlist: (addtocurcol-before)}% |
| 81 |
\if@test |
| 82 |
\fl@trace{type already on list: defer (addtocurcol)}% |
| 83 |
\else |
| 84 |
\@bitor\@currtype\@botlist |
| 85 |
\fl@trace{botlist: \@botlist: (addtocurcol-before)}% |
| 86 |
\if@test |
| 87 |
\fl@trace{type already on list: bot---sent to addtobot}% |
| 88 |
\@addtobot |
| 89 |
\else |
| 90 |
\fl@trace{fpstype \ifodd \@tempcnta OK \else not \fi |
| 91 |
here: \the \@fpstype}% |
| 92 |
\ifodd \count\@currbox |
| 93 |
\advance \@reqcolroom \intextsep |
| 94 |
\ifdim \@colroom>\@reqcolroom |
| 95 |
\global \advance \@colnum \m@ne |
| 96 |
\global \advance \@textfloatsheight \ht\@currbox |
| 97 |
\global \advance \@textfloatsheight 2\intextsep |
| 98 |
\@cons \@midlist \@currbox |
| 99 |
\fl@trace{***Success: here}% |
| 100 |
\fl@trace{textfloatsheight (after-here) = |
| 101 |
\the \@textfloatsheight}% |
| 102 |
\fl@trace{colnum (after-here) = \the \@colnum}% |
| 103 |
\if@nobreak |
| 104 |
\nobreak |
| 105 |
\@nobreakfalse |
| 106 |
\everypar{}% |
| 107 |
\else |
| 108 |
\addpenalty \interlinepenalty |
| 109 |
\fi |
| 110 |
\vskip \intextsep |
| 111 |
\box\@currbox |
| 112 |
\penalty\interlinepenalty |
| 113 |
\vskip\intextsep |
| 114 |
\ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi |
| 115 |
\outputpenalty \z@ |
| 116 |
\@inserttrue |
| 117 |
\else |
| 118 |
\fl@trace{Fail---no room at 2nd test of colroom |
| 119 |
(addtocorcol \string\intextsep)}% |
| 120 |
\fi |
| 121 |
\fi |
| 122 |
\if@insert |
| 123 |
\else |
| 124 |
\fl@trace{not here: sent to addtobot}% |
| 125 |
\@addtobot |
| 126 |
\fi |
| 127 |
\fi |
| 128 |
\fi |
| 129 |
\else |
| 130 |
\fl@trace{Fail: colnum = \the \@colnum: |
| 131 |
fpstype \the \@fpstype=ORD?}% |
| 132 |
\ifnum \@fpstype<\sixt@@n |
| 133 |
\fl@trace{ERROR: BANG float not successful (addtocurcol)}% |
| 134 |
\fi |
| 135 |
\fi |
| 136 |
\else |
| 137 |
\fl@trace{Fail---no room: fl box ht: \the \ht \@currbox |
| 138 |
(addtocurcol)}% |
| 139 |
\fi |
| 140 |
\fi |
| 141 |
\fi |
| 142 |
\if@insert |
| 143 |
\else |
| 144 |
\@resethfps |
| 145 |
\fl@trace{put on deferlist (addtocurcol)}% |
| 146 |
\@cons\@deferlist\@currbox |
| 147 |
\fl@trace{deferlist: \@deferlist: (addtocurcol-after)}% |
| 148 |
\fi |
| 149 |
}% |
| 150 |
\EndIncludeInRelease |
| 151 |
\IncludeInRelease{2015/01/01}% |
| 152 |
{\@addtocurcol}{float order in 2-column}% |
| 153 |
\def \@addtocurcol {% |
| 154 |
\fl@trace{***Start addtocurcol}% |
| 155 |
\@insertfalse |
| 156 |
\@setfloattypecounts |
| 157 |
\ifnum \@fpstype=8 |
| 158 |
\fl@trace{fpstype !p only (addtocurcol): \the \@fpstype = 8?}% |
| 159 |
\else |
| 160 |
\ifnum \@fpstype=24 |
| 161 |
\fl@trace{fpstype p only (addtocurcol): \the \@fpstype = 24?}% |
| 162 |
\else |
| 163 |
\@flsettextmin |
| 164 |
\fl@trace{textfloatsheight (before) = \the \@textfloatsheight}% |
| 165 |
\advance \@textmin \@textfloatsheight |
| 166 |
\@reqcolroom \@pageht |
| 167 |
\fl@trace{textmin + textfloatsheight: \the \@textmin}% |
| 168 |
\fl@trace{page-so-far: \the \@reqcolroom}% |
| 169 |
\ifdim \@textmin>\@reqcolroom |
| 170 |
\@reqcolroom \@textmin |
| 171 |
\fl@trace{ORD? textmin being used}% |
| 172 |
\fi |
| 173 |
\advance \@reqcolroom \ht\@currbox |
| 174 |
\fl@trace{float size = \the \ht \@currbox (addtocurcol)}% |
| 175 |
\fl@trace{colroom = \the \@colroom (addtocurcol)}% |
| 176 |
\fl@trace{reqcolroom = \the \@reqcolroom (addtocurcol)}% |
| 177 |
\ifdim \@colroom>\@reqcolroom |
| 178 |
\@flsetnum \@colnum |
| 179 |
\ifnum \@colnum>\z@ |
| 180 |
\@bitor\@currtype\@deferlist |
| 181 |
\@testwrongwidth\@currbox |
| 182 |
\fl@trace{deferlist: \@deferlist: (addtocurcol-before)}% |
| 183 |
\if@test |
| 184 |
\fl@trace{type already on list: defer (addtocurcol)}% |
| 185 |
\else |
| 186 |
\@bitor\@currtype\@botlist |
| 187 |
\fl@trace{botlist: \@botlist: (addtocurcol-before)}% |
| 188 |
\if@test |
| 189 |
\fl@trace{type already on list: bot---sent to addtobot}% |
| 190 |
\@addtobot |
| 191 |
\else |
| 192 |
\fl@trace{fpstype \ifodd \@tempcnta OK \else not \fi |
| 193 |
here: \the \@fpstype}% |
| 194 |
\ifodd \count\@currbox |
| 195 |
\advance \@reqcolroom \intextsep |
| 196 |
\ifdim \@colroom>\@reqcolroom |
| 197 |
\global \advance \@colnum \m@ne |
| 198 |
\global \advance \@textfloatsheight \ht\@currbox |
| 199 |
\global \advance \@textfloatsheight 2\intextsep |
| 200 |
\@cons \@midlist \@currbox |
| 201 |
\fl@trace{***Success: here}% |
| 202 |
\fl@trace{textfloatsheight (after-here) = |
| 203 |
\the \@textfloatsheight}% |
| 204 |
\fl@trace{colnum (after-here) = \the \@colnum}% |
| 205 |
\if@nobreak |
| 206 |
\nobreak |
| 207 |
\@nobreakfalse |
| 208 |
\everypar{}% |
| 209 |
\else |
| 210 |
\addpenalty \interlinepenalty |
| 211 |
\fi |
| 212 |
\vskip \intextsep |
| 213 |
\box\@currbox |
| 214 |
\penalty\interlinepenalty |
| 215 |
\vskip\intextsep |
| 216 |
\ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi |
| 217 |
\outputpenalty \z@ |
| 218 |
\@inserttrue |
| 219 |
\else |
| 220 |
\fl@trace{Fail---no room at 2nd test of colroom |
| 221 |
(addtocorcol \string\intextsep)}% |
| 222 |
\fi |
| 223 |
\fi |
| 224 |
\if@insert |
| 225 |
\else |
| 226 |
\fl@trace{not here: sent to addtobot}% |
| 227 |
\@addtobot |
| 228 |
\fi |
| 229 |
\fi |
| 230 |
\fi |
| 231 |
\else |
| 232 |
\fl@trace{Fail: colnum = \the \@colnum: |
| 233 |
fpstype \the \@fpstype=ORD?}% |
| 234 |
\ifnum \@fpstype<\sixt@@n |
| 235 |
\fl@trace{ERROR: BANG float not successful (addtocurcol)}% |
| 236 |
\fi |
| 237 |
\fi |
| 238 |
\else |
| 239 |
\fl@trace{Fail---no room: fl box ht: \the \ht \@currbox |
| 240 |
(addtocurcol)}% |
| 241 |
\fi |
| 242 |
\fi |
| 243 |
\fi |
| 244 |
\if@insert |
| 245 |
\else |
| 246 |
\@resethfps |
| 247 |
\fl@trace{put on deferlist (addtocurcol)}% |
| 248 |
\@cons\@deferlist\@currbox |
| 249 |
\fl@trace{deferlist: \@deferlist: (addtocurcol-after)}% |
| 250 |
\fi |
| 251 |
}% |
| 252 |
\EndIncludeInRelease |
| 253 |
\IncludeInRelease{0000/00/00}% |
| 254 |
{\@addtocurcol}{float order in 2-column}% |
| 255 |
\def \@addtocurcol {% |
| 256 |
\fl@trace{***Start addtocurcol}% |
| 257 |
\@insertfalse |
| 258 |
\@setfloattypecounts |
| 259 |
\ifnum \@fpstype=8 |
| 260 |
\fl@trace{fpstype !p only (addtocurcol): |
| 261 |
\the \@fpstype = 8?}% |
| 262 |
\else |
| 263 |
\ifnum \@fpstype=24 |
| 264 |
\fl@trace{fpstype p only (addtocurcol): |
| 265 |
\the \@fpstype = 24?}% |
| 266 |
\else |
| 267 |
\@flsettextmin |
| 268 |
\fl@trace{textfloatsheight (before) = |
| 269 |
\the \@textfloatsheight}% |
| 270 |
\advance \@textmin \@textfloatsheight |
| 271 |
\@reqcolroom \@pageht |
| 272 |
\fl@trace{textmin + textfloatsheight: |
| 273 |
\the \@textmin}% |
| 274 |
\fl@trace{page-so-far: \the \@reqcolroom}% |
| 275 |
|
| 276 |
\ifdim \@textmin>\@reqcolroom |
| 277 |
\@reqcolroom \@textmin |
| 278 |
\fl@trace{ORD? textmin being used}% |
| 279 |
\fi |
| 280 |
\advance \@reqcolroom \ht\@currbox |
| 281 |
\fl@trace{float size = |
| 282 |
\the \ht \@currbox (addtocurcol)}% |
| 283 |
\fl@trace{colroom = |
| 284 |
\the \@colroom (addtocurcol)}% |
| 285 |
\fl@trace{reqcolroom = |
| 286 |
\the \@reqcolroom (addtocurcol)}% |
| 287 |
\ifdim \@colroom>\@reqcolroom |
| 288 |
\@flsetnum \@colnum |
| 289 |
\ifnum \@colnum>\z@ |
| 290 |
\@bitor\@currtype\@deferlist |
| 291 |
\fl@trace{deferlist: |
| 292 |
\@deferlist: (addtocurcol-before)}% |
| 293 |
\if@test |
| 294 |
\fl@trace{type already on list: |
| 295 |
defer (addtocurcol)}% |
| 296 |
\else |
| 297 |
\@bitor\@currtype\@botlist |
| 298 |
\fl@trace{botlist: \@botlist: |
| 299 |
(addtocurcol-before)}% |
| 300 |
\if@test |
| 301 |
\fl@trace{type already on list: |
| 302 |
bot---sent to addtobot}% |
| 303 |
\@addtobot |
| 304 |
\else |
| 305 |
\fl@trace{fpstype |
| 306 |
\ifodd \@tempcnta OK \else not \fi |
| 307 |
here: \the \@fpstype}% |
| 308 |
\ifodd \count\@currbox |
| 309 |
\advance \@reqcolroom \intextsep |
| 310 |
\ifdim \@colroom>\@reqcolroom |
| 311 |
\global \advance \@colnum \m@ne |
| 312 |
\global \advance |
| 313 |
\@textfloatsheight\ht\@currbox |
| 314 |
\global \advance |
| 315 |
\@textfloatsheight 2\intextsep |
| 316 |
\@cons \@midlist \@currbox |
| 317 |
\fl@trace{***Success: here}% |
| 318 |
\fl@trace{textfloatsheight |
| 319 |
(after-here) = |
| 320 |
\the \@textfloatsheight}% |
| 321 |
\fl@trace{colnum (after-here) = |
| 322 |
\the \@colnum}% |
| 323 |
\if@nobreak |
| 324 |
\nobreak |
| 325 |
\@nobreakfalse |
| 326 |
\everypar{}% |
| 327 |
\else |
| 328 |
\addpenalty\interlinepenalty |
| 329 |
\fi |
| 330 |
\vskip \intextsep |
| 331 |
\box\@currbox |
| 332 |
\penalty\interlinepenalty |
| 333 |
\vskip\intextsep |
| 334 |
\ifnum\outputpenalty |
| 335 |
<-\@Mii \vskip |
| 336 |
-\parskip\fi |
| 337 |
\outputpenalty \z@ |
| 338 |
\@inserttrue |
| 339 |
\else |
| 340 |
\fl@trace{Fail---no room at 2nd test of colroom |
| 341 |
(addtocorcol \string\intextsep)}% |
| 342 |
\fi |
| 343 |
\fi |
| 344 |
\if@insert |
| 345 |
\else |
| 346 |
\fl@trace{not here: sent to addtobot}% |
| 347 |
\@addtobot |
| 348 |
\fi |
| 349 |
\fi |
| 350 |
\fi |
| 351 |
\else |
| 352 |
\fl@trace{Fail: colnum = \the \@colnum: |
| 353 |
fpstype \the \@fpstype=ORD?}% |
| 354 |
\ifnum \@fpstype<\sixt@@n |
| 355 |
\fl@trace{ERROR: BANG float not successful |
| 356 |
(addtocurcol)}% |
| 357 |
\fi |
| 358 |
\fi |
| 359 |
\else |
| 360 |
\fl@trace{Fail---no room: fl box ht: |
| 361 |
\the \ht \@currbox (addtocurcol)}% |
| 362 |
\fi |
| 363 |
\fi |
| 364 |
\fi |
| 365 |
\if@insert |
| 366 |
\else |
| 367 |
\@resethfps |
| 368 |
\fl@trace{put on deferlist (addtocurcol)}% |
| 369 |
\@cons\@deferlist\@currbox |
| 370 |
\fl@trace{deferlist: \@deferlist: |
| 371 |
(addtocurcol-after)}% |
| 372 |
\fi |
| 373 |
}% |
| 374 |
\EndIncludeInRelease |
| 375 |
\providecommand\fl@trace[1]{} |
| 376 |
\endinput |
| 377 |
%% |
| 378 |
%% End of file `flafter.sty'. |