OSDN Git Service

platex/#96 (\@makecol)
[luatex-ja/luatexja.git] / src / patches / lltjp-footmisc.sty
1 %
2 % lltjp-footmiscs.sty
3 %
4
5 \NeedsTeXFormat{LaTeX2e}
6 \ProvidesPackage{lltjp-footmisc}[2021-03-17 Patch to footmisc for LuaTeX-ja]
7 \RequirePackage{footmisc}
8
9 \let  \if@tempswa  \ifFN@bottom
10 \ifFN@para    \@tempswatrue \fi
11 \if@tempswa
12   \ifFN@bottom
13     \toks@{\setbox\@outputbox \box\@cclv
14       \xdef\@freelist{\@freelist\@midlist}%
15       \global\let\@midlist\@empty
16       \@combinefloats
17       \ifvoid\footins
18       \else
19         \setbox\@outputbox \vbox\bgroup
20           \boxmaxdepth\@maxdepth
21           \unvbox\@outputbox
22           \vfill\relax
23     }
24     \the\FN@temptoken
25     \toks@\expandafter{\the\toks@\egroup\fi}
26   \else
27     \toks@{\ifvoid\footins
28         \setbox\@outputbox\box\@cclv
29       \else
30         \setbox\@outputbox \vbox\bgroup
31         \boxmaxdepth\@maxdepth
32         \unvbox\@cclv
33     }
34     \the\FN@temptoken
35     \toks@\expandafter{\the\toks@
36       \egroup
37       \fi
38       \xdef\@freelist{\@freelist\@midlist}%
39       \global\let\@midlist\@empty
40       \@combinefloats
41     }%
42   \fi
43   \toks@\expandafter{\the\toks@
44     \ifvbox\@kludgeins
45       \@makespecialcolbox
46     \else
47       \setbox\@outputbox \vbox to\@colht{%
48         \@texttop \dimen@\dp\@outputbox
49         \unvbox\@outputbox
50         \unless\ifnum\ltjgetparameter{direction}=4
51           \vbox{\primitive\everypar{}\hskip\z@}%
52         \fi %%% LuaTeX-ja
53         \vskip -\dimen@\@textbottom
54       }%
55     \fi
56     \global\maxdepth\@maxdepth
57   }
58   \edef\@makecol{\the\toks@}
59 \fi
60 \endinput