Export & PDF
Basalt includes built-in document export capabilities to generate publication-ready PDF files or send notes directly to your printer.
Single Renderer Snapshot (ADR-031)
In traditional editors, PDF export often uses a separate rendering pipeline from the live editor, resulting in broken margins, missing diagram fonts, or misaligned math equations.
Basalt exports a direct snapshot of Reading Mode:
- Math: KaTeX formulas render with vector clarity.
- Diagrams: Mermaid sequence, flowchart, and class diagrams render at native resolution.
- Code: Syntax-highlighted code blocks maintain theme token styling.
- Embeds: Internal note embeds and local vault images are fully resolved.
- Callouts & Tables: Custom styling and borders are preserved exactly as seen on screen.
Exporting to PDF
- Open the note you wish to export.
- Open the command palette (
Ctrl+P/Cmd+P) and selectExport: Export note to PDF(or right-click the note tab and select Export to PDF). - Choose your layout preferences:
- Page Size: A4, US Letter, Legal.
- Orientation: Portrait or Landscape.
- Margins: Default, Narrow, or Custom.
- Include Frontmatter: Toggle whether YAML metadata headers appear at the top.
- Page Numbers: Add standard page footers (
Page X of Y).
- Click Export to select the target file path.
Print Stylesheet (@media print)
Basalt uses clean print stylesheets designed for ink efficiency:
- Background colors default to clean white, while preserving typography hierarchy and table borders.
- Page breaks avoid splitting inside headings, code blocks, or image figures (
break-inside: avoid).