Skip to content
terrylica avatar

Pandoc Pdf Generation

Markdown-to-PDF skill using Pandoc and XeLaTeX with a universal build script, landscape defaults, and print-ready checks.

CCM score
54 of 100
skills.sh installs
555
GitHub stars
5
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the Pandoc/XeLaTeX workflow with automatic section numbering, table of contents, and bibliography handling
  • Includes build-pdf.sh with --landscape, --portrait, --monospace, and --hide-details flags plus pre-flight and post-build checks
  • Enforces code blocks staying on one page and strips <details> blocks from PDF output via a Lua filter
  • Designed for documents with wide tables, ASCII diagrams, or citations that need consistent LaTeX formatting

Install

$ npx -y skills add terrylica/cc-skills --skill pandoc-pdf-generation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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/:

Details

Repository
github.com/terrylica/cc-skills
Categories
Office Files & Slides, Technical Documentation
First seen
Jun 3, 2026

More from terrylica/cc-skills

All 3

Similar to Pandoc Pdf Generation

More Office Files & Slides