Agent Skills
› Prismer-AI/Prismer
› latex-compiler
latex-compiler
GitHub用于将LaTeX文档编译为PDF,支持多种引擎、参考文献处理及模板生成。适用于需要构建学术文章或排版文档的场景。
Trigger Scenarios
编译 .tex 文件
从 LaTeX 生成 PDF
构建 LaTeX 文档
排版学术论文
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


