a*****r 发帖数: 443 | 1 我知道如果定义那一列的长度为p{88pt}可以让那列里面的超过这个长度的换行
可是有的时候这个方法不适用
还有别的方法可以实现吗 谢谢 |
T*******n 发帖数: 493 | 2
Can you explain a bit more what problem you are having? Do you want
to force a line break using within a cell or do you want to achieve
some kind of special vertical or horizontal alignment?
【在 a*****r 的大作中提到】 : 我知道如果定义那一列的长度为p{88pt}可以让那列里面的超过这个长度的换行 : 可是有的时候这个方法不适用 : 还有别的方法可以实现吗 谢谢
|
z*****n 发帖数: 7639 | 3 \newline
or use tabularx package.
【在 a*****r 的大作中提到】 : 我知道如果定义那一列的长度为p{88pt}可以让那列里面的超过这个长度的换行 : 可是有的时候这个方法不适用 : 还有别的方法可以实现吗 谢谢
|
a*****r 发帖数: 443 | 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
是啊就想要这个效果
可{this // is C}不起作用
【在 T*******n 的大作中提到】 : : Can you explain a bit more what problem you are having? Do you want : to force a line break using within a cell or do you want to achieve : some kind of special vertical or horizontal alignment?
|
T*******n 发帖数: 493 | 5 Depending on whether you want to preserve line justification
within the cell, you can use either \linebreak (justification)
or \newline (no justification). Run the example below for
illustration.
\usepackage{array}
\begin{tabular}{|p{1in}|p{1in}|p{1in}|}
\hline
one two three four five six seven eight nine ten &
one two three\linebreak
four five\linebreak
six seven eight\linebreak
nine ten &
one two three\newline
four five\newline
six seven eight\newline
nine ten \\
\hlin
【在 a*****r 的大作中提到】 : : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\ : 是啊就想要这个效果 : 可{this // is C}不起作用
|
r*********s 发帖数: 2157 | 6 我也有类似的问题, 如下面,我想让A,B在中间,可是他们总是在最上面 |
T*******n 发帖数: 493 | 7 For the third and fourth columns, use m{1in} instead of p{1in}.
【在 r*********s 的大作中提到】 : 我也有类似的问题, 如下面,我想让A,B在中间,可是他们总是在最上面
|
a*****r 发帖数: 443 | 8 谢谢您的传道授业解惑
我还有一个问题
就是使用supertabular的时候
和我的IEEEtran的sty冲突了
因为如果单单使用supertabular,在article style情况下,table的caption是居中的,
但是当我使用IEEEtran代替article的style的时候,table的caption变成靠左对齐了,
请问这种情况如何解决呢?再次感谢!!
\documentclass{IEEEtran}
%\documentclass{article}
\usepackage{supertabular}
\begin{document}
\begin{center}
\tablecaption{Talbe}\footnotesize
\begin{supertabular}
{|c|} \hline $1$\\\hline
\end{supertabular}
\end{center}
\end{document}
【在 T*******n 的大作中提到】 : Depending on whether you want to preserve line justification : within the cell, you can use either \linebreak (justification) : or \newline (no justification). Run the example below for : illustration. : \usepackage{array} : \begin{tabular}{|p{1in}|p{1in}|p{1in}|} : \hline : one two three four five six seven eight nine ten & : one two three\linebreak : four five\linebreak
|