是否有一些简单的方法可以更改 的列使用的基线,tabulary
正如LCRJ
我在tabular
的b
列和tabularx
的X
列中展示的那样?
\documentclass{article}
\usepackage{tabularx}
\usepackage{tabulary}
\begin{document}
\begin{table}
\caption{A regular \texttt{tabular}}
\centering
\begin{tabular}{>{\raggedright\hangindent=1em}b{4.5cm} c c}
A & B & C \\
Lorem ipsum dolor sit amet, consectetur adipisicing elit & 123 & 456 \\
\end{tabular}
\end{table}
\begin{table}
\caption{A \texttt{tabularx}}
\centering
\renewcommand\tabularxcolumn[1]{b{#1}}
\begin{tabularx}{6.75cm}{>{\raggedright\hangindent=1em}X c c}
A & B & C \\
Lorem ipsum dolor sit amet, consectetur adipisicing elit & 123 & 456 \\
\end{tabularx}
\end{table}
\begin{table}
\caption{A \texttt{tabulary}}
\centering
\begin{tabulary}{6.75cm}{>{\raggedright\hangindent=1em}L c c}
A & B & C \\
Lorem ipsum dolor sit amet, consectetur adipisicing elit & 123 & 456 \\
\end{tabulary}
\end{table}
\end{document}
答案1
TY 用途
\def\TY@box@v#1{%
\vtop \@startpbox{\csname TY@F\the\TY@count\endcsname}%
#1\arraybackslash\tyformat
\insert@column\@endpbox}
因此,如果您在加载包之后重新进行此定义,但使用\vbox
而不是,它就会像列而不是列一样\vtop
运行。b
p
这可能不是有史以来设计的最直观的界面,但是......