AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Compile Tex

skill-koppor-claude-tex-skills-compile-tex · by koppor

>-

No reviews yet
0 installs
26 views
0.0% view→install

Install

$ agentstack add skill-koppor-claude-tex-skills-compile-tex

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-koppor-claude-tex-skills-compile-tex)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Compile Tex? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Compile TeX documents with the texlive/texlive Docker image

Build LaTeX, plain TeX, and ConTeXt documents to PDF using the Island of TeX texlive/texlive image — no host TeX Live install. This file collects the bits a general-purpose agent (or human) tends to get wrong without documentation; ordinary pdflatex foo.tex–level usage is taken for granted.

Image-specific facts

  • Working directory: /workdir. Mount the project source there

(-v "${PWD}:/workdir"); do not invent /data, /tex, or similar.

  • Default user: root. The unprivileged texlive user has shipped

since 2025-02 — use --user texlive (or -u "$(id -u):$(id -g)") on Linux hosts to avoid root-owned output files. Unnecessary on macOS/Windows.

  • latest tag is rebuilt weekly. Pass --pull=always to docker run

so the local cache does not go stale. Omit for historic and dated tags (those change rarely).

  • Schemes: minimal, basic, small, medium, full (default for

latest), and context. Tag form: latest-, e.g. latest-medium. Smaller schemes pull faster but ship fewer CTAN packages and may omit latexmk, arara, or context.

  • Historic tags: TLYYYY-historic, e.g. TL2024-historic. Rebuilt

monthly for OS updates only; TeX Live contents are frozen.

  • -doc and -src flavors add documentation and source files for

already-installed packages. They do not add more packages. If a package is missing, switch to a larger scheme or run tlmgr install (plus tlmgr path add for new binaries on non-full schemes).

Engine choice

Default to LuaLaTeX (lualatex) for new documents: native UTF-8, OpenType / system fonts via fontspec, embedded Lua, active upstream development. For plain TeX, the equivalent default is luatex.

Pick a different engine only with a concrete reason:

  • pdflatex / pdftex — legacy documents tied to the classic 8-bit

toolchain, or packages that only work there.

  • latex / tex — DVI output specifically (e.g. dvips workflows).

ConTeXt sources (\starttext, .mkiv/.mkxl) → context.

Magic comments are honored by editors and respected by latexmk with the matching configuration: % !TEX program=lualatex, % !TEX root=main.tex.

Build tools

The full scheme (default for latest) ships every tool below. Smaller schemes drop the heavier ones — pick a tag at least at the listed minimum scheme, or run tlmgr install inside the container.

| Tool | Use when | Min scheme | | --- | --- | --- | | lualatex foo.tex (or pdflatex, latex) | LaTeX, single-pass, no bibliography/index. | basic | | luatex foo.tex (or pdftex, tex) | Plain TeX, single-pass. | basic | | latexmk -lualatex foo.tex (or -pdf) | Multi-pass; auto-runs Biber/BibTeX/makeindex; honors latexmkrc. | small | | context foo.tex | ConTeXt sources. | medium (or latest-context) | | arara foo.tex | Source declares its build steps as % arara: … directives. | medium |

arara is part of the Island of TeX. The source declares the pipeline as magic comments:

% arara: lualatex
% arara: biber
% arara: lualatex
% arara: lualatex

When such directives (or an .araraconfig.yaml) exist, prefer arara — the source documents its own build.

Run

Mount the project at /workdir; use --pull=always for latest:

docker run --rm --pull=always -v "${PWD}:/workdir" texlive/texlive:latest \
  latexmk -lualatex -interaction=nonstopmode -halt-on-error foo.tex

PowerShell:

docker run --rm --pull=always -v "${PWD}:/workdir" texlive/texlive:latest `
  latexmk -lualatex -interaction=nonstopmode -halt-on-error foo.tex

Swap latexmk -lualatex foo.tex for any row in the Build tools table (lualatex foo.tex, arara foo.tex, context foo.tex, …).

File ownership on Linux

Run as the caller's UID/GID:

docker run --rm --pull=always -u "$(id -u):$(id -g)" -v "${PWD}:/workdir" \
  texlive/texlive:latest latexmk -lualatex foo.tex

…or use the unprivileged texlive user shipped in the image:

docker run --rm --pull=always --user texlive -v "${PWD}:/workdir" \
  texlive/texlive:latest latexmk -lualatex foo.tex

Unnecessary on macOS and Windows Docker Desktop.

Error reporting

Extract the actual error from foo.log: search for lines starting with ! together with the l. line reference. Show that; do not paste the full log.

Housekeeping

  • latexmk -c foo.tex — remove auxiliary files, keep the PDF.
  • latexmk -C foo.tex — remove the PDF too.
  • context --purge foo.tex — ConTeXt equivalent.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.