T*n
2 楼
Try the following; note the distinction between
\tabularnewline (to start a new row in the table)
and \\ (to break lines within thesame row).
\usepackage{array}
\begin{tabular}{|>{\centering}p{2in}|}
\hline
text to be centered in a column \tabularnewline
\hline
more text to be centered \tabularnewline
\hline
text\\centered\\on four lines\\in one row \tabularnewline
\hline
\end{tabular}
【在 w*******r 的大作中提到】
: 如何既限定表格一栏的宽度,又让文字居中。
: p{width}限定表格一栏的宽度, c让文字居中,但问题是它们不能混用
: 谢谢!
\tabularnewline (to start a new row in the table)
and \\ (to break lines within thesame row).
\usepackage{array}
\begin{tabular}{|>{\centering}p{2in}|}
\hline
text to be centered in a column \tabularnewline
\hline
more text to be centered \tabularnewline
\hline
text\\centered\\on four lines\\in one row \tabularnewline
\hline
\end{tabular}
【在 w*******r 的大作中提到】
: 如何既限定表格一栏的宽度,又让文字居中。
: p{width}限定表格一栏的宽度, c让文字居中,但问题是它们不能混用
: 谢谢!
相关阅读
如何让图片在beamer slide里面占据一角,然后在旁边写字如何输入~符号?补集的补集上面的两个bar怎么对齐?请问如何给多行公式加框.A problem with Latex (MikTex+WinEdt), many thanks怎样让有图的那页不再有文字部分可以在Tabular里面加list麽How to get a footnote without footnote mark in any place?我也来问个word的问题问一个EPS图的分辨率的问题In IEEE latex template, how to use \includeMikTeX 2.5 releasedword文件里有英文和汉语,如何把所有的英文变成 bold? (转载)想对一张原来的eps修改一下,用什么软件啊?新手,问几个问题?dvips.exe: The operation failed for some reason.怎么在 \framebox{...} 里自动换行?用Beemer怎么插入EPS图片?Bibliography和Reference字样同时出现怎么删除其中一个?urgent help with latex figures