pdf

Convert Markdown to PDF documents using Pandoc and Typst.

2|Updated Jun 2, 2024
One-click install
npx skills add https://github.com/magnusrodseth/dotfiles --skill pdf-magnusrodseth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/magnusrodseth/dotfiles/tree/main/.claude/skills/pdf
Command: npx skills add https://github.com/magnusrodseth/dotfiles --skill pdf-magnusrodseth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, typst, mmdc, basictex, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides an efficient way to convert Markdown files into professional-looking PDF documents, streamlining the documentation process and saving time.

Core Features & Use Cases

  • Markdown to PDF: Convert Markdown to PDF using Pandoc with Typst, supporting advanced features like tables and syntax highlighting.
  • Customization Options: Customize your output with title pages, subtitles, authors, and languages.
  • Mermaid Support: Supports embedded Mermaid diagrams for visualizing processes and data flows in PDFs.

Quick Start

Use the pdf skill with the command: ./md-to-pdf.sh -o output.pdf input.md

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I convert Markdown to PDF with custom title pages and authors?

You can convert Markdown to PDF using Pandoc with Typst, enabling advanced customization features such as title pages, subtitles, authors, and language selection for professional document export.

Does Pandoc support Mermaid diagram rendering when converting Markdown to PDF?

Yes, Mermaid diagram rendering is supported for Markdown to PDF conversion, allowing you to visualize processes and data flows directly within your exported PDF documents.

What's the best way to export Markdown syntax highlighting and tables into a PDF?

Using Pandoc with Typst is an effective way to convert Markdown to PDF, natively supporting advanced features like tables and syntax highlighting for high-quality document output.

Do I need to install Pandoc and Typst to generate a PDF from Markdown?

Yes, generating PDFs from Markdown requires installing Pandoc and Typst, along with dependencies like mmdc and basictex, to ensure proper document conversion and Mermaid diagram rendering.

Can I use this Markdown to PDF conversion approach for multi-language document export?

Yes, converting Markdown to PDF supports language selection, allowing you to generate customized PDF documents with subtitles and authors tailored for multi-language contexts.

Why does my Mermaid diagram break during Markdown to PDF conversion?

Markdown to PDF conversion relies on mmdc to render Mermaid diagrams; if the dependency is missing or misconfigured, the visual data flow elements in your PDF will fail to render properly.