This page provides an example to make user defined styles persist for columns. For this example, let's consider the Monthly Temperatures Table, for which you want to set background colors and borders of various columns, and auto-number all the rows.
Select this macro
Macro name | Table Plus |
Macro syntax | {table-plus} |
Define these parameters/values
Column Styles | border:5px solid #c1c7d0;background:lightgrey;padding:15px, background:lightgreen;color:red;font-size: 160%, background:lightyellow;border: 3px dotted green, 2 |
Insert auto number column | On |
Apply Column styles to data column cells | On |
Parameters set in the macro editor
Example result
When the Apply Column styles to data column cells is off, certain styles like the padding and the text color are not applied as shown:
When the Apply Column styles to data column cells is toggled on, the table is displayed with all the specified styles as shown: