Install
openclaw skills install @yangmanqi2104201431-ship-it/pdfmdConvert Markdown files to PDF using Pandoc and LaTeX with options for syntax highlighting, table of contents, and custom CSS.
openclaw skills install @yangmanqi2104201431-ship-it/pdfmdConvert Markdown files to beautifully typeset PDF using Pandoc + LaTeX.
winget install pandoc or https://pandoc.org/installing.htmlwinget install MiKTeX or https://miktex.org/downloadwinget install TeXLive for TeX LiveThe script auto-detects available engines in order: xelatex > lualatex > pdflatex.
Run the bundled script:
python scripts/md2pdf.py <input.md> [output.pdf]
Options:
--toc — Include table of contents--css <file> — Apply custom CSS stylesheet--highlight <style> — Code highlight style (default: tango)The script applies these defaults when using XeLaTeX/LuaLaTeX (the preferred engines):
.md file exists and is readablescripts/md2pdf.py with appropriate optionsFor options not covered by the script, call pandoc directly:
# Custom LaTeX template
pandoc input.md -o output.pdf --pdf-engine=xelatex --template=custom.tex
# Specific page size
pandoc input.md -o output.pdf --pdf-engine=xelatex -V geometry:margin=2cm -V papersize:a4
# Metadata
pandoc input.md -o output.pdf --pdf-engine=xelatex -V title="My Report" -V author="Author"