environment: set environment to be used by pgfplotstable, and don’t generate column types
caption: Add table number to identify the demo tables
Setup demo projects
Use article class without page numbers for easier pdf cropping
chapter: set number at the start of table numbers
skip n letters: start the table numbers with the n+1th letter of the lowercase alphabet, default 0
Add table borders
Use essential styles from above
Setup styles for border lines
Rule widths equals booktabs’ defaults for toprule, midrule, and bottomrule
Add thick horizontal lines around the table and a regular line below the first row, see 1a
Use style hlines
Add two crossing lines separating the first row and first column from the rest, see 1b
Visually clarify column titles and row titles
Left aligns the first column
Use style cross requiring hasrowname
Add inner gridlines, see 1c,1d
Vertical and horizontal lines everywhere except the outside border
Use style innergrid
Box the table with a thick frame line, see 1c,1f
Use style frame
Format the first row bold, see 1c,1e
Use style boldcolname
Format the first column bold, see 1c,1f
Left aligns the first column
Use style boldrowname requiring hasrowname
Demos with essential styles tex, text cells, and caption from > Essential styles as default:
Complete source code for 1a−1f
Make booktabs compatible with tabularray
Replace hlines and frame styles
Change heavy rule width, see modified 1a′,1b′,1c′
Create borders without tabularray
Use tabularray if you somehow can. If you have to use another tabular environment, it is still possible to create styles for border lines. To set the rule width of line, booktabs is used.
Problem: Booktabs creates gaps within vertical lines and next to colored rows:
Workaround: Remove booktabs’ vertical spacing
Remove vertical separation from \toprule, \midrule, \bottomrule
Create custom width vertical lines with !{\vrule width .08em} in the column type
Ugly example: Remove booktabs vertical space for conflicts
boldcolname* or boldrowname* must be applied before any line styles