Debian Codegraph @

texmf-dist/tex/latex/base/fltrace.sty

raw
1 %%
2 %% This is file `fltrace.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ltoutput.dtx (with options: `fltrace,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{fltrace}
46 [2025/08/22 v1.4z
47 Tracing LaTeX floats algorithm (FMi)]
48 \def\onecolumn{%
49 \clearpage
50 \global\columnwidth\textwidth
51 \global\hsize\columnwidth
52 \global\linewidth\columnwidth
53 \global\@twocolumnfalse
54 \col@number \@ne
55 \@floatplacement}
56 \def \newpage {%
57 \if@noskipsec
58 \ifx \@nodocument\relax
59 \leavevmode
60 \global \@noskipsecfalse
61 \fi
62 \fi
63 \if@inlabel
64 \leavevmode
65 \global \@inlabelfalse
66 \fi
67 \if@nobreak \@nobreakfalse \everypar{}\fi
68 \par
69 \vfil
70 \penalty -\@M}
71 \def \@emptycol {\vbox{}\penalty -\@M}
72 \def \twocolumn {%
73 \clearpage
74 \global\columnwidth\textwidth
75 \global\advance\columnwidth-\columnsep
76 \global\divide\columnwidth\tw@
77 \global\hsize\columnwidth
78 \global\linewidth\columnwidth
79 \global\@twocolumntrue
80 \global\@firstcolumntrue
81 \col@number \tw@
82 \@ifnextchar [\@topnewpage\@floatplacement
83 }
84 \long\def \@topnewpage [#1]{%
85 \@nodocument
86 \@next\@currbox\@freelist{}{}%
87 \global \setbox\@currbox
88 \color@vbox
89 \normalcolor
90 \vbox {%
91 \hsize\textwidth
92 \@parboxrestore
93 \col@number \@ne
94 #1%
95 \vskip -\dbltextfloatsep
96 }%
97 \color@endbox
98 \ifdim \ht\@currbox>\textheight
99 \ht\@currbox \textheight
100 \fi
101 \global \count\@currbox \tw@
102 \@tempdima -\ht\@currbox
103 \advance \@tempdima -\dbltextfloatsep
104 \global \advance \@colht \@tempdima
105 \ifx \@dbltoplist \@empty
106 \else
107 \@latex@error{Float(s) lost}\@ehb
108 \let \@dbltoplist \@empty
109 \fi
110 \@cons \@dbltoplist \@currbox
111 \global \@dbltopnum \m@ne
112 \fl@trace{dbltopnum set to -1 (= \the \@dbltopnum) (topnewpage)}%
113 \ifdim \@colht<2.5\baselineskip
114 \@latex@warning@no@line {Optional argument of \noexpand\twocolumn
115 too tall on page \thepage}%
116 \@emptycol
117 \if@firstcolumn
118 \else
119 \@emptycol
120 \fi
121 \else
122 \global \vsize \@colht
123 \global \@colroom \@colht
124 \@floatplacement
125 \fi
126 }
127 \output {%
128 \let \par \@@par
129 \ifnum \outputpenalty<-\@M
130 \@specialoutput
131 \else
132 \@makecol
133 \@opcol
134 \@startcolumn
135 \@whilesw \if@fcolmade \fi
136 {%
137 \fl@trace{PAGE: float \if@twocolumn column \else page \fi
138 completed}%
139 \@opcol\@startcolumn}%
140 \fi
141 \ifnum \outputpenalty>-\@Miv
142 \ifdim \@colroom<1.5\baselineskip
143 \ifdim \@colroom<\textheight
144 \@latex@warning@no@line {Text page \thepage\space
145 contains only floats}%
146 \@emptycol
147 \else
148 \global \vsize \@colroom
149 \fi
150 \else
151 \global \vsize \@colroom
152 \fi
153 \else
154 \global \vsize \maxdimen
155 \fi
156 }
157 \gdef\@specialoutput{%
158 \ifnum \outputpenalty>-\@Mii
159 \@doclearpage
160 \else
161 \ifnum \outputpenalty<-\@Miii
162 \ifnum \outputpenalty<-\@MM \deadcycles \z@ \fi
163 \global \setbox\@holdpg \vbox {\unvbox\@cclv}%
164 \else
165 \global \setbox\@holdpg \vbox{%
166 \unvbox\@holdpg
167 \unvbox\@cclv
168 \setbox\@tempboxa \lastbox
169 \unskip
170 }%
171 \@pagedp \dp\@holdpg
172 \@pageht \ht\@holdpg
173 \unvbox \@holdpg
174 \@next\@currbox\@currlist{%
175 \ifnum \count\@currbox>\z@
176 \advance \@pageht \@pagedp
177 \ifvoid\footins \else
178 \advance \@pageht \ht\footins
179 \advance \@pageht \skip\footins
180 \advance \@pageht \dp\footins
181 \fi
182 \ifvbox \@kludgeins
183 \ifdim \wd\@kludgeins=\z@
184 \advance \@pageht \ht\@kludgeins
185 \fl@trace {Extra size added: \the \ht\@kludgeins}%
186 \fi
187 \fi
188 \@reinserts
189 \@addtocurcol
190 \else
191 \@reinserts
192 \@addmarginpar
193 \fi
194 }\@latexbug
195 \ifnum \outputpenalty<\z@
196 \if@nobreak
197 \nobreak
198 \else
199 \addpenalty \interlinepenalty
200 \fi
201 \fi
202 \fi
203 \fi
204 }
205 \def\@testwrongwidth #1{%
206 \ifdim\dp#1=\f@depth
207 \fl@trace{\string#1
208 \ifdim\f@depth=\z@ single \else double \fi
209 column float -- ok}%
210 \else
211 \global\@testtrue
212 \fl@trace{\string#1
213 \ifdim\f@depth=\z@ double \else single \fi
214 column float -- wrong}%
215 \fi}%
216 \let\f@depth\z@
217 \def \@opcol {%
218 \if@twocolumn
219 \@expl@@@mark@update@dblcol@structures@@
220 \@outputdblcol
221 \else
222 \@expl@@@mark@update@singlecol@structures@@
223 \@outputpage
224 \fl@trace{PAGE: one column (float? see above) page completed}%
225 \fi
226 \global \@mparbottom \z@ \global \@textfloatsheight \z@
227 \@floatplacement
228 }
229 \def \@make@specialcolbox {%
230 \fl@trace{Kludgeins ht \the\ht\@kludgeins\space
231 dp \the\dp\@kludgeins\space
232 wd \the\wd\@kludgeins}%
233 \@outputbox@append {\vskip-\@outputbox@depth}%
234 \@tempdima \@colht
235 \ifdim \wd\@kludgeins>\z@
236 \advance \@tempdima -\ht\@outputbox
237 \advance \@tempdima \pageshrink
238 \fl@trace {Natural ht of col: \the \ht\@outputbox}%
239 \fl@trace {\string \@colht: \the \@colht}%
240 \fl@trace {Pageshrink added: \the \pageshrink}%
241 \fl@trace {Hence, space added: \the \@tempdima}%
242 \setbox\@outputbox \vbox to \@colht {%
243 \unvbox\@outputbox
244 \vskip \@tempdima
245 \@textbottom
246 }%
247 \else
248 \advance \@tempdima -\ht\@kludgeins
249 \fl@trace {Natural ht of col: \the \ht\@outputbox}%
250 \fl@trace {\string \@colht: \the \@colht}%
251 \fl@trace {Extra size added: -\the \ht \@kludgeins}%
252 \fl@trace {Hence, height of inner box: \the \@tempdima}%
253 \fl@trace {Max? pageshrink available: \the \pageshrink}%
254 \setbox \@outputbox \vbox to \@colht {%
255 \vbox to \@tempdima {%
256 \unvbox\@outputbox
257 \@textbottom}%
258 \vss}%
259 \fi
260 {\setbox \@tempboxa \box \@kludgeins}%
261 \fl@trace {kludgeins box made void}%
262 }
263 \def \@startcolumn {%
264 \global \@colroom \@colht
265 \@tryfcolumn \@deferlist
266 \if@fcolmade
267 \fl@trace{PAGE: float \if@twocolumn column \else page \fi
268 completed}%
269 \else
270 \begingroup
271 \let \reserved@b \@deferlist
272 \global \let \@deferlist \@empty
273 \let \@elt \@scolelt
274 \reserved@b
275 \endgroup
276 \fi
277 }
278 \IncludeInRelease{2015/01/01}%
279 {\@startdblcolumn}{float order in 2-column}%
280 \def \@startdblcolumn {%
281 \@tryfcolumn \@deferlist
282 \if@fcolmade
283 \fl@trace{PAGE: double float page completed}%
284 \else
285 \begingroup
286 \let \reserved@b \@deferlist
287 \global \let \@deferlist \@empty
288 \let \@elt \@sdblcolelt
289 \reserved@b
290 \endgroup
291 \fi
292 }%
293 \EndIncludeInRelease
294 \IncludeInRelease{0000/00/00}%
295 {\@startdblcolumn}{float order in 2-column}%
296 \def \@startdblcolumn {%
297 % \global \@colht \textheight
298 \@tryfcolumn \@dbldeferlist
299 \if@fcolmade
300 \fl@trace{PAGE: double float page completed}%
301 \else
302 \begingroup
303 \let \reserved@b \@dbldeferlist
304 \global \let \@dbldeferlist \@empty
305 \let \@elt \@sdblcolelt
306 \reserved@b
307 \endgroup
308 \fi
309 }%
310 \EndIncludeInRelease
311 \def \@tryfcolumn #1{%
312 \global \@fcolmadefalse
313 \ifx #1\@empty
314 \else
315 \fl@trace{PAGE: try float \if@twocolumn column/page\else page\fi
316 ---\string #1}%
317 \fl@trace{----- \string #1: #1}%
318 \xdef\@trylist{#1}%
319 \global \let \@failedlist \@empty
320 \begingroup
321 \let \@elt \@xtryfc \@trylist
322 \endgroup
323 \if@fcolmade
324 \@vtryfc #1%
325 \fi
326 \fi
327 }
328 \def \@addtobot {%
329 \fl@trace{***Start addtobot}%
330 \@getfpsbit 4\relax
331 \fl@trace{fpstype \ifodd \@tempcnta OK \else not \fi bot:
332 \the \@fpstype}%
333 \ifodd \@tempcnta
334 \@flsetnum \@botnum
335 \ifnum \@botnum>\z@
336 \@tempswafalse
337 \@flcheckspace \@botroom \@botlist
338 \if@tempswa
339 \@flupdates \@botnum \@botroom \@botlist
340 \fl@trace{colroom (after-bot) = \the \@colroom}%
341 \fl@trace{colnum (after-bot) = \the \@colnum}%
342 \fl@trace{botnum (after-bot) = \the \@botnum}%
343 \fl@trace{***Success: bot}%
344 \@inserttrue
345 \fi
346 \else
347 \fl@trace{Fail: botnum = \the \@botnum:
348 fpstype \the \@fpstype=ORD?}%
349 \ifnum \@fpstype<\sixt@@n
350 \fl@trace{ERROR: !b float not successful (addtobot)}%
351 \fi
352 \fi
353 \fi
354 }
355 \def \@addtotoporbot {%
356 \fl@trace{***Start addtotoporbot}%
357 \@getfpsbit \tw@
358 \fl@trace{fpstype \ifodd \@tempcnta OK \else not \fi top:
359 \the \@fpstype}%
360 \ifodd \@tempcnta
361 \@flsetnum \@topnum
362 \ifnum \@topnum>\z@
363 \@tempswafalse
364 \@flcheckspace \@toproom \@toplist
365 \if@tempswa
366 \@bitor\@currtype{\@midlist\@botlist}%
367 \fl@trace{(mid+bot)list: \@midlist, \@botlist:
368 (addtotoporbot-before)}%
369 \if@test
370 \fl@trace{type already on list: mid or bot---sent to addtobot}%
371 \else
372 \@flupdates \@topnum \@toproom \@toplist
373 \fl@trace{colroom (after-top) = \the \@colroom}%
374 \fl@trace{colnum (after-top) = \the \@colnum}%
375 \fl@trace{topnum (after-top) = \the \@topnum}%
376 \fl@trace{***Success: top}%
377 \@inserttrue
378 \fi
379 \fi
380 \else
381 \fl@trace{Fail: topnum = \the \@topnum: fpstype
382 \the \@fpstype=ORD?}%
383 \ifnum \@fpstype<\sixt@@n
384 \fl@trace{ERROR: !t float not successful (addtotoporbot)}%
385 \fi
386 \fi
387 \fi
388 \if@insert
389 \else
390 \fl@trace{sent to addtobot (addtotoporbot)}%
391 \@addtobot
392 \fi
393 }
394 \IncludeInRelease{2025/06/01}%
395 {\@addtocurcol}{float order in 2-column}%
396 \def \@addtocurcol {%
397 \fl@trace{***Start addtocurcol}%
398 \@insertfalse
399 \@setfloattypecounts
400 \ifnum \@fpstype=8
401 \fl@trace{fpstype !p only (addtocurcol): \the \@fpstype = 8?}%
402 \else
403 \ifnum \@fpstype=24
404 \fl@trace{fpstype p only (addtocurcol): \the \@fpstype = 24?}%
405 \else
406 \@flsettextmin
407 \fl@trace{textfloatsheight (before) = \the \@textfloatsheight}%
408 \advance \@textmin \@textfloatsheight
409 \@reqcolroom \@pageht
410 \fl@trace{textmin + textfloatsheight: \the \@textmin}%
411 \fl@trace{page-so-far: \the \@reqcolroom}%
412 \ifdim \@textmin>\@reqcolroom
413 \@reqcolroom \@textmin
414 \fl@trace{ORD? textmin being used}%
415 \fi
416 \advance \@reqcolroom \ht\@currbox
417 \saved@reqcolroom \@reqcolroom
418 \fl@trace{float size = \the \ht \@currbox (addtocurcol)}%
419 \fl@trace{colroom = \the \@colroom (addtocurcol)}%
420 \fl@trace{reqcolroom = \the \@reqcolroom (addtocurcol)}%
421 \ifdim \@colroom>\@reqcolroom
422 \@flsetnum \@colnum
423 \ifnum \@colnum>\z@
424 \@bitor\@currtype\@deferlist
425 \@testwrongwidth\@currbox
426 \fl@trace{deferlist: \@deferlist: (addtocurcol-before)}%
427 \if@test
428 \fl@trace{type already on list: defer (addtocurcol)}%
429 \else
430 \@bitor\@currtype\@botlist
431 \fl@trace{botlist: \@botlist: (addtocurcol-before)}%
432 \if@test
433 \fl@trace{type already on list: bot---sent to addtobot}%
434 \@addtobot
435 \else
436 \fl@trace{fpstype \ifodd \@tempcnta OK \else not \fi
437 here: \the \@fpstype}%
438 \ifodd \count\@currbox
439 \advance \@reqcolroom \intextsep
440 \ifdim \@colroom>\@reqcolroom
441 \global \advance \@colnum \m@ne
442 \global \advance \@textfloatsheight \ht\@currbox
443 \global \advance \@textfloatsheight 2\intextsep
444 \@cons \@midlist \@currbox
445 \fl@trace{***Success: here}%
446 \fl@trace{textfloatsheight (after-here) =
447 \the \@textfloatsheight}%
448 \fl@trace{colnum (after-here) = \the \@colnum}%
449 \if@nobreak
450 \nobreak
451 \@nobreakfalse
452 \everypar{}%
453 \else
454 \addpenalty \interlinepenalty
455 \fi
456 \vskip \intextsep
457 \box\@currbox
458 \penalty\interlinepenalty
459 \vskip\intextsep
460 \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
461 \outputpenalty \z@
462 \@inserttrue
463 \else
464 \fl@trace{Fail---no room at 2nd test of colroom
465 (addtocorcol \string\intextsep)}%
466 \fi
467 \fi
468 \if@insert
469 \else
470 \fl@trace{not here: sent to addtotoporbot}%
471 \@addtotoporbot
472 \fi
473 \fi
474 \fi
475 \else
476 \fl@trace{Fail: colnum = \the \@colnum:
477 fpstype \the \@fpstype=ORD?}%
478 \ifnum \@fpstype<\sixt@@n
479 \fl@trace{ERROR: BANG float not successful (addtocurcol)}%
480 \fi
481 \fi
482 \else
483 \fl@trace{Fail---no room: fl box ht: \the \ht \@currbox
484 (addtocurcol)}%
485 \fi
486 \fi
487 \fi
488 \if@insert
489 \else
490 \@resethfps
491 \fl@trace{put on deferlist (addtocurcol)}%
492 \@cons\@deferlist\@currbox
493 \fl@trace{deferlist: \@deferlist: (addtocurcol-after)}%
494 \fi
495 }%
496 \EndIncludeInRelease
497 \IncludeInRelease{2015/01/01}%
498 {\@addtocurcol}{float order in 2-column}%
499 \def \@addtocurcol {%
500 \fl@trace{***Start addtocurcol}%
501 \@insertfalse
502 \@setfloattypecounts
503 \ifnum \@fpstype=8
504 \fl@trace{fpstype !p only (addtocurcol): \the \@fpstype = 8?}%
505 \else
506 \ifnum \@fpstype=24
507 \fl@trace{fpstype p only (addtocurcol): \the \@fpstype = 24?}%
508 \else
509 \@flsettextmin
510 \fl@trace{textfloatsheight (before) = \the \@textfloatsheight}%
511 \advance \@textmin \@textfloatsheight
512 \@reqcolroom \@pageht
513 \fl@trace{textmin + textfloatsheight: \the \@textmin}%
514 \fl@trace{page-so-far: \the \@reqcolroom}%
515 \ifdim \@textmin>\@reqcolroom
516 \@reqcolroom \@textmin
517 \fl@trace{ORD? textmin being used}%
518 \fi
519 \advance \@reqcolroom \ht\@currbox
520 \fl@trace{float size = \the \ht \@currbox (addtocurcol)}%
521 \fl@trace{colroom = \the \@colroom (addtocurcol)}%
522 \fl@trace{reqcolroom = \the \@reqcolroom (addtocurcol)}%
523 \ifdim \@colroom>\@reqcolroom
524 \@flsetnum \@colnum
525 \ifnum \@colnum>\z@
526 \@bitor\@currtype\@deferlist
527 \@testwrongwidth\@currbox
528 \fl@trace{deferlist: \@deferlist: (addtocurcol-before)}%
529 \if@test
530 \fl@trace{type already on list: defer (addtocurcol)}%
531 \else
532 \@bitor\@currtype\@botlist
533 \fl@trace{botlist: \@botlist: (addtocurcol-before)}%
534 \if@test
535 \fl@trace{type already on list: bot---sent to addtobot}%
536 \@addtobot
537 \else
538 \fl@trace{fpstype \ifodd \@tempcnta OK \else not \fi
539 here: \the \@fpstype}%
540 \ifodd \count\@currbox
541 \advance \@reqcolroom \intextsep
542 \ifdim \@colroom>\@reqcolroom
543 \global \advance \@colnum \m@ne
544 \global \advance \@textfloatsheight \ht\@currbox
545 \global \advance \@textfloatsheight 2\intextsep
546 \@cons \@midlist \@currbox
547 \fl@trace{***Success: here}%
548 \fl@trace{textfloatsheight (after-here) =
549 \the \@textfloatsheight}%
550 \fl@trace{colnum (after-here) = \the \@colnum}%
551 \if@nobreak
552 \nobreak
553 \@nobreakfalse
554 \everypar{}%
555 \else
556 \addpenalty \interlinepenalty
557 \fi
558 \vskip \intextsep
559 \box\@currbox
560 \penalty\interlinepenalty
561 \vskip\intextsep
562 \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
563 \outputpenalty \z@
564 \@inserttrue
565 \else
566 \fl@trace{Fail---no room at 2nd test of colroom
567 (addtocorcol \string\intextsep)}%
568 \fi
569 \fi
570 \if@insert
571 \else
572 \fl@trace{not here: sent to addtotoporbot}%
573 \@addtotoporbot
574 \fi
575 \fi
576 \fi
577 \else
578 \fl@trace{Fail: colnum = \the \@colnum:
579 fpstype \the \@fpstype=ORD?}%
580 \ifnum \@fpstype<\sixt@@n
581 \fl@trace{ERROR: BANG float not successful (addtocurcol)}%
582 \fi
583 \fi
584 \else
585 \fl@trace{Fail---no room: fl box ht: \the \ht \@currbox
586 (addtocurcol)}%
587 \fi
588 \fi
589 \fi
590 \if@insert
591 \else
592 \@resethfps
593 \fl@trace{put on deferlist (addtocurcol)}%
594 \@cons\@deferlist\@currbox
595 \fl@trace{deferlist: \@deferlist: (addtocurcol-after)}%
596 \fi
597 }%
598 \EndIncludeInRelease
599 \IncludeInRelease{0000/00/00}%
600 {\@addtocurcol}{float order in 2-column}%
601 \def \@addtocurcol {%
602 \fl@trace{***Start addtocurcol}%
603 \@insertfalse
604 \@setfloattypecounts
605 \ifnum \@fpstype=8
606 \fl@trace{fpstype !p only (addtocurcol):
607 \the \@fpstype = 8?}%
608 \else
609 \ifnum \@fpstype=24
610 \fl@trace{fpstype p only (addtocurcol):
611 \the \@fpstype = 24?}%
612 \else
613 \@flsettextmin
614 \fl@trace{textfloatsheight (before) =
615 \the \@textfloatsheight}%
616 \advance \@textmin \@textfloatsheight
617 \@reqcolroom \@pageht
618 \fl@trace{textmin + textfloatsheight:
619 \the \@textmin}%
620 \fl@trace{page-so-far: \the \@reqcolroom}%
621
622 \ifdim \@textmin>\@reqcolroom
623 \@reqcolroom \@textmin
624 \fl@trace{ORD? textmin being used}%
625 \fi
626 \advance \@reqcolroom \ht\@currbox
627 \fl@trace{float size =
628 \the \ht \@currbox (addtocurcol)}%
629 \fl@trace{colroom =
630 \the \@colroom (addtocurcol)}%
631 \fl@trace{reqcolroom =
632 \the \@reqcolroom (addtocurcol)}%
633 \ifdim \@colroom>\@reqcolroom
634 \@flsetnum \@colnum
635 \ifnum \@colnum>\z@
636 \@bitor\@currtype\@deferlist
637 \fl@trace{deferlist:
638 \@deferlist: (addtocurcol-before)}%
639 \if@test
640 \fl@trace{type already on list:
641 defer (addtocurcol)}%
642 \else
643 \@bitor\@currtype\@botlist
644 \fl@trace{botlist: \@botlist:
645 (addtocurcol-before)}%
646 \if@test
647 \fl@trace{type already on list:
648 bot---sent to addtobot}%
649 \@addtobot
650 \else
651 \fl@trace{fpstype
652 \ifodd \@tempcnta OK \else not \fi
653 here: \the \@fpstype}%
654 \ifodd \count\@currbox
655 \advance \@reqcolroom \intextsep
656 \ifdim \@colroom>\@reqcolroom
657 \global \advance \@colnum \m@ne
658 \global \advance
659 \@textfloatsheight\ht\@currbox
660 \global \advance
661 \@textfloatsheight 2\intextsep
662 \@cons \@midlist \@currbox
663 \fl@trace{***Success: here}%
664 \fl@trace{textfloatsheight
665 (after-here) =
666 \the \@textfloatsheight}%
667 \fl@trace{colnum (after-here) =
668 \the \@colnum}%
669 \if@nobreak
670 \nobreak
671 \@nobreakfalse
672 \everypar{}%
673 \else
674 \addpenalty\interlinepenalty
675 \fi
676 \vskip \intextsep
677 \box\@currbox
678 \penalty\interlinepenalty
679 \vskip\intextsep
680 \ifnum\outputpenalty
681 <-\@Mii \vskip
682 -\parskip\fi
683 \outputpenalty \z@
684 \@inserttrue
685 \else
686 \fl@trace{Fail---no room at 2nd test of colroom
687 (addtocorcol \string\intextsep)}%
688 \fi
689 \fi
690 \if@insert
691 \else
692 \fl@trace{not here: sent to addtotoporbot}%
693 \@addtotoporbot
694 \fi
695 \fi
696 \fi
697 \else
698 \fl@trace{Fail: colnum = \the \@colnum:
699 fpstype \the \@fpstype=ORD?}%
700 \ifnum \@fpstype<\sixt@@n
701 \fl@trace{ERROR: BANG float not successful
702 (addtocurcol)}%
703 \fi
704 \fi
705 \else
706 \fl@trace{Fail---no room: fl box ht:
707 \the \ht \@currbox (addtocurcol)}%
708 \fi
709 \fi
710 \fi
711 \if@insert
712 \else
713 \@resethfps
714 \fl@trace{put on deferlist (addtocurcol)}%
715 \@cons\@deferlist\@currbox
716 \fl@trace{deferlist: \@deferlist:
717 (addtocurcol-after)}%
718 \fi
719 }%
720 \EndIncludeInRelease
721 \IncludeInRelease{2025/06/01}
722 {\@addtonextcol}{float order in 2-column}%
723 \def\@addtonextcol{%
724 \begingroup
725 \fl@trace{***Start addtonextcol}%
726 \@insertfalse
727 \@setfloattypecounts
728 \ifnum \@fpstype=8
729 \fl@trace{fpstype not curcol: \the \@fpstype = 8?}%
730 \else
731 \ifnum \@fpstype=24
732 \fl@trace{fpstype not curcol: \the \@fpstype = 24?}%
733 \else
734 \@flsettextmin
735 \fl@trace{text-so-far: 0pt (top of col)}%
736 \@reqcolroom \ht\@currbox
737 \fl@trace{float size: \the \@reqcolroom (addtonextcol)}%
738 \advance \@reqcolroom \@textmin
739 \saved@reqcolroom \@reqcolroom
740 \fl@trace{colroom = \the \@colroom (addtonextcol)}%
741 \fl@trace{reqcolroom = \the \@reqcolroom (addtonextcol)}%
742 \ifdim \@colroom>\@reqcolroom
743 \@flsetnum \@colnum
744 \ifnum\@colnum>\z@
745 \@bitor\@currtype\@deferlist
746 \fl@trace{deferlist: \@deferlist: (addtonextcol-before)}%
747 \@testwrongwidth\@currbox
748 \if@test
749 \fl@trace{type already on list: defer (addtonextcol)}%
750 \else
751 \fl@trace{sent to addtotoporbot (addtonextcol)}%
752 \@addtotoporbot
753 \fi
754 \fi
755 \else
756 \fl@trace{Fail---no room: fl box ht: \the \ht \@currbox
757 (addtonextcol)}%
758 \fi
759 \fi
760 \fi
761 \if@insert
762 \else
763 \fl@trace{put back on deferlist (addtonextcol)}%
764 \@cons\@deferlist\@currbox
765 \fl@trace{deferlist: \@deferlist: (addtonextcol-after)}%
766 \fi
767 \fl@trace{End of addtonextcol -- locally counts:}%
768 \fl@trace{col: \the\@colnum. top: \the \@topnum. bot: \the \@botnum.}%
769 \endgroup
770 \fl@trace{End of addtonextcol -- globally counts:}%
771 \fl@trace{col: \the\@colnum. top: \the \@topnum. bot: \the \@botnum.}%
772 }%
773 \EndIncludeInRelease
774 \IncludeInRelease{2015/01/01}
775 {\@addtonextcol}{float order in 2-column}%
776 \def\@addtonextcol{%
777 \begingroup
778 \fl@trace{***Start addtonextcol}%
779 \@insertfalse
780 \@setfloattypecounts
781 \ifnum \@fpstype=8
782 \fl@trace{fpstype not curcol: \the \@fpstype = 8?}%
783 \else
784 \ifnum \@fpstype=24
785 \fl@trace{fpstype not curcol: \the \@fpstype = 24?}%
786 \else
787 \@flsettextmin
788 \fl@trace{text-so-far: 0pt (top of col)}%
789 \@reqcolroom \ht\@currbox
790 \fl@trace{float size: \the \@reqcolroom (addtonextcol)}%
791 \advance \@reqcolroom \@textmin
792 \fl@trace{colroom = \the \@colroom (addtonextcol)}%
793 \fl@trace{reqcolroom = \the \@reqcolroom (addtonextcol)}%
794 \ifdim \@colroom>\@reqcolroom
795 \@flsetnum \@colnum
796 \ifnum\@colnum>\z@
797 \@bitor\@currtype\@deferlist
798 \fl@trace{deferlist: \@deferlist: (addtonextcol-before)}%
799 \@testwrongwidth\@currbox
800 \if@test
801 \fl@trace{type already on list: defer (addtonextcol)}%
802 \else
803 \fl@trace{sent to addtotoporbot (addtonextcol)}%
804 \@addtotoporbot
805 \fi
806 \fi
807 \else
808 \fl@trace{Fail---no room: fl box ht: \the \ht \@currbox
809 (addtonextcol)}%
810 \fi
811 \fi
812 \fi
813 \if@insert
814 \else
815 \fl@trace{put back on deferlist (addtonextcol)}%
816 \@cons\@deferlist\@currbox
817 \fl@trace{deferlist: \@deferlist: (addtonextcol-after)}%
818 \fi
819 \fl@trace{End of addtonextcol -- locally counts:}%
820 \fl@trace{col: \the\@colnum. top: \the \@topnum. bot: \the \@botnum.}%
821 \endgroup
822 \fl@trace{End of addtonextcol -- globally counts:}%
823 \fl@trace{col: \the\@colnum. top: \the \@topnum. bot: \the \@botnum.}%
824 }%
825 \EndIncludeInRelease
826 \IncludeInRelease{0000/00/00}%
827 {\@addtonextcol}{float order in 2-column}%
828 \def\@addtonextcol{%
829 \begingroup
830 \fl@trace{***Start addtonextcol}%
831 \@insertfalse
832 \@setfloattypecounts
833 \ifnum \@fpstype=8
834 \fl@trace{fpstype not curcol:
835 \the \@fpstype = 8?}%
836 \else
837 \ifnum \@fpstype=24
838 \fl@trace{fpstype not curcol:
839 \the \@fpstype = 24?}%
840 \else
841 \@flsettextmin
842 \fl@trace{text-so-far: 0pt (top of col)}%
843 \@reqcolroom \ht\@currbox
844 \fl@trace{float size:
845 \the \@reqcolroom (addtonextcol)}%
846
847 \advance \@reqcolroom \@textmin
848 \fl@trace{colroom =
849 \the \@colroom (addtonextcol)}%
850 \fl@trace{reqcolroom =
851 \the \@reqcolroom (addtonextcol)}%
852 \ifdim \@colroom>\@reqcolroom
853 \@flsetnum \@colnum
854 \ifnum\@colnum>\z@
855 \@bitor\@currtype\@deferlist
856 \fl@trace{deferlist: \@deferlist:
857 (addtonextcol-before)}%
858 \if@test
859 \fl@trace{type already on list:
860 defer (addtonextcol)}%
861 \else
862 \fl@trace{sent to addtotoporbot
863 (addtonextcol)}%
864 \@addtotoporbot
865 \fi
866 \fi
867 \else
868 \fl@trace{Fail---no room: fl box ht:
869 \the \ht \@currbox (addtonextcol)}%
870 \fi
871 \fi
872 \fi
873 \if@insert
874 \else
875 \fl@trace{put back on deferlist
876 (addtonextcol)}%
877 \@cons\@deferlist\@currbox
878 \fl@trace{deferlist: \@deferlist:
879 (addtonextcol-after)}%
880 \fi
881 \fl@trace{End of addtonextcol --
882 locally counts:}%
883 \fl@trace{col: \the \@colnum.
884 top: \the \@topnum. bot: \the \@botnum.}%
885 \endgroup
886 \fl@trace{End of addtonextcol --
887 globally counts:}%
888 \fl@trace{col: \the \@colnum.
889 top: \the \@topnum. bot: \the \@botnum.}%
890 }%
891 \EndIncludeInRelease
892 \IncludeInRelease{2015/01/01}%
893 {\@addtodblcol}{float order in 2-column}%
894 \def\@addtodblcol{%
895 \begingroup
896 \fl@trace{***Start addtodblcol}%
897 \@insertfalse
898 \@setfloattypecounts
899 \@getfpsbit \tw@
900 \fl@trace{fpstype \ifodd \@tempcnta OK \else not \fi dbltop:
901 \the \@fpstype}%
902 \ifodd\@tempcnta
903 \@flsetnum \@dbltopnum
904 \ifnum \@dbltopnum>\z@
905 \@tempswafalse
906 \ifdim \@dbltoproom>\ht\@currbox
907 \@tempswatrue
908 \fl@trace{Space OK: \@dbltoproom =
909 \the \@dbltoproom > \the \ht \@currbox
910 (dbltoproom)}%
911 \else
912 \fl@trace{fpstype: \the \@fpstype (addtodblcol)}%
913 \ifnum \@fpstype<\sixt@@n
914 \fl@trace{BANG float ignoring \@dbltoproom}%
915 \fl@trace{\@spaces \@dbltoproom = \the \@dbltoproom.
916 Ht float: \the \ht \@currbox-BANG}%
917 \advance \@dbltoproom \@textmin
918 \fl@trace{Local value of texmin: \the\@textmin}%
919 \fl@trace{\@spaces space on page = \the \@dbltoproom.
920 Ht float: \the \ht \@currbox-BANG}%
921 \ifdim \@dbltoproom>\ht\@currbox
922 \@tempswatrue
923 \fl@trace{Space OK BANG: space on page =
924 \the \@dbltoproom > \the \ht \@currbox}%
925 \else
926 \fl@trace{fpstype: \the \@fpstype}%
927 \fl@trace{Fail---no room dbltoproom-BANG?:}%
928 \fl@trace{\@spaces space on page = \the \@dbltoproom.
929 Ht float: \the \ht \@currbox}%
930 \fi
931 \advance \@dbltoproom -\@textmin
932 \else
933 \fl@trace{fpstype: \the \@fpstype}%
934 \fl@trace{Fail---no room dbltoproom-ORD?:}%
935 \fl@trace{\@spaces \@dbltoproom = \the \@dbltoproom.
936 Ht float: \the \ht \@currbox}%
937 \fi
938 \fi
939 \if@tempswa
940 \@bitor \@currtype \@deferlist
941 \fl@trace{(dbl)deferlist: \@deferlist: (before)}%
942 \@testwrongwidth\@currbox
943 \if@test
944 \fl@trace{type already on list: (dbl)defer}%
945 \else
946 \@tempdima -\ht\@currbox
947 \advance\@tempdima
948 -\ifx \@dbltoplist\@empty \dbltextfloatsep \else
949 \dblfloatsep \fi
950 \global \advance \@dbltoproom \@tempdima
951 \global \advance \@colht \@tempdima
952 \global \advance \@dbltopnum \m@ne
953 \@cons \@dbltoplist \@currbox
954 \fl@trace{dbltopnum (after) = \the \@dbltopnum}%
955 \fl@trace{***Success: dbltop}%
956 \@inserttrue
957 \fi
958 \fi
959 \else
960 \fl@trace{Fail: dbltopnum = \the \@dbltopnum: fpstype
961 \the \@fpstype=ORD?}%
962 \ifnum \@fpstype<\sixt@@n
963 \fl@trace{ERROR: !t float not successful (addtodblcol)}%
964 \fi
965 \fi
966 \fi
967 \if@insert
968 \else
969 \fl@trace{put on deferlist}%
970 \@cons\@deferlist\@currbox
971 \fl@trace{(dbl)deferlist: \@deferlist: (after)}%
972 \fi
973 \fl@trace{End of addtodblcol -- locally count:}%
974 \fl@trace{ dbltop: \the \@dbltopnum.}%
975 \endgroup
976 \fl@trace{End of addtodblcol -- globally count:}%
977 \fl@trace{dbltop: \the \@dbltopnum.}%
978 }%
979 \EndIncludeInRelease
980 \IncludeInRelease{0000/00/00}%
981 {\@addtodblcol}{float order in 2-column}%
982 \def\@addtodblcol{%
983 \begingroup
984 \fl@trace{***Start addtodblcol}%
985 \@insertfalse
986 \@setfloattypecounts
987 \@getfpsbit \tw@
988 \fl@trace{fpstype \ifodd \@tempcnta OK
989 \else not \fi dbltop: \the \@fpstype}%
990 \ifodd\@tempcnta
991 \@flsetnum \@dbltopnum
992 \ifnum \@dbltopnum>\z@
993 \@tempswafalse
994 \ifdim \@dbltoproom>\ht\@currbox
995 \@tempswatrue
996 \fl@trace{Space OK: \@dbltoproom =
997 \the \@dbltoproom > \the \ht \@currbox
998 (dbltoproom)}%
999 \else
1000 \fl@trace{fpstype: \the \@fpstype (addtodblcol)}%
1001 \ifnum \@fpstype<\sixt@@n
1002 \fl@trace{BANG float ignoring \@dbltoproom}%
1003 \fl@trace{\@spaces \@dbltoproom =
1004 \the \@dbltoproom.
1005 Ht float: \the \ht \@currbox-BANG}%
1006 \advance \@dbltoproom \@textmin
1007 \fl@trace{Local value of texmin: \the\@textmin}%
1008 \fl@trace{\@spaces space on page =
1009 \the \@dbltoproom.
1010 Ht float: \the \ht \@currbox-BANG}%
1011 \ifdim \@dbltoproom>\ht\@currbox
1012 \@tempswatrue
1013 \fl@trace{Space OK BANG: space on page =
1014 \the\@dbltoproom > \the\ht\@currbox}%
1015 \else
1016 \fl@trace{fpstype: \the \@fpstype}%
1017 \fl@trace{Fail---no room dbltoproom-BANG?:}%
1018 \fl@trace{\@spaces space on page =
1019 \the \@dbltoproom.
1020 Ht float: \the \ht \@currbox}%
1021 \fi
1022 \advance \@dbltoproom -\@textmin
1023 \else
1024 \fl@trace{fpstype: \the \@fpstype}%
1025 \fl@trace{Fail---no room dbltoproom-ORD?:}%
1026 \fl@trace{\@spaces \@dbltoproom =
1027 \the \@dbltoproom.
1028 Ht float: \the \ht \@currbox}%
1029 \fi
1030 \fi
1031 \if@tempswa
1032 \@bitor \@currtype \@dbldeferlist
1033 \fl@trace{dbldeferlist:
1034 \@dbldeferlist: (before)}%
1035 \if@test
1036 \fl@trace{type already on list: dbldefer}%
1037 \else
1038 \@tempdima -\ht\@currbox
1039 \advance\@tempdima
1040 -\ifx \@dbltoplist\@empty
1041 \dbltextfloatsep
1042 \else \dblfloatsep \fi
1043 \global \advance \@dbltoproom \@tempdima
1044 \global \advance \@colht \@tempdima
1045 \global \advance \@dbltopnum \m@ne
1046 \@cons \@dbltoplist \@currbox
1047 \fl@trace{dbltopnum (after) =
1048 \the \@dbltopnum}%
1049 \fl@trace{***Success: dbltop}%
1050 \@inserttrue
1051 \fi
1052 \fi
1053 \else
1054 \fl@trace{Fail: dbltopnum = \the \@dbltopnum:
1055 fpstype \the \@fpstype=ORD?}%
1056 \ifnum \@fpstype<\sixt@@n
1057 \fl@trace{ERROR: !t float not successful
1058 (addtodblcol)}%
1059 \fi
1060 \fi
1061 \fi
1062 \if@insert
1063 \else
1064 \fl@trace{put on dbldeferlist}%
1065 \@cons\@dbldeferlist\@currbox
1066 \fl@trace{dbldeferlist: \@dbldeferlist: (after)}%
1067 \fi
1068 \fl@trace{End of addtodblcol -- locally count:}%
1069 \fl@trace{ dbltop: \the \@dbltopnum.}%
1070 \endgroup
1071 \fl@trace{End of addtodblcol -- globally count:}%
1072 \fl@trace{dbltop: \the \@dbltopnum.}%
1073 }%
1074 \EndIncludeInRelease
1075 \def \fl@tracemessage #1{{\let\@elt\@empty\typeout{LaTeX2e: #1}}}
1076 \def \tracefloats{\let \fl@trace \fl@tracemessage}
1077 \def \tracefloatsoff {\let \fl@trace \@gobble}
1078 \tracefloatsoff
1079 \def \fl@traceval #1{\fl@trace{\string #1 = \the #1}}
1080 \IncludeInRelease{2015/01/01}{\tracefloatvals}%
1081 {trace float vals}%
1082 \def \tracefloatvals{%
1083 \begingroup
1084 \tracefloats
1085 \@dblfloatplacement
1086 \@floatplacement
1087 \fl@trace{***Float placement parameters:}%
1088 \fl@traceval\@colnum
1089 \fl@traceval\@colroom
1090 \fl@traceval\@topnum
1091 \fl@traceval\@toproom
1092 \fl@traceval\@botnum
1093 \fl@traceval\@botroom
1094 \fl@traceval\@fpmin
1095 \fl@trace{\string\textfraction = \textfraction}%
1096 \fl@traceval\@dbltopnum
1097 \fl@traceval\@dbltoproom
1098 \fl@trace{\string\textfraction = \textfraction}%
1099 \fl@trace{toplist: \@toplist}%
1100 \fl@trace{botlist: \@botlist}%
1101 \fl@trace{midlist: \@midlist}%
1102 \fl@trace{deferlist: \@deferlist}%
1103 \fl@trace{dbltoplist: \@dbltoplist}%
1104 \endgroup
1105 }
1106 \EndIncludeInRelease
1107 \IncludeInRelease{0000/00/00}{\tracefloatvals}%
1108 {trace float vals}%
1109 \def \tracefloatvals{%
1110 \begingroup
1111 \tracefloats
1112 \@dblfloatplacement
1113 \@floatplacement
1114 \fl@trace{***Float placement parameters:}%
1115 \fl@traceval\@colnum
1116 \fl@traceval\@colroom
1117 \fl@traceval\@topnum
1118 \fl@traceval\@toproom
1119 \fl@traceval\@botnum
1120 \fl@traceval\@botroom
1121 \fl@traceval\@fpmin
1122 \fl@trace{\string\textfraction = \textfraction}%
1123 \fl@traceval\@dbltopnum
1124 \fl@traceval\@dbltoproom
1125 \fl@trace{\string\textfraction = \textfraction}%
1126 \fl@trace{toplist: \@toplist}%
1127 \fl@trace{botlist: \@botlist}%
1128 \fl@trace{midlist: \@midlist}%
1129 \fl@trace{deferlist: \@deferlist}%
1130 \fl@trace{dbltoplist: \@dbltoplist}%
1131 \fl@trace{dbldeferlist: \@dbldeferlist}%
1132 \endgroup
1133 }
1134 \EndIncludeInRelease
1135 \@ifpackageloaded{flafter}
1136 {\PackageWarningNoLine
1137 {fltrace}{Load 'fltrace' before 'flafter'\MessageBreak
1138 Attempting to recover by reloading 'flafter'}%
1139 \expandafter\let\csname [email protected]\endcsname\relax
1140 \def\reserved@a#1{%
1141 \expandafter\let\csname\string#1+flafter+IIR\endcsname\relax}%
1142 \reserved@a\@addtocurcol
1143 \reserved@a\@addtonextcol
1144 \RequirePackage{flafter}}{}
1145 \def \@fpsadddefault {%
1146 \fl@trace{fps changed from: \@fps}%
1147 \edef \@fps {\@fps\csname fps@\@captype \endcsname}%
1148 \@latex@warning {%
1149 No positions in optional float specifier.\MessageBreak
1150 Default added (so using `\@fps')}%
1151 }
1152 \def \@setfloattypecounts {%
1153 \@currtype \count\@currbox
1154 \@fpstype \count\@currbox
1155 \divide\@currtype\@xxxii \multiply\@currtype\@xxxii
1156 \advance \@fpstype -\@currtype
1157 \fl@trace{(mod 32) fpstype: \the \@fpstype}%
1158 \fl@trace{(mult of 32) currtype: \the \@currtype}%
1159 \ifnum \@fpstype<\sixt@@n
1160 \ifnum \@fpstype=\z@
1161 \fl@trace{ERROR: no PLACEMENT, fpstype = \the \@fpstype = 0?}%
1162 \fi
1163 \ifnum \@fpstype=\@ne
1164 \fl@trace{WARNING: only h, fpstype = \the \@fpstype = 1?}%
1165 \fi
1166 \fl@trace{BANG float}%
1167 \else
1168 \ifnum \@fpstype=\sixt@@n
1169 \fl@trace{ERROR: no PLACEMENT, fpstype = \the \@fpstype = 16?}%
1170 \fi
1171 \ifnum \@fpstype=17
1172 \fl@trace{WARNING: only h, fpstype = \the \@fpstype = 17?}%
1173 \fi
1174 \fl@trace{ORD float}%
1175 \fi
1176 }
1177 \def \@resethfps {%
1178 \let\reserved@a\@empty
1179 \ifnum \@fpstype=\@ne
1180 \def \reserved@a {!}%
1181 \@fpstype 17
1182 \fi
1183 \ifnum \@fpstype=17
1184 \global \advance \count\@currbox \tw@
1185 \@latex@warning@no@line {%
1186 `\reserved@a h' float specifier changed to `\reserved@a ht'}%
1187 \fl@trace{%
1188 `t' added to `\reserved@a h'- new Count: \the \count\@currbox}%
1189 \fi
1190 }
1191 \def \@flsetnum #1{%
1192 \fl@trace{fpstype: \the \@fpstype (flsetnum \string#1)}%
1193 \ifnum \@fpstype<\sixt@@n
1194 \ifnum #1=\z@
1195 \fl@trace{BANG float resetting \string#1 to 1}%
1196 #1\@ne
1197 \fi
1198 \fi
1199 \fl@trace{#1 (before) = \the #1}%
1200 }
1201 \def \@flsettextmin {%
1202 \fl@trace{fpstype: \the \@fpstype (flsettextmin)}%
1203 \ifnum \@fpstype<\sixt@@n
1204 \fl@trace{BANG ignoring textmin}%
1205 \@textmin \z@
1206 \else
1207 \@textmin \textfraction\@colht
1208 \fl@trace{ORD textmin = \the \@textmin}%
1209 \fi
1210 }
1211 \IncludeInRelease{2025/06/01}%
1212 {\@flcheckspace}{float placement calculation}%
1213 \def \@flcheckspace #1#2{%
1214 \@reqcolroom \saved@reqcolroom
1215 \advance \@reqcolroom
1216 \ifx #2\@empty \textfloatsep \else \floatsep \fi
1217 \fl@trace{colroom = \the \@colroom
1218 (flcheckspace \string#1 \string#2)}%
1219 \fl@trace{reqcolroom = \the \@reqcolroom
1220 (flcheckspace \string#1 \string#2)}%
1221 \ifdim \@colroom>\@reqcolroom
1222 \ifdim #1>\ht\@currbox
1223 \@tempswatrue
1224 \fl@trace{Space OK: #1 = \the #1 > \the \ht \@currbox
1225 (flcheckspace \string#1 \string#2)}%
1226 \else
1227 \fl@trace{fpstype: \the \@fpstype
1228 (flcheckspace \string#1 \string#2)}%
1229 \ifnum \@fpstype<\sixt@@n
1230 \fl@trace{BANG float ignoring #1
1231 (flcheckspace \string#1 \string#2):}%
1232 \fl@trace{\@spaces #1 = \the #1. Ht float: \the \ht \@currbox
1233 \space BANG}%
1234 \@tempswatrue
1235 \else
1236 \fl@trace{Fail---no room (flcheckspace \string#1 \string#2)
1237 (fpstype \the \@fpstype=ORD?):}%
1238 \fl@trace{\@spaces #1 = \the #1. Ht float: \the \ht \@currbox
1239 \space ORD?}%
1240 \fi
1241 \fi
1242 \else
1243 \fl@trace{Fail---no room at 2nd test of colroom
1244 (flcheckspace \string#1 \string#2)}%
1245 \fi
1246 }
1247 \EndIncludeInRelease
1248 \IncludeInRelease{0000/00/00}%
1249 {\@flcheckspace}{float placement calculation}%
1250
1251 \def \@flcheckspace #1#2{%
1252 \advance \@reqcolroom
1253 \ifx #2\@empty \textfloatsep \else \floatsep \fi
1254 \fl@trace{colroom = \the \@colroom
1255 (flcheckspace \string#1 \string#2)}%
1256 \fl@trace{reqcolroom = \the \@reqcolroom
1257 (flcheckspace \string#1 \string#2)}%
1258 \ifdim \@colroom>\@reqcolroom
1259 \ifdim #1>\ht\@currbox
1260 \@tempswatrue
1261 \fl@trace{Space OK: #1 = \the #1 > \the \ht \@currbox
1262 (flcheckspace \string#1 \string#2)}%
1263 \else
1264 \fl@trace{fpstype: \the \@fpstype
1265 (flcheckspace \string#1 \string#2)}%
1266 \ifnum \@fpstype<\sixt@@n
1267 \fl@trace{BANG float ignoring #1
1268 (flcheckspace \string#1 \string#2):}%
1269 \fl@trace{\@spaces #1 = \the #1. Ht float: \the \ht \@currbox
1270 \space BANG}%
1271 \@tempswatrue
1272 \else
1273 \fl@trace{Fail---no room (flcheckspace \string#1 \string#2)
1274 (fpstype \the \@fpstype=ORD?):}%
1275 \fl@trace{\@spaces #1 = \the #1. Ht float: \the \ht \@currbox
1276 \space ORD?}%
1277 \fi
1278 \fi
1279 \else
1280 \fl@trace{Fail---no room at 2nd test of colroom
1281 (flcheckspace \string#1 \string#2)}%
1282 \fi
1283 }
1284 \EndIncludeInRelease
1285 \IncludeInRelease{2017/01/01}%
1286 {\@makefcolumn}{negative height floats}%
1287 \def\@makefcolumn #1{%
1288 \begingroup
1289 \@fpmin -\maxdimen
1290 \let \@testfp \@gobble
1291 \@tryfcolumn #1%
1292 \endgroup
1293 \if@fcolmade
1294 \fl@trace{PAGE: in \string\clearpage
1295 \if@twocolumn ---twocolumn\fi---}%
1296 \fl@trace{----- float column/page completed from \string#1}%
1297 \fi
1298 }
1299 \EndIncludeInRelease
1300 \IncludeInRelease{0000/00/00}%
1301 {\@makefcolumn}{negative height floats}%
1302 \def\@makefcolumn #1{%
1303 \begingroup
1304 \@fpmin \z@
1305 \let \@testfp \@gobble
1306 \@tryfcolumn #1%
1307 \endgroup
1308 \if@fcolmade
1309 \fl@trace{PAGE: in \string\clearpage
1310 \if@twocolumn ---twocolumn\fi---}%
1311 \fl@trace{----- float column/page completed
1312 from \string#1}%
1313 \fi
1314 }
1315 \EndIncludeInRelease
1316 \IncludeInRelease{2025/06/01}%
1317 {\@outputdblcol}{Use new mark mechanism}%
1318 \def\@outputdblcol{%
1319 \if@firstcolumn
1320 \global\@firstcolumnfalse
1321 \global\setbox\@leftcolumn\copy\@outputbox
1322 \fl@trace{PAGE: first column boxed}%
1323 \else
1324 \global\@firstcolumntrue
1325 \setbox\@outputbox\vbox{%
1326 \hb@xt@\textwidth{%
1327 \hb@xt@\columnwidth{\box\@leftcolumn \hss}%
1328 \hfil
1329 {\normalcolor\vrule \@width\columnseprule}%
1330 \hfil
1331 \hb@xt@\columnwidth{\box\@outputbox \hss}}}%
1332 \fl@trace{PAGE: second column also boxed}%
1333 \@combinedblfloats
1334 \@outputpage
1335 \fl@trace{PAGE: two column page completed}%
1336 \begingroup
1337 \@dblfloatplacement
1338 \@startdblcolumn
1339 \@whilesw\if@fcolmade \fi{\@outputpage
1340 \fl@trace{PAGE: double float page completed}%
1341 \@startdblcolumn}%
1342 \endgroup
1343 \fi}%
1344 \EndIncludeInRelease
1345 \IncludeInRelease{2015/01/01}%
1346 {\@outputdblcol}{2 column marks}%
1347 \def\@outputdblcol{%
1348 \if@firstcolumn
1349 \global\@firstcolumnfalse
1350 \global\setbox\@leftcolumn\copy\@outputbox
1351 \splitmaxdepth\maxdimen
1352 \vbadness\maxdimen
1353 \setbox\@outputbox\vbox{\unvbox\@outputbox\unskip}%
1354 \setbox\@outputbox\vsplit\@outputbox to\maxdimen
1355 \toks@\expandafter{\topmark}%
1356 \xdef\@firstcoltopmark{\the\toks@}%
1357 \toks@\expandafter{\splitfirstmark}%
1358 \xdef\@firstcolfirstmark{\the\toks@}%
1359 \ifx\@firstcolfirstmark\@empty
1360 \global\let\@setmarks\relax
1361 \else
1362 \gdef\@setmarks{%
1363 \let\firstmark\@firstcolfirstmark
1364 \let\topmark\@firstcoltopmark}%
1365 \fi
1366 \else
1367 \global\@firstcolumntrue
1368 \setbox\@outputbox\vbox{%
1369 \hb@xt@\textwidth{%
1370 \hb@xt@\columnwidth{\box\@leftcolumn \hss}%
1371 \hfil
1372 {\normalcolor\vrule \@width\columnseprule}%
1373 \hfil
1374 \hb@xt@\columnwidth{\box\@outputbox \hss}}}%
1375 \@combinedblfloats
1376 \@setmarks
1377 \@outputpage
1378 \begingroup
1379 \@dblfloatplacement
1380 \@startdblcolumn
1381 \@whilesw\if@fcolmade \fi{\@outputpage
1382 \@startdblcolumn}%
1383 \endgroup
1384 \fi}
1385 \EndIncludeInRelease
1386 \IncludeInRelease{0000/00/00}%
1387 {\@outputdblcol}{2 column marks}%
1388 \def\@outputdblcol{%
1389 \if@firstcolumn
1390 \global \@firstcolumnfalse
1391 \global \setbox\@leftcolumn \box\@outputbox
1392 \fl@trace{PAGE: first column boxed}%
1393 \else
1394 \global \@firstcolumntrue
1395 \setbox\@outputbox \vbox {%
1396 \hb@xt@\textwidth {%
1397 \hb@xt@\columnwidth {%
1398 \box\@leftcolumn \hss}%
1399 \hfil
1400 {\normalcolor\vrule
1401 \@width\columnseprule}%
1402 \hfil
1403 \hb@xt@\columnwidth {%
1404 \box\@outputbox \hss}%
1405 }%
1406 }%
1407 \fl@trace{PAGE: second column also boxed}%
1408 \@combinedblfloats
1409 \@outputpage
1410 \fl@trace{PAGE: two column page completed}%
1411 \begingroup
1412 \@dblfloatplacement
1413 \@startdblcolumn
1414 \@whilesw\if@fcolmade \fi
1415 {\@outputpage
1416 \fl@trace{PAGE: double float page completed}%
1417 \@startdblcolumn}%
1418 \endgroup
1419 \fi
1420 }%
1421 \EndIncludeInRelease
1422 \endinput
1423 %%
1424 %% End of file `fltrace.sty'.