plext.sty の有無で tabular の垂直位置が変わる

plext.sty の有無で tabular の垂直位置が変わる

by 北川 弘典 -
Number of replies: 0
次の plext_test1.tex を TeX Live 2014 中の pTeX で処理しました.
====
\documentclass{jarticle}

\newbox\hogebox
\setbox\hogebox\hbox{The quick brown fox%
  \hbox to 0pt{\vrule width 100pt height 0.2pt depth 0pt\hss}%
  \begin{tabular}[t]{l}jumps over\end{tabular}
  the lazy dog.}

\usepackage{plext}
\newbox\fugabox
\setbox\fugabox\hbox{The quick brown fox%
  \hbox to 0pt{\vrule width 100pt height 0.2pt depth 0pt\hss}%
  \begin{tabular}[t]{l}jumps over\end{tabular}
  the lazy dog.}

\begin{document}
\begin{tabular}{ll}
without \texttt{plext}&\box\hogebox\\
with \texttt{plext}&\box\fugabox
\end{tabular}
\end{document}
====

その結果,添付した pdf のように,plext.sty 読み込み前に作った
\hogebox では,tabular[t] の中身「jumps over」が
きちんと周りの行とベースラインが一致しているのに対し,
plext.sty 読み込み後に作った
\fugabox では,若干周囲に比べて上に位置しています.

plext.sty を見ると
====
\else\let\box@dir\yoko
  \if #2t\relax
    \def\@begin@alignbox{\raise\cdp\vtop}%
    \let\@end@alignbox\relax
====
とあるので,確かに \cdp だけ上にずらすようになっていますが,
この仕様は意図的なのでしょうか?

周囲または tabular の中身を縦組にしたときにもいくつか気になる
状況があります(後でこのトピックにぶら下げる予定).


上記の状況をもし直したほうが良いということであれば,
LuaTeX-ja では直そうと考えています.