pandoc-pdf-generation

Convert Markdown to PDF documents using Pandoc and XeLaTeX.

62|10|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/terrylica/cc-skills --skill pandoc-pdf-generation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pandoc-pdf-generation
Source: https://github.com/terrylica/cc-skills/tree/main/plugins/doc-tools/skills/pandoc-pdf-generation
Command: npx skills add https://github.com/terrylica/cc-skills --skill pandoc-pdf-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) and scripts (resource) components.

What problem does it solve?

Produces professional PDFs from Markdown using Pandoc with XeLaTeX, including ToC, numbering, and citations.

Core Features & Use Cases

  • Automatic ToC and section numbering for PDF output
  • Bibliography management and citation styles
  • Preflight checks and detail-oriented formatting options

Quick Start

pandoc input.md -o output.pdf --pdf-engine=xelatex --toc --number-sections

Frequently Asked Questions about pandoc-pdf-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown to PDF with automatic formatting like table of contents and section numbering?

Pandoc with XeLaTeX automates PDF generation from Markdown, applying table of contents, section numbering, and bibliography management in a single workflow. The Skill handles preflight validation of dependencies and LaTeX preamble integration to produce production-ready PDFs with professional formatting.

Can I manage citations and bibliographies when converting Markdown to PDF?

Yes. Pandoc processes bibliography data and applies citation styles during PDF generation. The Skill manages bibliography integration alongside Markdown conversion, supporting standard citation formats without manual LaTeX configuration.

What do I need installed to generate PDFs from Markdown with Pandoc?

Pandoc and XeLaTeX are required. The Skill includes preflight checks to verify both tools are available in your environment before processing, preventing build failures and ensuring compatibility.

How do I control PDF layout like page orientation, fonts, and code block formatting?

Pandoc accepts layout control options including orientation, font selection, and code/diagram handling. The Skill integrates LaTeX preamble configuration to apply these formatting preferences consistently across your generated PDF.

What's the difference between Pandoc and other Markdown-to-PDF tools?

Pandoc with XeLaTeX provides granular control over typography, citations, and structured numbering compared to simpler converters. This approach suits complex documents requiring professional formatting, bibliography management, and precise layout control.

Can I validate my Markdown and PDF output after generation?

The Skill includes post-build validation to confirm successful PDF creation and detect formatting issues. Combined with preflight checks, this ensures your Markdown input and output meet quality standards before delivery.