---
name: "pandoc-pdf-engine-xelatex"
description: "Publish high-quality PDF books and whitepapers from Markdown using Pandoc and XeLaTeX."
metadata:
  author: "John MacFarlane"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "compile markdown to pdf pandoc xelatex"
  - "enable cjk unicode fonts pandoc"
  - "configure pandoc pdf template"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Pandoc XeLaTeX Engine Publisher

Configures Pandoc with XeLaTeX PDF engine, enabling full Unicode CJK font support, microtype typography, custom LaTeX preambles, and syntax highlighted code listings.

## When to Invoke
Invoke this skill whenever you need to:
- compile markdown to pdf pandoc xelatex
- enable cjk unicode fonts pandoc
- configure pandoc pdf template

## Execution SOP & Rules
1. Specify --pdf-engine=xelatex to support OpenType and TrueType system fonts.
2. Set main and monospace fonts using -V mainfont="Inter" and -V monofont="JetBrains Mono".
3. Include custom LaTeX header configurations with -H preamble.tex.
4. Ensure all source code blocks declare appropriate language identifiers for syntax coloring.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
