OSDN Git Service

Releases 20240514.0
[luatex-ja/luatexja.git] / src / patches / lltjp-stfloats.sty
1 %
2 % lltjp-stfloats.sty 2021-03-25
3 %
4
5 \NeedsTeXFormat{LaTeX2e}
6
7 \RequirePackage{stfloats}
8 \RequirePackage{etoolbox}
9
10 \newif\ifltj@stfloats@fnbelowfloat
11 \let\ltj@fn@makecol=\fn@makecol
12 \ifx\@makecol\ltj@fn@makecol\ltj@stfloats@fnbelowfloattrue\fi % \fnbelowfloat 発行済
13 \let\ltj@fn@makecol=\relax
14 \global\let\org@makecol\ltj@orig@makecol
15
16 \patchcmd\fn@makecol{\vskip -\dimen@\@textbottom}%
17   {\pltx@adjust@wd@outputbox
18    \vskip -\dimen@
19    \ifltj@ftn@unvboxed\iffnfixbottom\else\@textbottom\fi\else\@textbottom\fi}{}{}
20 \patchcmd\fn@makecol{\vskip\skip\footins}{\iffnfixbottom\vskip\z@\@plus.0001fil\fi\vskip\skip\footins}{}{}
21 \patchcmd\fn@makecol{\ifvoid\footins}{\ifvoid\footins\ltj@ftn@unvboxedfalse}{}{}
22 \patchcmd\fn@makecol{\setbox\@outputbox \vbox}{\ltj@ftn@unvboxedtrue\setbox\@outputbox \vbox}{}{}
23
24 \ifltj@stfloats@fnbelowfloat
25   \global\let\@makecol\fn@makecol
26 \fi
27 \endinput