AgentStack
SKILL verified MIT Self-run

Md2tex

skill-phanghonghao-thu-awesome-skills-md2tex · by phanghonghao

>-

No reviews yet
0 installs
17 views
0.0% view→install

Install

$ agentstack add skill-phanghonghao-thu-awesome-skills-md2tex

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Md2tex? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

md2tex — Markdown → LaTeX + PDF

将 Markdown 文件转换为 LaTeX 文档 (.tex),并用 MiKTeX 的 XeLaTeX 编译为 PDF。

When to Use

  • User says "md2tex", "md转tex", "转latex", "生成pdf", "转pdf"
  • User has a Markdown file and wants LaTeX source + compiled PDF
  • User needs a document/report (NOT presentation — use latex-beamer for that)

How to Use

# Convert MD → TEX + PDF
python ~/.claude/skills/md2tex/md2tex.py ""

# Specify output directory
python ~/.claude/skills/md2tex/md2tex.py "" --output-dir 

# Only generate .tex, skip PDF compilation
python ~/.claude/skills/md2tex/md2tex.py "" --no-compile

Features

| Feature | Support | |---------|---------| | Chinese text | ctex package (XeLaTeX) | | Headings (#, ##, ###) | \section, \subsection, \subsubsection | | Tables | tabular with \hline | | Images | \includegraphics with figure | | Math (inline $...$, display $$...$$) | amsmath | | Code blocks (```) | listings package | | Bold/Italic | \textbf, \textit | | Horizontal rule (---) | \rule |

Output

For input report.md:

  • report.tex — LaTeX source (fully compilable with XeLaTeX)
  • report.pdf — Compiled PDF

Dependencies

  • MiKTeX with XeLaTeX: C:\MiKTeX\miktex\bin\x64\xelatex.exe
  • Python 3 (no extra packages needed for basic usage)

Differences from latex-beamer

| | md2tex | latex-beamer | |--|--------|-------------| | Document type | Article/Report | Presentation slides | | Class | \documentclass{article} | \documentclass{beamer} | | Output | .tex + .pdf | .tex + .pdf + .pptx | | Complexity | Simple conversion | Full sync + incremental updates |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.