latex-doc

Convert Markdown content into PDFs with LaTeX and Mermaid diagrams.

5|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/JansenAnalytics/claudex --skill latex-doc-jansenanalytics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: latex-doc
Source: https://github.com/JansenAnalytics/claudex/tree/main/skills/latex-doc
Command: npx skills add https://github.com/JansenAnalytics/claudex --skill latex-doc-jansenanalytics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, xelatex, biber, node, playwright-core, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Converts Markdown documents into fully formatted PDFs via LaTeX, enabling scalable styling, math, tables, citations, and embedded Mermaid diagrams.

Core Features & Use Cases

  • Markdown-to-PDF pipeline: Markdown + YAML frontmatter is transformed through Pandoc, LaTeX templates, and XeLaTeX to a final PDF.
  • Mermaid diagrams and math support: Fenced Mermaid blocks render to images and mathematical notation renders with LaTeX.
  • Template-driven styling and bibliographies: Choose templates (whitepaper, master-thesis, minimal) and include citations via BibTeX/Biber for professional reports.

Quick Start

Run the build script on your Markdown file to generate a formatted PDF using a selected template.

Frequently Asked Questions about latex-doc

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

FAQPage Schema
How do I convert Markdown to PDF with LaTeX typesetting and Mermaid diagrams?

To convert Markdown to PDF, this workflow processes content through Pandoc and XeLaTeX templates while rendering fenced Mermaid blocks to images, producing a formatted PDF with math, tables, citations, and embedded diagrams.

What is the best way to generate a professional whitepaper or thesis from Markdown?

The best way to generate a whitepaper or thesis from Markdown is using template-driven styling with Pandoc and XeLaTeX, selecting specific templates like whitepaper or master-thesis, and handling citations via BibTeX and Biber for professional formatting.

Do I need Pandoc and XeLaTeX installed to turn Markdown into a formatted PDF?

Yes, you need Pandoc and XeLaTeX installed to turn Markdown into a formatted PDF. The pipeline also requires Node and Playwright-core to render Mermaid diagrams, plus Biber for processing bibliography citations.

Can I include BibTeX citations and math notation when converting Markdown via LaTeX?

Yes, you can include BibTeX citations and math notation when converting Markdown via LaTeX. The workflow uses Biber for bibliography handling and XeLaTeX to render mathematical notation directly within the final PDF output.

Does Pandoc support embedded Mermaid diagrams when building PDF documents?

Pandoc supports embedded Mermaid diagrams when building PDF documents by using a dedicated Mermaid renderer powered by Node and Playwright-core. Fenced Mermaid blocks in Markdown are automatically converted to images for the final PDF.

Why are my Mermaid diagrams not rendering in the final PDF output?

Mermaid diagrams may not render in the final PDF output if the Node and Playwright-core dependencies are missing. The pipeline requires these specific tools to execute the diagram rendering step before XeLaTeX assembles the PDF.