这应该是一个简单的问题,但在查看了其他回复后,我似乎仍然无法让它发挥作用。我将我的示例简化为以下内容:
\begin{tabular}{p{.5in} l }
\begin{tabular}{p{.5in} }
very long first column that spans multiple row.s
\end{tabular}
&
\begin{tabular}{p{.5in} }
2nd column
\end{tabular}
\end{tabular}
我只是想让两列中的文本垂直对齐到顶部。不幸的是,尽管我尽力尝试,但目前第二列始终在表格中垂直居中。
答案1
t
在 的可选参数中使用(for top) tabular
:
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{tabular}{p{.5in} l }
\begin{tabular}[t]{p{.5in} }
very long first column that spans multiple row.s
\end{tabular}
&
\begin{tabular}[t]{p{.5in} }
2nd column
\end{tabular}
\end{tabular}
\end{document}
答案2
为什么要在表格中嵌入表格?
\documentclass{book}
\begin{document}
\begin{tabular}{p{.5in}p{.5in}}
\raggedright very long first column that spans multiple rows&
\raggedright 2nd column
\end{tabular}
\end{document}