这其实是一个很简单的问题,但是这两天发现我之前的解决方案太麻烦了。简单介绍一下这种最简单的方法:
之前设置多行显示的时候,用类似于下面这种方法进行多行显示:
\begin{table}
\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
\centering
\begin{tabular}{|c|c|c|}
\hline
\tabincell{c}{1\\2\\3\\4\\5} &
\tabincell{c}{1\\2\\3\\4\\5} &
\tabincell{c}{1\\2\\3\\4\\5}
\ \hline
\end{tabular}
\end{table}\begin{table}
\centering
\begin{tabular}{|c|p{3cm}|}
\hline a & bbb\ \hline a & This is a very long sentence that may exceed the bound of this table.\ \hline
\end{tabular}
\end{table}
LaTeX中表格多行显示的最简单设置方法,布布扣,bubuko.com
原文:http://blog.csdn.net/qysh123/article/details/33321393