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让文字居中,但问题是它们不能混用
: 谢谢!
相关阅读
Problem to generate dvi and pdf files with epsLatex写论文时参考文献到底如何加入?请问report class的sty插件到哪里下载?如何把程序流程加进去如果winedt里头打开了一个project,请问如何编译别的文件?请问一下有什么好的latex图形编辑软件?请教latex写paper速成?问个beamer的问题再求助,PDFLaTex和eps文件的冲突请教一个图片问题EPS 图片转 matlab的FIG格式IEEE 的bib 好像把一篇文章中的几个作者按照字母顺序重排大家是直接写latex,还是先写word再写latex?曲线两端怎么加箭头啊?a quick quesiton: how to remove the number from section tit请问这种证明结束符号怎么输入?文章分2栏,现在如何把公式、图片横跨2栏共用机器上的tex编辑软件latex + emacs 怎么榜定快捷键生成pdf请问怎么在公式里输入罗马数字Ⅱ