Awesome-Agent-Skills-for-Empirical-Research compile-latex
Compile a LaTeX manuscript with pdflatex (3 passes + bibtex). Use when compiling the research paper.
install
source · Clone the upstream repo
git clone https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/14-luischanci-claude-code-research-starter/dot-claude/skills/compile-latex" ~/.claude/skills/brycewang-stanford-awesome-agent-skills-for-empirical-research-compile-latex-7e2799 && rm -rf "$T"
manifest:
skills/14-luischanci-claude-code-research-starter/dot-claude/skills/compile-latex/SKILL.mdsource content
Compile LaTeX Manuscript
Compile a LaTeX manuscript using the standard 3-pass sequence for full citation resolution.
Steps
-
Identify the file: Use
as the base name (without$ARGUMENTS
). If no argument, look for the main.tex
file in the paper folder..tex -
Compile (from the paper folder):
pdflatex -interaction=nonstopmode $ARGUMENTS.tex bibtex $ARGUMENTS pdflatex -interaction=nonstopmode $ARGUMENTS.tex pdflatex -interaction=nonstopmode $ARGUMENTS.tex -
Check results:
- Grep for
warnings -- count themOverfull \\hbox - Grep for
orundefined citationsmissing references - Verify PDF was generated with non-zero size:
ls -la $ARGUMENTS.pdf - Report page count if
is availablepdfinfo
- Grep for
-
Report:
- Compilation: PASS / FAIL
- Warnings: N overfull hbox, N undefined citations
- PDF: exists, N pages, X KB
Notes
- Uses
by default. Change topdflatex
orxelatex
if your project requires it.lualatex - The
file should be in the same directory or referenced with a relative path..bib - Parameter estimates loaded via
must exist at their referenced paths.\input{}