Skip to end of banner
Go to start of banner

WIP: Advanced column styles

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This page provides an example to make user defined styles persist for columns. For this example, let's consider Monthly Temperatures Table, for which you want to set background colors of various columns and auto-number all the rows.

Select this macro

Macro nameTable Plus
Macro syntax{table-plus}

Define these parameters/values

Column settings > Formatting > Column Styles (1

2

3

4)

background:lightgrey;text-align:center

background:lightblue

background:lightyellow;text-align:right

2

Column settings > Numbering & Totaling > Insert auto number columnOn
Column settings > Numbering & Totaling > Apply Column styles to data column cellsOn

Observe that column 1 styling is repeated in column 4, but, value 2 is used instead of 1. This is because Insert auto number column in On.

Screenshots

Example result

Table when the Apply Column styles to data column cells was off:

Table when the Apply Column styles to data column cells is on:

Here, now the first column and the fourth column with text-align:center now displays correctly, as well as the style specified in the third column.

  • No labels