How to center multiple lines in all cells of a table simultaneously

I can center objects conveniently in all cells by changing the cell properties in one step. However, multiple lines in the cells are not centered although the lines as a whole is centered.


I can center them by setting paragraph properties or inserting centering tags. But I found no way to do this to all or multiple cells simultaneously.

I have put the table inside a with par-mode center environment but inside each cell the paragraph mode remains justified. Maybe someone else knows what to do.

Another problem: setting borders of cell always only apply to the current cell even I have checked Perform operations on entire table, row or columne. Thus I can’t get a table with only horizontal borders, for example.

I think that there you need to apply formatting directly in source code. For example

<cwith|1|-1|1|-1|cell-tborder|1ln>

See manual, sec. 10.4 “Table primitives”.

I’m not sure what you mean. You can select multiple cells (which will be highlighted in purple) and then apply something to all of them. If you need to put horizontal lines to all the cells then there is a special button among those for setting border lines.

I had missed that button.

I got it sorted out. There are some tricks.

  1. The first set of border settings apply only to the outer border of the seleted cell or cells (as a subtable). This also applies to the cell containing the cursor but the cell operation mode has no effect, which causes the confusion. However, the Cell properties dialog settings works with the mode.
    image image
  2. Once a cell or cells are selected, a second set of settings appear in the menu, which apply to the internal borders. This menu does not appear without selecting a cell or cells.
    image
  3. One may need do those two modes of operations back and forth to achieve desired results.
  4. Clicking Pen width settings alone has no effect on the border of selected cells, but only after applying one of the border settings above.
  5. Many settings in other menu icons are already in Cell properties. I think they can be removed in order not to cause confusion.