generate-pdf

Convert Markdown files to PDF documents using pandoc and XeLaTeX.

Updated Sep 5, 2026
One-click install
npx skills add https://github.com/SillyHippy/zo-skills --skill generate-pdf-sillyhippy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: generate-pdf
Source: https://github.com/SillyHippy/zo-skills/tree/main/skills/zo-generate-pdf
Command: npx skills add https://github.com/SillyHippy/zo-skills --skill generate-pdf-sillyhippy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, texlive-latex-base, texlive-fonts-recommended, texlive-xetex.

What problem does it solve? Turning Markdown notes, reports, or documentation into shareable PDF files usually requires manual tooling setup and formatting decisions. This Skill handles the pandoc and LaTeX installation and produces a consistently formatted PDF in one step. ## Core Features & Use Cases - Markdown to PDF Conversion: Converts any Markdown file into a PDF using pandoc with the XeLaTeX engine. - Professional Formatting: Applies 1-inch margins, 11pt fonts, blue hyperlinks, and tango syntax highlighting for code blocks. - Use Case: You drafted a project report in Markdown and need to send a polished PDF to stakeholders. Provide the file path and receive a formatted PDF ready for distribution. ## Quick Start Convert my Markdown file report.md into a professionally formatted PDF and tell me where it is saved.

Frequently Asked Questions about generate-pdf

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

FAQPage Schema
How do I convert a Markdown file to PDF?▼

Use pandoc with a PDF engine such as XeLaTeX: run pandoc input.md --pdf-engine=xelatex -o output.pdf. This Skill automates the command with preset margins, font size, link colors, and code highlighting.

What tools convert Markdown to PDF with formatting?▼

Pandoc combined with a LaTeX engine like XeLaTeX is a standard approach for Markdown to PDF conversion. It supports styling variables for geometry, fonts, colors, and syntax highlighting themes such as tango.

Does pandoc PDF conversion require LaTeX installed?▼

Yes, pandoc needs a PDF engine, and this workflow uses XeLaTeX from the texlive packages. The Skill installs pandoc, texlive-latex-base, texlive-fonts-recommended, and texlive-xetex via apt-get before converting.

Why does pandoc PDF generation fail on my system?▼

Failures usually occur when LaTeX packages are missing or the XeLaTeX engine is not installed. Installing texlive-xetex and texlive-fonts-recommended resolves most engine and font-related errors.

Can I customize margins and fonts in pandoc PDF output?▼

Yes, pandoc accepts variables such as geometry:margin=1in and fontsize=11pt to control layout. This Skill applies those defaults but the same flags can be adjusted for custom styling.