summaryrefslogtreecommitdiff
path: root/macros/luatex/generic/luatexja/src/patches/lltjp-array.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/luatex/generic/luatexja/src/patches/lltjp-array.sty
Initial commit
Diffstat (limited to 'macros/luatex/generic/luatexja/src/patches/lltjp-array.sty')
-rw-r--r--macros/luatex/generic/luatexja/src/patches/lltjp-array.sty26
1 files changed, 26 insertions, 0 deletions
diff --git a/macros/luatex/generic/luatexja/src/patches/lltjp-array.sty b/macros/luatex/generic/luatexja/src/patches/lltjp-array.sty
new file mode 100644
index 0000000000..989fd8ce9d
--- /dev/null
+++ b/macros/luatex/generic/luatexja/src/patches/lltjp-array.sty
@@ -0,0 +1,26 @@
+%
+% lltjp-array.sty
+%
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{lltjp-array}[2018/03/29 Patch to array for LuaTeX-ja]
+
+\RequirePackage{etoolbox,array}
+
+\patchcmd\insert@column{%
+ \ignorespaces\@sharp\unskip
+}{%
+ \ltj@sharp
+}{}{}
+
+\@ifpackageloaded{lltjext}{}{%
+%% remove extra \xkanjiskip (pLaTeX2e 2016/04/17)
+\def\@tabular{%
+ \leavevmode \null
+ \hbox \bgroup $\col@sep\tabcolsep \let\d@llarbegin\begingroup
+ \let\d@llarend\endgroup
+ \@tabarray}
+\def\endtabular{\endarray $\egroup\null}
+\expandafter \let \csname endtabular*\endcsname = \endtabular
+}
+\endinput