← 返回
未分类 中文

my skill

Convert Markdown files to PDF using Pandoc and LaTeX with options for syntax highlighting, table of contents, and custom CSS.
使用Pandoc和LaTeX将Markdown文件转为PDF,支持语法高亮、目录和自定义CSS选项。
yangmanqi2104201431-ship-it
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 400
下载
💾 0
安装
1
版本
#latest

概述

---

name: md2pdf

description: Convert Markdown files to PDF using Pandoc. Use when the user wants to export, convert, or generate a PDF from a .md file. Triggers: "convert md to pdf", "export pdf", "markdown to pdf", "generate pdf from markdown", "md to pdf", "导出PDF", "转成PDF", "markdown转pdf", "生成PDF".


md2pdf

Convert Markdown files to beautifully typeset PDF using Pandoc + LaTeX.

Prerequisites

  • pandocwinget install pandoc or
  • LaTeX engine — XeLaTeX recommended (bundled with TeX Live or MiKTeX). Install via:
  • winget install MiKTeX or
  • Or winget install TeXLive for TeX Live

The script auto-detects available engines in order: xelatex > lualatex > pdflatex.

Quick Start

Run the bundled script:

python scripts/md2pdf.py <input.md> [output.pdf]

Options:

  • --toc — Include table of contents
  • --css — Apply custom CSS stylesheet
  • --highlight