कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

md2pdf-xelatex

huaruoji द्वारा

DevOps & Cloud
386clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Convert Markdown files to PDF with full LaTeX math formula rendering and CJK (Chinese/Japanese/Korean) support.

विवरण

यह स्किल क्या करती है

Converts Markdown files to PDF using Pandoc and XeLaTeX. Handles LaTeX math formulas ($...$ and $$...$$), CJK text (Chinese, Japanese, Korean), code blocks, and tables. Auto-detects CJK content and selects appropriate fonts.

Unlike browser-based Markdown-to-PDF tools, XeLaTeX renders LaTeX math natively and handles CJK fonts without extra configuration or plugins.

इसे कब इस्तेमाल करें

  • Exporting a research report with equations to PDF
  • Converting Chinese-language notes to a printable document
  • Generating a PDF from a README with code blocks and tables
  • Rendering a math-heavy homework document from Markdown
  • Producing a formatted PDF from mixed CJK and Latin text

उदाहरण वर्कफ़्लो

इनपुट

User asks: convert my notes.md file (containing Chinese text and math formulas) to a PDF

एजेंट
  1. 1

    Run md2pdf.sh with notes.md as input

  2. 2

    Script scans content and detects CJK characters

  3. 3

    Script selects an available CJK font (e.g., Noto Sans CJK SC)

  4. 4

    Pandoc invokes XeLaTeX to render math and CJK text

  5. 5

    PDF is written to the specified output path

आउटपुट

A formatted PDF with rendered LaTeX equations, CJK text, syntax-highlighted code blocks, and a table of contents

आवश्यकताएँ

  • pandoc system package
  • texlive-xetex system package
  • texlive-fonts-recommended system package
  • texlive-fonts-extra system package
  • texlive-latex-extra system package
  • texlive-lang-chinese system package

इंस्टॉलेशन

clawhub install huaruoji/md2pdf-xelatex

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक