← ClaudeAtlas

md-to-pdflisted

Convert a Markdown file into a beautifully typeset PDF via a pandoc → Typst pipeline. Ships with claude-white themes (warm white page, terracotta accents, serif typography). Trigger when the user says "turn this md into a pdf", "export X.md as pdf", "make X.md printable", or any request to produce a nicely formatted PDF from a Markdown file. Requires pandoc and typst installed. Fonts are bundled inside the skill directory — no system font installation needed.
WeAIClub/md-to-pdf · ★ 0 · Data & Documents · score 67
Install: claude install-skill WeAIClub/md-to-pdf
# md-to-pdf Convert Markdown into beautifully typeset PDFs. Use this skill whenever the user wants a polished PDF out of a Markdown source. ## Usage ```bash ./scripts/md_to_pdf.sh <input.md> <output.pdf> [theme] ``` Arguments: - `input.md`: path to the Markdown file (absolute or relative) - `output.pdf`: destination PDF path - `theme`: theme name, defaults to `claude-white`. Available: `claude-white` (recommended), `claude-white-bold` On success, the script prints `[OK] /absolute/path.pdf`. ## Architecture ``` md-to-pdf/ ├── SKILL.md # this file ├── scripts/ │ └── md_to_pdf.sh # main pipeline: pandoc → sed → typst compile ├── themes/ │ ├── claude-white/ # default theme (recommended) │ │ ├── DESIGN.md # design reference │ │ ├── README.md # theme notes (typography, color tokens) │ │ └── theme.typ # Typst template (show / set / color tokens) │ └── claude-white-bold/ # variant with stronger synthetic bold │ ├── DESIGN.md │ ├── README.md │ └── theme.typ └── fonts/ # bundled fonts loaded via typst --font-path ``` ### Pipeline 1. `pandoc input.md --to typst` → `body.typ` (Typst body fragment, no template) 2. `perl` replaces `columns: N,` with `columns: (1fr,)*N,` so Markdown tables span the page width 3. `cat theme.typ body.typ > run.typ` (**must concatenate, not `#include`** — `#include` isolates