X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Flltjext.sty;h=58451214e33e605a7a9a9686617f6241cacf3847;hb=eb118f3e5ea0852407b5261817700401699528b9;hp=8ce37b7c78a340d55ad301c7020ca039a5702b6b;hpb=4cf1b5c0e1c4261cda265d7d98593c5021fa8758;p=luatex-ja%2Fluatexja.git diff --git a/src/lltjext.sty b/src/lltjext.sty index 8ce37b7..5845121 100644 --- a/src/lltjext.sty +++ b/src/lltjext.sty @@ -3,8 +3,7 @@ % \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{lltjext} - [2014/09/06 v1.2-ltj-3 Macros for vertical writing] +\ProvidesPackage{lltjext}[2015/09/18 v1.2-ltj-4 Macros for vertical writing] \RequirePackage{luatexja} \let\ltj@lltjext@orig@tabular=\tabular @@ -22,7 +21,8 @@ \def\X@tabular{\@ifnextchar<%> {\p@tabular}{\p@tabular}} \def\@stabular<#1>#2{\def\@halignto{to#2}\p@tabular<#1>} -\def\p@tabular<#1>{\leavevmode \hbox \bgroup $\let\@acol\@tabacol +\def\p@tabular<#1>{\leavevmode \hbox \bgroup + \count@=\ltjgetparameter{direction}$\let\@acol\@tabacol \let\@classz\@tabclassz \let\@classiv\@tabclassiv \let\\\@tabularcr\p@tabarray<#1>} \def\p@tabarray<#1>{\m@th\@ifnextchar[%] @@ -46,7 +46,7 @@ \fi\fi\fi\fi \fi \ifx\box@dir\relax - \ifcase\ltjgetparameter{direction} + \ifcase\count@ \or \let\box@dir\dtou\@tempcnta=\dstrutbox% dtou \or\or\let\box@dir\tate\@tempcnta=\tstrutbox% tate \or \let\box@dir\yoko\@tempcnta=\strutbox% yoko @@ -653,7 +653,7 @@ %%% kanji \def\Kanji#1{\expandafter\@Kanji\csname c@#1\endcsname} \def\@Kanji#1{\expandafter\kansuji\number #1} -\def\kanji{\iftdir\expandafter\kansuji\fi} +\def\kanji{\ifnum\ltjgetparameter{direction}=3 \expandafter\kansuji\fi} %%% bou %%% @@ -758,4 +758,4 @@ } -\endinput \ No newline at end of file +\endinput