# compile-latex

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

- **Space:** latex-and-papers-public (https://github.com/Tech-Realm/space-latex-and-papers-public/tree/main/compile-latex)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** tectonic, pdfinfo, pdftotext
- **Routes:** local; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use latex-and-papers-public/compile-latex` or MCP `get_pack latex-and-papers-public/compile-latex`
- **Files:** CHANGELOG.md, code/check_paper.sh, code/compile.sh, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/paper/main-final.tex, outcome/fixtures/paper/refs.bib, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (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.



---

Canonical URL: https://logicpacks.io/packs/latex-and-papers-public/compile-latex

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
