From 68ed6e15d6e974fc294871a19dc9b840db7c11f6 Mon Sep 17 00:00:00 2001 From: Hironori Kitagawa Date: Wed, 6 May 2020 04:52:18 +0900 Subject: [PATCH] added lltjp-collcell.sty --- src/ltj-latex.sty | 1 + src/patches/lltjp-collcell.sty | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/patches/lltjp-collcell.sty diff --git a/src/ltj-latex.sty b/src/ltj-latex.sty index ff6a72b..0d4823b 100644 --- a/src/ltj-latex.sty +++ b/src/ltj-latex.sty @@ -79,6 +79,7 @@ \ltj@pkgpatch{preview} %% at \begin{document} % (preview package has delayed option) \ltj@pkgpatch{array} %% at \begin{document} +\ltj@pkgpatch{collcell} %% at \begin{document} \ltj@pkgpatch@im{unicode-math} \ltj@pkgpatch@im{siunitx} \ltj@pkgpatch@im{microtype} diff --git a/src/patches/lltjp-collcell.sty b/src/patches/lltjp-collcell.sty new file mode 100644 index 0000000..d28971f --- /dev/null +++ b/src/patches/lltjp-collcell.sty @@ -0,0 +1,37 @@ +% +% lltjp-collcell.sty +% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{lltjp-array}[2020/05/06 Patch to collcell for LuaTeX-ja] + +\RequirePackage{etoolbox,array} + +\def\collcell@beforeuser{\ltjfakeboxbdd\ignorespaces} +\def\collcell@afteruser{\unskip\ltjfakeboxbdd} + +\def\collectcell#1#2\relax\pltx@next@inhibitglue\ltjfakeboxbdd\ignorespaces{% + \begingroup + \collect@cell@count\z@ + \collect@cell@toks{}% + \let\collect@cell@spaces\empty + \def\collect@cell@end{% + \expandafter\endgroup + \expandafter\collcell@beforeuser + \expandafter\ccell@swap\expandafter{\the\collect@cell@toks}{#1}% + \collcell@afteruser + }% + \collect@cell@look#2% +} +\patchcmd\collect@cell@arg{% + \cci{% + \collect@cell@look + }% +}{ + \cci{% + \collect@cell@look + }% + \ltjfakeboxbdd{\collect@cell@look} +}{}{} + +\endinput -- 2.11.0