[EMAIL PROTECTED] wrote:
>
> Hi, I am using LyX 1.0.4 and I can't center a column
> in a table once I have given a width to it (see the
> end
> of the message for an example)
>
> 1. This problem has already been asked few months ago
> in
> the lyx-users list but I didn't understand what is
> the
> latest recommended version to do that ?
>
> 2. As it is not easy for me right now to update to
> latest
> LyX version (compiler compatibility problems),
> I have used the trick proposed by D.Tsur :
> put "\usepackage{array}" in the preamble
> and ">{\centering}p{<width>}" in the
> Special column alignment field in Extra
> Table panel but it gives bad results. The cells
> are centered (OK!) but strange horizontal
> lines appear in the Table (dvi or ps) ...
> Does anyone have succeeded to do that in an other
> way maybe ?
>
> Thanks in advance
>
> Krzys
>
> ...........................................
> For example, I can't do this simple table :
> -----------------------------
> | 1 | 2 |
> -----------------------------
> where each column has the same fixed width
> and each column is centered.
in preamble
\usepackage{array}
and in the tabular for every column
put the cursor in it at than right mouse button
row/colum->special alignment
>{\centering\hspace{0pt}}p{2cm}
for a columnwidth of 2cm
Herbert
--
http://www.educat.hu-berlin.de/~voss/lyx/