# Latex Compile

> Batch-compile every .tex file in a directory tree into .pdf, with caching. Use when the user wants to compile LaTeX files — for example "compile all slides in exp/ml/", "build the PDFs for this chapter", or after editing multiple .tex files.

- **Type:** Skill
- **Install:** `agentstack add skill-darl-genai-instructional-agents-skills-latex-compile`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [DaRL-GenAI](https://agentstack.voostack.com/s/darl-genai)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [DaRL-GenAI](https://github.com/DaRL-GenAI)
- **Source:** https://github.com/DaRL-GenAI/instructional_agents-skills/tree/main/skills/latex-compile
- **Website:** https://darl-genai.github.io/instructional_agents_homepage/

## Install

```sh
agentstack add skill-darl-genai-instructional-agents-skills-latex-compile
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# LaTeX Batch Compile

Recursively finds `.tex` files under a directory and compiles each to `.pdf`
using `pdflatex` (or `xelatex`), with a per-file cache directory so that
auxiliary files don't pollute the source tree.

## When to invoke this skill

- User asks to "compile all `.tex` in folder X"
- User has modified LaTeX files and wants fresh PDFs
- Post-processing after `course-generate` (it emits `.tex`, not `.pdf`)

## Prerequisites

A LaTeX distribution on PATH. Check:

```bash
which pdflatex || which xelatex
```

If missing, point the user to [TeX Live](https://tug.org/texlive/) or MacTeX.

## Usage

```bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/latex-compile/scripts/compile.py" \
   [--also-pptx]
```

### Arguments

| Arg | Required | Description |
|---|---|---|
| `` | yes | Root directory to scan recursively |
| `--also-pptx` | no | Also convert each `.tex` to `.pptx` after PDF compilation |

### Engine

The underlying compiler uses `pdflatex` (hardcoded in `src.compile.LaTeXCompiler`).
For xelatex / lualatex support, open an issue upstream.

### Example

```bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/latex-compile/scripts/compile.py" \
  exp/reinforcement_learning --also-pptx
```

## Output

- `*.pdf` next to each `*.tex`
- Aux files (`.aux`, `.log`, `.toc`, …) stored in `/.cache//`

## Citation

This skill wraps `src.compile` from [Instructional Agents (arXiv:2508.19611)](https://arxiv.org/abs/2508.19611).

## Source & license

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

- **Author:** [DaRL-GenAI](https://github.com/DaRL-GenAI)
- **Source:** [DaRL-GenAI/instructional_agents-skills](https://github.com/DaRL-GenAI/instructional_agents-skills)
- **License:** MIT
- **Homepage:** https://darl-genai.github.io/instructional_agents_homepage/

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-darl-genai-instructional-agents-skills-latex-compile
- Seller: https://agentstack.voostack.com/s/darl-genai
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
