o******e 发帖数: 10 | 1 I have a table with the following tex code
\begin{tabular*}{1\textwidth}{ccc}
1 & 2 & 3 \\
1 & 2 & 3 \\
\end{tabular*}
i.e., I want to format the table so that the width of the table is equal to
1 textwidth.
Now I use windows lyx. How can I format this in lyx?
Thanks |
o******e 发帖数: 10 | 2 sorry, I meant
\begin{tabular*}{1\textwidth}{@{\extracolsep{\fill}}ccc}
1 & 2 & 3 \\
1 & 2 & 3 \\
\end{tabular*}
to
【在 o******e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : I have a table with the following tex code : \begin{tabular*}{1\textwidth}{ccc} : 1 & 2 & 3 \\ : 1 & 2 & 3 \\ : \end{tabular*} : i.e., I want to format the table so that the width of the table is equal to : 1 textwidth. : Now I use windows lyx. How can I format this in lyx? : Thanks
|
s****n 发帖数: 80 | 3 p{.33\textwidth} for each column |
o******e 发帖数: 10 | 4 Thanks.
I have figured out an easier way.
I redefine the tabular environment in the preamble. Most of the times I want
the table to be as wide as 1\textwidth;
\renewenvironment{tabular}
{%
\begin{tabular*}{1\textwidth}
}
{%
\end{tabular*}%
}
Then add the \extracolsep{\fill}} to the tex argument in the first column of
each table. This way, I don't have to manually assign the width of a column
. The rubber space should take care of it. |