5 \NeedsTeXFormat{LaTeX2e}
6 \ProvidesPackage{lltjp-footmisc}[2017/01/19 Patch to footmisc for LuaTeX-ja]
7 \RequirePackage{footmisc}
9 \let \if@tempswa \ifFN@bottom
10 \ifFN@para \@tempswatrue \fi
13 \toks@{\setbox\@outputbox \box\@cclv
14 \xdef\@freelist{\@freelist\@midlist}%
15 \global\let\@midlist\@empty
19 \setbox\@outputbox \vbox\bgroup
20 \boxmaxdepth\@maxdepth
25 \toks@\expandafter{\the\toks@\egroup\fi}
27 \toks@{\ifvoid\footins
28 \setbox\@outputbox\box\@cclv
30 \setbox\@outputbox \vbox\bgroup
31 \boxmaxdepth\@maxdepth
35 \toks@\expandafter{\the\toks@
38 \xdef\@freelist{\@freelist\@midlist}%
39 \global\let\@midlist\@empty
43 \toks@\expandafter{\the\toks@
47 \setbox\@outputbox \vbox to\@colht{%
48 \@texttop \dimen@\dp\@outputbox
50 \ifnum\ltjgetparameter{direction}=3 \vbox{\hskip\z@}\fi %%% LuaTeX-ja
51 \vskip -\dimen@\@textbottom
54 \global\maxdepth\@maxdepth
56 \edef\@makecol{\the\toks@}