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让文字居中,但问题是它们不能混用
: 谢谢!
相关阅读
Miktex 2.5 installationpresentation 计时器如何写向量上面的单侧指向右的箭头beamer 一问Title of a section is too long我觉得入门得两星期有没有比较好的把latex转为word的工具啊?WinEdt, Latex, and Beamerlatex Table/Figure 请叫请教!几个关于WinEdt, MikTex, Revtex4的问题请教 AucTex C-c C-c 问题beamer and textpos哪位老大用过Adobe Garamond的字体库怎么能让每个 section 另起一页?how to prepare a cite.sty for latex on windows system?急救!!! 怎么只让文档第一页有header?latex中.bib如何引用http://[请教]ps2pdf不认参数?Texmaker很不错