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.