latex-compiler
latex-compiler
Compile LaTeX documents to PDF. Accepts LaTeX source as content strings and returns compiled PDF via base64 or container-internal path.
Prerequisites
This skill requires a LaTeX compilation server listening on localhost:8080. The Prismer project provides one as part of its container setup.
Source & review: The container source is at github.com/Prismer-AI/Prismer/tree/main/docker/base (Apache-2.0). Before running, review the Dockerfile and docker-compose.dev.yml to verify:
- No host filesystem volumes are mounted (the dev compose only maps ports)
- The container runs as a non-root user
- Only port 16888 (gateway) is exposed to the host
If the container is not running, all tool calls will fail with a connection error. The skill does not fall back to other local services or retry on different ports.
Description
This skill sends LaTeX source strings via HTTP POST to localhost:8080. It supports pdflatex, xelatex, and lualatex engines, bibliography processing via biber, multi-pass compilation for cross-references, and starter templates.