Skip to content

Packs / latex-and-papers-public

compile-latex

Compile a LaTeX paper to PDF with tectonic (or latexmk/pdflatex) and check for unresolved references and citations.

Install

logicpacks pack use latex-and-papers-public/compile-latex
get_pack latex-and-papers-public/compile-latex

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: local
  • Checks: 2 in outcome/checks.yaml
  • Code: check_paper.shcompile.sh
  • Tools: tectonic, pdfinfo, pdftotext

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

A PDF build that is reproducible on any machine and fails loudly on ?? references or [?] citations.

Steps

  1. sh code/compile.sh paper/main.tex build/ (tectonic downloads missing packages on first use; needs network once).
  2. sh code/check_paper.sh build/main.pdf 'Expected title'.
  3. Fix warnings: undefined references, overfull boxes in figures, missing fonts.
  4. Keep the exact engine/version in the README of the paper repo.

Edge cases

  • tectonic first run takes ~1 min (bundle download), later runs are fast.
  • biblatex+biber papers: use latexmk or tectonic -X compile with --keep-intermediates and run biber.

Don'ts

  • Don't send anything to co-authors, editors or journals; Waleed sends. Prepare files and open them for him.
  • Don't change numbers in a paper without the script/run that produced them.
  • Don't leave internal comments, server paths or chat quotes in a copy that leaves us.