Agent Skills
› Prismer-AI/Prismer
› latex-compiler
latex-compiler
GitHubLaTeX文档编译工具,支持pdflatex等引擎,提供模板选择、源码编辑、PDF生成及预览功能,适用于学术论文排版和.tex文件构建。
Trigger Scenarios
用户请求编译.tex文件
用户要求将LaTeX内容转为PDF
用户需要排版学术论文
Install
npx skills add Prismer-AI/Prismer --skill latex-compiler -g -y
SKILL.md
Frontmatter
{
"name": "latex-compiler",
"_source": "Canonical source at \/skills\/latex-compiler\/SKILL.md",
"description": "Compile LaTeX documents to PDF using pdflatex, xelatex, or lualatex with template support. Use when the user asks to compile .tex files, build a LaTeX document, generate PDF from LaTeX, or typeset an academic paper."
}
latex-compiler
Compile LaTeX documents to PDF directly from the workspace. Supports multiple engines, bibliography processing, and starter templates.
Process
- Choose template — Use
latex_templatesto see available templates, thenlatex_get_templateto get starter content - Write LaTeX — Edit the source document
- Compile — Use
latex_compileto generate the PDF. If compilation fails, check theerrorsfield and fix syntax issues before recompiling - Preview — Use
latex_previewto get an inline base64 PDF for display
Tools
latex_compile— Compile LaTeX source to PDF. Params:content(required),filename,engine,bibliography,runslatex_preview— Compile and return PDF as base64. Params:content(required),filename,engine,bibliographylatex_templates— List available templates and engines. No params.latex_get_template— Get template source. Params:name(required:article,article-zh,beamer,ieee)
Example:
{ "content": "\\documentclass{article}\\begin{document}Hello\\end{document}", "engine": "pdflatex" }
See canonical skill for full tool documentation and parameter details.
Version History
- 2dbe71f Current 2026-08-20 10:21


