summaryrefslogtreecommitdiff
path: root/macros/luatex/generic/luatexja/src/patches/lltjp-array.sty
blob: 800515357165cc7d945b6c4ca79170e67f507ec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%
% lltjp-array.sty
%

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{lltjp-array}[2024-06-10 Patch to array for LuaTeX-ja]

\RequirePackage{etoolbox,array}

\patchcmd\insert@column{%
   \ignorespaces\@sharp\unskip
}{%
   \ltj@sharp
}{}{% >=2024-06-01
  \def\ltj@sharp{\relax\pltx@next@inhibitglue\ltjfakeboxbdd\ignorespaces\@sharp\textonly@unskip\ltjfakeboxbdd}
  \patchcmd\insert@column{%
     \ignorespaces\@sharp\textonly@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