OSDN Git Service

Overwrite 'master' branch with 'kitagawa_test'
[luatex-ja/luatexja.git] / src / patches / lltjp-stfloats.sty
1 %
2 % lltjp-stfloats.sty
3 %
4
5 \NeedsTeXFormat{LaTeX2e}
6 \ProvidesPackage{lltjp-stfloats}[2014/11/23 Patch to stfloats for LuaTeX-ja]
7
8 \RequirePackage{stfloats,luatexja}
9
10 \let\ltj@fn@makecol=\fn@makecol
11
12 \gdef\fn@makecol{%
13    \setbox\@outputbox \box\@cclv
14    \let\@elt\relax
15    \xdef\@freelist{\@freelist\@midlist}%
16    \global \let \@midlist \@empty
17    \@combinefloats
18    \ifvoid\footins
19    \else
20      \setbox\@outputbox \vbox {%
21        \boxmaxdepth \@maxdepth
22        \unvbox \@outputbox
23        \vskip \skip\footins
24        \color@begingroup
25          \normalcolor
26          \footnoterule
27          \unvbox \footins
28        \color@endgroup
29        }%
30    \fi
31    \ifvbox\@kludgeins
32      \@makespecialcolbox
33    \else
34      \setbox\@outputbox \vbox to\@colht {%
35        \@texttop
36        \dimen@ \ltjgetdp\@outputbox
37        \unvbox \@outputbox
38        \ifnum\ltjgetparameter{direction}=3 \hskip\z@\fi %%% LuaTeX-ja
39        \vskip -\dimen@
40        \@textbottom
41        }%
42    \fi
43    \global \maxdepth \@maxdepth
44   }
45
46 \ifx\@makecol\ltj@fn@makecol
47   \global\let\@makecol\fn@makecol
48 \fi
49 \endinput