Spreadsheet Import

MarkCharm Team

September 8, 2026

1 Importing Spreadsheet Data

MarkCharm can import data directly from Excel (.xlsx) and OpenDocument (.ods) spreadsheets using the \spreadsheet command inside table blocks.

1.1 How It Works

The syntax for importing a spreadsheet region is:

1.2 Supported Features

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

1.3 Parameters

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.

1.4 Live Example

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.

Table 1.3. Quarterly Sales Data imported from Excel
Product Q1 Q2 Total
Widget A 100 150 250.0
Widget B 200 250 450.0
Widget C 300 350 650.0