Create a simple table with borders
- Visually clarify table boundaries: Thick horizontal lines 1a; Thick frame 1c
- Visually clarify column titles and row titles: Thin border line 1a,1b; Left-aligned row title 1b,1c; Bold font 1c
- Apply border pattern: Inner gridlines 1c
- See source examples: Create a simple table with borders
- Center
- Hlines
- Grid
- Environments
- Colors
- Dashed line every 5th row
Key Managment
Key Management - PGF/TikZ Manual
- full key (similar to absolute path): starts with a
/
slash like /pgf/table/a
- partial key (similar to relative path): doesn’t start with a
/
slash like a
- handler (like hidden files): start with a
.
dot like .code
Handlers
- change directory
.cd
like \pgfkeys{/pgf/table/.cd, a=}
- quote link key (similar to soft link)
- use a macros value
.expand once=
.expand twice
.expanded
- calculate
.evaluated
- pass on
/.forward to
Debug
- show value
.show value
- show code
.show code
- execute as key’s code
/utils/exec=⟨code⟩
Set key
Get key
How
- pgf keys for pgfplotstable styles
- tabulararray for better spacing
- tabularray interface 1 for pgf code injection
- no bookstabs because bad borders
Inspiration
Syntax
Examples
Code in table
Create a simple table
Create a center aligned table with horizontal lines around the header and at the end of the table
Generate a table from a csv-spreadsheet (comma separated values)
Generate a table from a csv file and color every other row
Add a table caption and a label for cross references
Use german number seperator 3,1416 and align at exponent in scientific representation ⋅10n
Allow table to split across multiple pages
Use german number seperator 3,1416 and align at exponent in scientific representation ⋅10n
Allow table to split across multiple pages
Hlines like bookstabs
Vlines and hlines
Shade every second row
\pgfplotstabletypeset{
$z$ & 0 & 4 & 12 \\
$p_Z(z)$ & $p_X(0) = \dfrac{1}{6}$ & $p_X(-4) + p_X(4) = \dfrac{1}{2}$ & $p_X(12) = \dfrac{1}{3}$ \\
}
Add custom styling
- add overleaf style to replace default middle column type to be still use Overleaf’s visual table editor
Styling setup
Manually add the file yetenol-styles.sty
Example files
Add a comma-seperated spreadsheet to resources/data.csv
Longtblr
Alternatives