Install
$ agentstack add skill-phanghonghao-thu-awesome-skills-md2tex ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
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.
- Author: phanghonghao
- Source: phanghonghao/THU-Awesome-Skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.