← ClaudeAtlas

compile-latexlisted

Compile a .tex with latexmk, auto-detecting the engine (pdflatex/xelatex/lualatex) and bib backend (biber/bibtex), then emit a ranked error report with accurate file:line attribution across \input'd files, plus a diff against the last compile. Guards against Dropbox conflicted-copy files in Overleaf projects. TRIGGER on "compile this", "build my paper", "build the beamer deck", "why won't this compile", "what are the latex errors", "did my edit add warnings", or any request to build or debug a LaTeX document; Quarto .qmd decks belong to research-talk and teaching-lecture. An opt-in --figures pass hands TikZ/pgfplots blocks to the tikz-iterate skill.
ericluo04/claude-academic-workflow · ★ 10 · AI & Automation · score 69
Install: claude install-skill ericluo04/claude-academic-workflow
# compile-latex Compile a `.tex`, parse the log into a ranked report with correct `file:line` attribution, and diff it against the previous build. The default is compile-and-report only; nothing in the source is edited unless `--figures` is passed. Parsing detail (package tables, log regexes, file-stack rules, box thresholds, state schema) is in [`references/log-patterns.md`](references/log-patterns.md). Read it before steps 3 through 5. Diff-vs-last-compile is adapted from `compiledeck` in [scunning1975/MixtapeTools](https://github.com/scunning1975/MixtapeTools). ## Options | Option | Default | Meaning | |---|---|---| | positional path | required | Master `.tex`. Absolute path, or a basename to resolve. | | `--engine=` | `auto` | Force `pdflatex` / `xelatex` / `lualatex`. | | `--outdir=` | `build` | Aux directory (`latexmk -outdir`). | | `--box-threshold=` | `5pt` | Overfull reporting gate. | | `--figures` | off | Opt-in: polish TikZ/pgfplots figures via `tikz-iterate`, then splice back. | | `--no-bib` | off | Skip the bib run (`-bibtex-`). | | `--force` | off | Compile even if a conflicted copy is present. | | `--clean` / `--clean-all` | off | `latexmk -c` / `-C`, then stop. | ## Resolving the file No config file. In order: use an absolute or cwd-relative path if given; otherwise `Glob` `~/Library/CloudStorage/Dropbox*/Apps/Overleaf/*/**/<name>.tex` and, if a project name was mentioned, filter to that project directory; otherwise `Glob` `*.tex` in the cwd and pick the