Tables: Setting width for entire column

Rich Shepard rshepard at appl-ecosys.com
Fri Feb 10 18:35:09 UTC 2023


On Fri, 10 Feb 2023, Udicoudco wrote:

> Since the alignment of the text inside the second row is centered,
> contrary to the rest of the tabular, these cells are typeset inside
> \multicell, and in this case their width can be independent from the width
> of their column.

Udi,

The column headers are in the first row, and centered. Unchecking
multicolumn for the two header cells doesn't allow me to center them above
the left-aligned cells beneath them.

> If you will keep the column width field in the settings empty, they will
> have the same width as the rest of the column (currently they have widths
> of 45% and 55% of \textwidth, thus the table flows out of the screen).
> Change the column width only when the cursor is below the headings.

With the cursor in each of the header cells, there's no width, but the
alignment is Left. The top and bottom borders for the first row, and the
bottom border for the last row slightly overlap the text area.

I'll ignore the left-aligned column headers and slight overhang of the
borders because they're not critical.

Thanks,

Rich


More information about the lyx-users mailing list