skills/67-econfin-workflow-toolkit/marp-export/SKILL.md
Export Marp slide markdown files to PDF (default), HTML, PPTX, or PNG. Handles theme loading, Chrome/Chromium detection for PDF export, and batch conversion. Trigger when user says "export slides", "convert marp to pdf", "marp export", "slides to pdf", "slides to html", "导出slides", "slides转pdf", "导出演示文稿".
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research marp-exportInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Export existing Marp markdown files to PDF (default), HTML, PPTX, or PNG.
# PDF (default) — requires Chrome/Chromium
npx @marp-team/marp-cli INPUT.md -o OUTPUT.pdf --theme-set ~/.claude/skills/marp-slides-creator/themes/ --allow-local-files --html
# HTML
npx @marp-team/marp-cli INPUT.md -o OUTPUT.html --theme-set ~/.claude/skills/marp-slides-creator/themes/ --html
# PPTX (editable, requires LibreOffice)
npx @marp-team/marp-cli INPUT.md -o OUTPUT.pptx --pptx-editable --theme-set ~/.claude/skills/marp-slides-creator/themes/ --allow-local-files
# PNG sequence
npx @marp-team/marp-cli INPUT.md --images png -o OUTPUT_DIR/ --theme-set ~/.claude/skills/marp-slides-creator/themes/
Find the Marp markdown file. It must contain marp: true in YAML frontmatter.
# Verify it's a Marp file
head -5 INPUT.md # should show "marp: true"
Themes are stored in the marp-slides-creator skill:
THEME_DIR="$HOME/.claude/skills/marp-slides-creator/themes/"
Always use --theme-set "$THEME_DIR/" in all export commands.
PDF and PPTX export require a Chrome/Chromium browser. Marp-cli auto-detects, but if it fails:
# macOS Chrome paths (check in order)
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
/Applications/Chromium.app/Contents/MacOS/Chromium --version
/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge --version
# Set CHROME_PATH if auto-detection fails
export CHROME_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
If no browser found, fall back to HTML export and inform the user.
Default format is PDF. User can specify otherwise.
Output naming convention:
presentation.md → presentation.pdfPDF export:
npx @marp-team/marp-cli INPUT.md \
-o OUTPUT.pdf \
--theme-set ~/.claude/skills/marp-slides-creator/themes/ \
--allow-local-files \
--html
HTML export:
npx @marp-team/marp-cli INPUT.md \
-o OUTPUT.html \
--theme-set ~/.claude/skills/marp-slides-creator/themes/ \
--html
Both PDF + HTML:
# Run sequentially
npx @marp-team/marp-cli INPUT.md -o OUTPUT.pdf --theme-set ~/.claude/skills/marp-slides-creator/themes/ --allow-local-files --html
npx @marp-team/marp-cli INPUT.md -o OUTPUT.html --theme-set ~/.claude/skills/marp-slides-creator/themes/ --html
# Check output exists and show file size
ls -lh OUTPUT.pdf OUTPUT.html 2>/dev/null
Report to user:
| Flag | Purpose | When to use |
|------|---------|-------------|
| --theme-set DIR/ | Load custom themes | When custom .css themes exist |
| --allow-local-files | Allow local images | PDF/PPTX with local assets |
| --html | Enable HTML tags in markdown | Always recommended |
| --pptx-editable | Editable PPTX output | PPTX format (needs LibreOffice) |
| --images png | Export as PNG sequence | PNG format |
| --pdf-notes | Include speaker notes in PDF | When notes are present |
| --pdf-outlines | Add bookmarks to PDF | For long presentations |
| Error | Cause | Fix |
|-------|-------|-----|
| Chrome/Chromium not found | No browser for PDF | Set CHROME_PATH or fall back to HTML |
| theme not found | Missing theme CSS | Check --theme-set path, use built-in theme |
| Could not find an input | Bad file path | Verify path and marp: true frontmatter |
| Blank/empty PDF | HTML tags without --html | Add --html flag |
# Export current project's slides to PDF
npx @marp-team/marp-cli slides_project/05_final/presentation.md \
-o slides_project/05_final/slides.pdf \
--theme-set ~/.claude/skills/marp-slides-creator/themes/ \
--allow-local-files --html
# Quick HTML export (no Chrome needed)
npx @marp-team/marp-cli my-talk.md -o my-talk.html --html
# Batch export all .md files in a directory
for f in slides/*.md; do
npx @marp-team/marp-cli "$f" -o "${f%.md}.pdf" --allow-local-files --html
done
tools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.