home / skills / a5c-ai / babysitter / latex-document-compiler
This skill helps you compile LaTeX documents, manage bibliographies and templates, and generate ready-to-distribute PDFs with debugging support.
npx playbooks add skill a5c-ai/babysitter --skill latex-document-compilerReview the files below or copy the command above to add this skill to your agents.
---
name: latex-document-compiler
description: Skill for compiling and managing LaTeX documents
allowed-tools:
- Bash
- Read
- Write
metadata:
specialization: scientific-discovery
domain: science
category: Communication
skill-id: SK-SCIDISC-028
---
# LaTeX Document Compiler Skill
## Purpose
Compile and manage LaTeX documents including handling bibliographies, figures, and journal-specific templates.
## Capabilities
- Compile LaTeX documents
- Manage bibliographies
- Handle cross-references
- Apply journal templates
- Debug compilation errors
- Generate outputs
## Usage Guidelines
1. Set up document
2. Include dependencies
3. Configure compilation
4. Run compiler
5. Debug if needed
6. Generate output
## Process Integration
Works within scientific discovery workflows for:
- Manuscript preparation
- Thesis formatting
- Report generation
- Presentation creation
## Configuration
- Compiler selection
- Template management
- Bibliography style
- Output formats
## Output Artifacts
- Compiled PDFs
- Auxiliary files
- Error logs
- Output packages
This skill compiles and manages LaTeX documents end-to-end, including bibliographies, figures, cross-references, and journal-specific templates. It streamlines build configuration, error diagnosis, and generation of final artifacts like PDFs and submission packages. The focus is on reproducible, automated LaTeX workflows for scientific and technical documents.
The skill inspects project structure (main .tex files, .bib, figures, templates) and selects an appropriate compiler chain (pdfLaTeX, XeLaTeX, LuaLaTeX, BibTeX/Biber). It resolves dependencies, applies templates, runs the compile sequence with bibliography and index passes, and captures logs and auxiliary files. When errors occur it extracts actionable diagnostics and suggests fixes or automated retries. Final outputs include compiled PDFs, sanitized auxiliary files, and packaged archives ready for submission.
Which compilers and bibliography tools are supported?
Common engines are supported: pdfLaTeX, XeLaTeX, LuaLaTeX, and bibliography tools like BibTeX and Biber. Choose per-document needs.
Can the skill apply journal-specific templates automatically?
Yes. Supply the template files and style settings; the skill will apply them, adjust class options, and verify compatibility during compilation.