This page provides an example to make user defined styles persist for rows. For this example, let's consider Monthly Temperatures table for which you want to set styles of various rows, including the header row, and auto-number all the rows.
Select this macro
Macro name | Table Plus |
Macro syntax | {table-plus} |
Define these parameters/values
Row formatting > Data rows > Row Styles (1 2 3) | background:lightgrey; padding:5px background:lightblue font-style:italic; font-size: 1.2em; text-align:center |
Row formatting > Header & Footer rows > Header row styles | font-size: 2.0em; font-style:bold; padding:8px |
Row formatting > Advanced settings > Apply Row styles to data row cells | On |
Screenshots
Example results
Table when the Apply Row styles to data row cells was off:
Table when the Apply Row styles to data row cells is on:
Here, the row styles for the header, first and third rows override the default styles.