skills/latex-compiler/SKILL.md
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.
npx skillsauth add prismer-ai/prismer latex-compilerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Compile LaTeX documents to PDF directly from the workspace. Supports multiple engines, bibliography processing, and starter templates.
This skill wraps the container's LaTeX server (port 8080) which provides pdflatex, xelatex, and lualatex compilation. It supports bibliography processing via biber, multi-pass compilation for cross-references, and includes starter templates for common document types.
latex_templates to see available templates, then latex_get_template to get starter contentlatex_compile to generate the PDF (saved in container). If compilation fails, check the errors field in the response for line numbers and fix LaTeX syntax issues before recompilinglatex_preview to get an inline base64 PDF for displayCompile LaTeX source to PDF. The PDF is saved inside the container.
Parameters:
content (string, required): Full LaTeX source codefilename (string, optional): Output filename stem (default: document)engine (string, optional): pdflatex | xelatex | lualatex (default: pdflatex)bibliography (string, optional): BibTeX/BibLaTeX content (triggers biber)runs (number, optional): Compilation passes (default: 2 for cross-references)Returns: { success, pdf_path, log, errors, warnings, compile_id }
Example:
{ "content": "\\documentclass{article}\\begin{document}Hello\\end{document}", "engine": "pdflatex" }
Compile LaTeX source and return the PDF as base64 for inline preview.
Parameters:
content (string, required): Full LaTeX source codefilename (string, optional): Output filename stem (default: document)engine (string, optional): pdflatex | xelatex | lualatex (default: pdflatex)bibliography (string, optional): BibTeX/BibLaTeX content (triggers biber)Returns: { success, pdf_base64, pdf_path, log, errors, warnings, compile_id }
Example:
{ "content": "\\documentclass{article}\\begin{document}Hello\\end{document}" }
List available LaTeX templates and supported engines.
Parameters: None
Returns: { templates: string[], engines: string[] }
Get the LaTeX source of a starter template.
Parameters:
name (string, required): Template name — article, article-zh, beamer, ieeeReturns: { name, content }
Example:
{ "name": "ieee" }
article-zh) require xelatex or lualatex enginebibliography is provided, biber runs automatically between passes/home/user/output/reports/ inside the containertools
Core academic workspace tools: LaTeX compilation, Jupyter execution, PDF loading, UI control, content updates, and arXiv paper conversion. Use when the user asks to compile LaTeX, run Python code, load PDFs, display data, or control workspace editors.
data-ai
Browse trending papers, search by keyword, and get paper details from Hugging Face Papers. Use when the user wants to find ML research, asks about recent AI papers, trending models, or mentions Hugging Face Papers.
testing
Verify proofs, check theorem correctness, and solve satisfiability problems using Lean 4, Coq, and Z3 SMT solver. Use when the user asks to prove theorems, verify mathematical proofs, check logical satisfiability, or work with proof assistants.
research
Read and analyze arXiv papers by fetching LaTeX source, listing sections, or extracting abstracts. Use when the user mentions arXiv, research papers, preprints, paper IDs like 2301.xxxxx, or wants to read academic publications.