
Pandoc Pdf Generation
This is a battle-tested Pandoc workflow that turns markdown into professional PDFs through XeLaTeX. It includes a universal build script that auto-detects your files, a production-tuned LaTeX preamble for proper table spacing, and opinionated defaults like landscape orientation for technical docs. The standout detail is how strict it is about ASCII diagrams: it mandates using the graph-easy skill instead of manual ASCII art to avoid alignment disasters in PDFs. There's also a Lua filter to strip out HTML details blocks, which is clever for keeping diagram source code in your markdown without cluttering the printed output. The verification checklist and printing workflow show this was written by someone who's debugged plenty of broken PDFs at 11pm before a deadline.
- skills.sh installs
- 551
- GitHub stars
- 2
- last updated
- Aug 21, 2026
Install
$ npx -y skills add terrylica/cc-skills --skill pandoc-pdf-generation --agent claude-codeInstalls into .claude/skills of the current project.
Files
Pandoc PDF Generation
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Overview
Generate professional PDF documents from Markdown using Pandoc with the XeLaTeX engine. This skill covers automatic section numbering, table of contents, bibliography management, LaTeX customization, and common troubleshooting patterns learned through production use.
When to Use This Skill
Use this skill when:
- Converting Markdown to PDF with professional formatting requirements
- Needing automatic section numbering and table of contents
- Managing citations and bibliographies without manual duplication
- Controlling table formatting and page breaks in LaTeX output
- Building automated PDF generation workflows
Quick Start: Universal Build Script
Single Source of Truth Pattern
This skill provides production-proven assets in $(cc-plugin-root doc-tools)/skills/pandoc-pdf-generation/assets/:
Sponsors
Details
- Repository
- github.com/terrylica/cc-skills
- Category
- Office & Documents
- First seen
- Jun 3, 2026