September 8, 2026
MarkCharm can import data directly from Excel (.xlsx) and OpenDocument (.ods) spreadsheets using the \spreadsheet command inside table blocks.
The syntax for importing a spreadsheet region is:
| Feature | Excel (.xlsx) | ODS (.ods) |
|---|---|---|
| Full sheet import | Yes | Yes |
| Named ranges | Yes | Yes |
| Cell references | Yes | Yes |
| Formula evaluation | Yes | Yes |
| Auto-detect headers | Yes | Yes |
| Parameter | Description |
|---|---|
file |
Path to the spreadsheet file |
region |
Cell range (e.g., A1:D10) or named range |
header |
true to treat first row as header |
sheet |
Sheet name (default: first sheet) |
This enables live data pipelines: update the spreadsheet, recompile the document, and the tables update automatically.
Below is a live table generated directly from the data.xlsx file that sits in this directory. It evaluates the SUM formulas dynamically during compilation.
| Product | Q1 | Q2 | Total |
|---|---|---|---|
| Widget A | 100 | 150 | 250.0 |
| Widget B | 200 | 250 | 450.0 |
| Widget C | 300 | 350 | 650.0 |