Re: 縦組の表でcolortblパッケージを使用すると文字が横向きになる

名前: トノ
日時: 2005-05-27 00:32:03
IPアドレス: 58.0.12.*

>>36047 私自身では解決の糸口も見つけられずにいたのですが、どなたからもレスが ないようですので、某達人の手になるものをそのまま載せてしまいます。 \documentclass{tarticle}%%% ここで plext パッケージが読みこまれている. \usepackage{colortbl}%%% array,color の両パッケージはここで読みこまれる. \makeatletter \def\@tabarray{\@ifnextchar<\p@tabarray{\p@tabarray<Z>}} \def\p@tabarray<#1>{% \m@th \@ifnextchar[{\p@array<#1>}{\p@array<#1>[c]}} \def\p@array<#1>[#2]#3{% \@tempdima \ht\strutbox \advance \@tempdima \extrarowheight \@tempdimb \ht\zstrutbox \advance \@tempdimb \extrarowheight \@tempdimc \ht\tstrutbox \advance \@tempdimc \extrarowheight \setbox\@arstrutbox\hbox{% \iftdir \if #1y\relax\yoko \vrule\@height\arraystretch\@tempdima \@depth\arraystretch\dp\strutbox \@width\z@ \else\if #1z\relax\@rotswtrue \vrule\@height\arraystretch\@tempdimb \@depth\arraystretch\dp\zstrutbox \@width\z@ \else \vrule\@height\arraystretch\@tempdimc \@depth\arraystretch\dp\tstrutbox \@width\z@ \fi\fi \else \if #1t\relax \hbox{\tate \vrule\@height\arraystretch\@tempdimc \@depth\arraystretch\dp\tstrutbox \@width\z@}% \else \vrule\@height\arraystretch\@tempdima \@depth\arraystretch\dp\strutbox \@width\z@ \fi \fi}% \fork@array@option<#1>[#2]% \begingroup \@mkpream{#3}% \xdef\@preamble{\ialign \noexpand\@halignto \bgroup \tabskip\z@skip \@arstrut \@preamble \tabskip\z@skip \cr}% \endgroup \let\\\@arraycr \let\tabularnewline\\% \let\par\@empty \@begin@alignbox\bgroup\box@dir\adjustbaseline \let\par\@empty \let\@sharp##\let\protect\relax \lineskip\z@skip\baselineskip\z@skip\@preamble} \def\endarray{\crcr\egroup\egroup\@end@alignbox} \def\endtabular{\crcr\egroup\egroup\@end@alignbox $\egroup} \expandafter \let \csname endtabular*\endcsname = \endtabular \makeatother \begin{document} あいうえお\\ \begin{tabular}{@{}l@{}} \hline かきくけこ\\ \hline \hbox{\tate{さしすせそ}} \end{tabular}\bigskip \begin{tabular}{|>{\columncolor[gray]{.8}}c|c|} \hline あなたの健康を & 損なうおそれが \\ \hline ありますので飲みすぎに & 注意しましょう \\ \hline \end{tabular} \end{document}

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます)