What problem does it solve? Compiling LaTeX documents often fails due to missing toolchains, wrong engines, or projects that need features like bibliographies and shell-escape. This Skill automates compiler detection and selection so a .tex file builds correctly without manual toolchain configuration. ## Core Features & Use Cases - Automatic Compiler Selection: Tries bundled Tectonic for simple projects and falls back to detected TeX Live or MacTeX when the project needs bibliography, shell-escape, index/glossary, or specific engines. - Flexible Build Options: Supports explicit compiler choice (tectonic or texlive), engine selection such as xelatex, custom output directories, and JSON output for scripting. - Smart Project Handling: Honors a leading % !TEX root = ... directive, uses latexmk for TeX Live builds when available, and enables SyncTeX with -synctex=1. - Use Case: You receive a research paper project with a .bib bibliography. Run the compile script on main.tex and it automatically routes to TeX Live with latexmk instead of failing under Tectonic. ## Quick Start Ask the AI to compile your main.tex file into a PDF, optionally specifying the xelatex engine or a custom output directory.