pdflisted
Install: claude install-skill magnusrodseth/dotfiles
# Markdown to PDF
Export markdown files as professional PDFs using pandoc, xelatex, and the eisvogel template.
## Prerequisites
- `pandoc` (3.0+): `brew install pandoc`
- LaTeX with xelatex: `brew install --cask basictex`
- LaTeX packages: `tlmgr --usermode install adjustbox babel-german background bidi collectbox csquotes everypage filehook footmisc footnotebackref framed fvextra letltxmacro ly1 mdframed mweights needspace pagecolor sourcecodepro sourcesanspro titling ucharcat ulem unicode-math upquote xecjk xurl zref`
- Eisvogel template: Download from https://github.com/Wandmalfarbe/pandoc-latex-template/releases and place `eisvogel.latex` in `~/.local/share/pandoc/templates/`
- Mermaid diagrams (optional): `npm install -g @mermaid-js/mermaid-cli`
## Quick Export
```bash
bash ~/.claude/skills/pdf/scripts/md-to-pdf.sh \
-o report.pdf \
-t "Report Title" \
-s "Subtitle" \
-a "Author Name" \
--toc \
input.md
```
### Script Flags
| Flag | Default | Description |
|------|---------|-------------|
| `-o, --output` | (required) | Output PDF path |
| `-t, --title` | "Untitled" | Document title |
| `-s, --subtitle` | "" | Subtitle |
| `-a, --author` | "" | Author name |
| `-d, --date` | today | Date (DD.MM.YYYY) |
| `--toc` | off | Include table of contents |
| `--highlight-style` | tango | Code syntax theme |
| `--title-color` | 1e293b (slate-800) | Title page background hex |
| `--text-color` | ffffff | Title page text hex |
| `--mainfont` | Helvetica Neue | Bod