From: Hironori Kitagawa Date: Thu, 5 May 2016 12:52:56 +0000 (+0900) Subject: lltjcore.sty: use \patchcmd for patching \@tabular X-Git-Tag: 20160505.0~2 X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=ed437f13e5e2fe4ffd25dc0176294908d9f86beb;p=luatex-ja%2Fluatexja.git lltjcore.sty: use \patchcmd for patching \@tabular --- diff --git a/src/patches/lltjcore.sty b/src/patches/lltjcore.sty index b1ef812..2d577fc 100644 --- a/src/patches/lltjcore.sty +++ b/src/patches/lltjcore.sty @@ -200,11 +200,12 @@ \gdef\@stopfield{\null\color@endgroup\egroup} \newcount\hour \newcount\minute -\def\@tabular{\leavevmode \null\hbox \bgroup $\let\@acol\@tabacol - \let\@classz\@tabclassz - \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray} -\def\endtabular{\crcr\egroup\egroup $\egroup\null} -\expandafter \let \csname endtabular*\endcsname = \endtabular +%%% etoolbox is loaded by everyhook +\ifltj@everyhook@avail + \patchcmd{\@tabular}{\leavevmode}{\leavevmode\null}{}{} + \apptocmd{\endtabular}{\null}{}{} + \expandafter \let \csname endtabular*\endcsname = \endtabular +\fi \let\@parboxto\@empty \long\def\@iiiparbox#1#2[#3]#4#5{% \leavevmode