Skip to content
glebis avatar

Pdf Generation

Converts markdown to styled PDFs with Pandoc and XeLaTeX, with mobile and desktop page layouts.

CCM score
65 of 100
skills.sh installs
495
GitHub stars
416
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers markdown-to-PDF generation with Eisvogel-style titles, table of contents, and English or Russian typography using EB Garamond
  • Includes scripts/generate_pdf.py with -t theme flags (white-paper, marketing, research, technical), --russian, and --mobile, plus scripts/fix_markdown.py for list spacing
  • Defaults to a 6x9 inch mobile layout for Telegram bot output, with A4 desktop layout for print or other contexts
  • Designed for white papers, research documents, marketing materials, and technical documentation that need consistent typography

Install

$ npx -y skills add glebis/claude-skills --skill pdf-generation -y

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

Files

PDF Generation

Overview

Generate professional PDFs from markdown files using Pandoc with Eisvogel template styling. Supports English and Russian documents with customizable themes, table of contents, and professional typography including EB Garamond font for Russian text.

Quick Start

Basic commands:

# Desktop/Print PDF (A4 format)
pandoc doc.md -o doc.pdf --pdf-engine=xelatex --toc --toc-depth=2 -V geometry:margin=2.5cm -V fontsize=11pt -V documentclass=article

# Mobile-friendly PDF (6x9 phone screen optimized)
pandoc doc.md -o doc-mobile.pdf --pdf-engine=xelatex --toc --toc-depth=2 -V geometry:paperwidth=6in -V geometry:paperheight=9in -V geometry:margin=0.5in -V fontsize=10pt -V linestretch=1.2

# Russian PDF with EB Garamond
pandoc doc-ru.md -o doc.pdf --pdf-engine=xelatex --toc --toc-depth=2 -V geometry:margin=2.5cm -V fontsize=11pt -V documentclass=article -V mainfont="EB Garamond"

# Russian Mobile PDF
pandoc doc-ru.md -o doc-mobile.pdf --pdf-engine=xelatex --toc --toc-depth=2 -V geometry:paperwidth=6in -V geometry:paperheight=9in -V geometry:margin=0.5in -V fontsize=10pt -V linestretch=1.2 -V mainfont="EB Garamond"

Document Theme Colors

Details

Repository
github.com/glebis/claude-skills
Categories
Office Files & Slides, Writing & Content
First seen
Jun 3, 2026

Questions

What does the pdf-generation skill do?

The pdf-generation skill converts markdown files to professional PDFs using Pandoc with the Eisvogel template and EB Garamond fonts. It supports English and Russian documents, with color-coded themes, a table of contents, and an optional 6x9 mobile layout or A4 print layout.

How do I install the pdf-generation skill?

Run npx -y skills add glebis/claude-skills --skill pdf-generation -y in a project to install it. Once installed, the agent can turn markdown into styled PDFs such as white papers, research documents and technical documentation.

What does pdf-generation need to run?

The skill relies on Pandoc and a LaTeX install with the xelatex engine, which the SKILL.md troubleshooting notes install with brew install pandoc and brew install --cask mactex. Russian documents also use the EB Garamond font.

Where does pdf-generation sit in the Office Files & Slides category?

It is in the Office Files & Slides category, alongside slideshow and several lark skills. Its own focus is markdown to PDF conversion with professional typography and a phone-friendly layout option.

More from glebis/claude-skills

All 22

Similar to Pdf Generation

More Office Files & Slides