compile-latex

Verifies multi-pass LaTeX builds of main.tex and presentation.tex for OpenShift projects.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/naj2r/claude-econ-paper-template --skill compile-latex-naj2r
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compile-latex
Source: https://github.com/naj2r/claude-econ-paper-template/tree/main/.claude/skills/compile-latex
Command: npx skills add https://github.com/naj2r/claude-econ-paper-template --skill compile-latex-naj2r

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Verifies that the Overleaf paper (main.tex) and/or presentation (presentation.tex) compile without errors, catching issues before submission.

Core Features & Use Cases

  • Local LaTeX compilation verification for papers (main.tex) and Beamer presentations (presentation.tex).
  • Multi-pass build validation (pdflatex, bibtex, and subsequent runs) to resolve references and citations.
  • Use case: before pushing changes to Overleaf, validate that both documents compile cleanly to ensure correct output.

Quick Start

Invoke the skill with argument 'both' to compile main.tex and presentation.tex in the Overleaf project located at $OL/.

Frequently Asked Questions about compile-latex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify my Overleaf project compiles locally before submission?

To verify Overleaf project compilation locally, the skill runs a multi-pass LaTeX workflow on main.tex and presentation.tex, executing pdflatex and bibtex multiple times to resolve references and check for errors.

Why does bibtex require multiple pdflatex runs during LaTeX compilation?

Multiple pdflatex runs are required during LaTeX compilation because bibtex generates citation data in an intermediate pass, necessitating subsequent pdflatex executions to resolve all cross-references and ensure a clean log.

Can I compile both Beamer slides and research papers using this local validation workflow?

Yes, you can compile both Beamer slides and research papers by invoking the workflow with the 'both' argument, which validates presentation.tex and main.tex located in the $OL/ Overleaf project directory.

What is the best way to catch LaTeX warnings and errors before pushing changes to Overleaf?

The best way to catch LaTeX warnings before pushing to Overleaf is performing local compilation verification, which checks log cleanliness and reports errors across all required pdflatex and bibtex build passes.

Does local LaTeX debugging work for resolving unresolved citations in Beamer presentations?

Yes, local LaTeX debugging works for Beamer presentations by executing bibtex between pdflatex runs, successfully resolving unresolved citations and verifying that the presentation.tex output is generated without reference errors.