terrylica avatar

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-code

Installs 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

More from terrylica/cc-skills

All 15
1zackkorman avatarpdf-helperzackkorman/skillspdf helper546skills.sh installs
2googleworkspace avatargws-resellergoogleworkspace/cliGoogle Workspace Reseller: Manage Workspace subscriptions.541skills.sh installs
3sickn33 avatarobsidian-clipper-template-creatorsickn33/antigravity-awesome-skillsobsidian clipper template creator534skills.sh installs
4jamditis avatarpdf-designjamditis/claude-skills-journalismDesign and edit professional PDF reports and proposals with local HTML/PDF generation, iterative previews, print layouts, brand systems, and opt-in uploads. Use533skills.sh installs
5sanjay3290 avatargmailsanjay3290/ai-skillsInteract with Gmail - search emails, read messages, send emails, create drafts, and manage labels. Use when user asks to: search email, read email, send email, 525skills.sh installs
6agricidaniel avatarobsidian-basesagricidaniel/claude-obsidianExplain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, d523skills.sh installs