OSDN Git Service

\strutbox patch
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Thu, 2 Mar 2017 09:13:32 +0000 (18:13 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Thu, 2 Mar 2017 09:13:32 +0000 (18:13 +0900)
src/patches/lltjfont.sty

index e9c92fa..5c8bcfe 100644 (file)
 \newbox\dstrutbox
 \newbox\tstrutbox
 \newbox\zstrutbox
-%\def\strutbox{%
-%}
+\def\strutbox{%
+  \ifnum\ltjgetparameter{direction}=1 \dstrutbox       % dtou
+  \else\ifnum\ltjgetparameter{direction}=3 \tstrutbox  % tate
+  \else\ifnum\ltjgetparameter{direction}=11 \tstrutbox % utod (tstrutbox)
+  \else\ystrutbox % yoko
+  \fi\fi\fi
+}
 \def\strut{\relax
   \ifnum\ltjgetparameter{direction}=1 % dtou
     \ifmmode\copy\dstrutbox\else\unhcopy\dstrutbox\fi