latex

Compile LaTeX documents to PDFs with automatic engine selection and output organization.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill latex-chenyiru3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: latex
Source: https://github.com/CHENyiru3/AI-Skills-Collections/tree/main/skills-market/writing/latex/compile-latex
Command: npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill latex-chenyiru3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LaTeX document compilation and management can be tedious and error-prone when dealing with multiple sources, bibliographies, and build configurations. This skill automates engine selection, output organization, and reproducible workflows to reduce manual steps and ensure consistent results.

Core Features & Use Cases

  • Automatic LaTeX engine selection (pdflatex or xelatex) based on document content and included files.
  • Output management with an out/ directory and automatic PDF copy-back to the source directory after a successful build.
  • Overleaf and local workflow guidance, templating, and build-recovery strategies to keep projects in sync and reproducible.

Quick Start

Create or edit a LaTeX project and run the recommended build flow to compile main.tex and produce the final PDF.

Frequently Asked Questions about latex

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

FAQPage Schema
How do I automate LaTeX document compilation to produce a PDF?

Automate LaTeX builds by running a recommended flow that compiles main.tex into a final PDF. The process handles engine selection, output directory management, and automatically copies the PDF back to the source directory.

How does automatic LaTeX engine selection work for academic papers?

Automatic LaTeX engine selection works by analyzing document content and included files to choose between pdflatex and xelatex. This ensures academic papers and theses are compiled with the correct engine for consistent results.

Can I use this LaTeX automation with Overleaf-synced projects?

Yes, this LaTeX automation works with Overleaf-synced projects and local builds. It provides Overleaf workflow guidance, templating, and build-recovery strategies to keep projects synchronized and reproducible.

What is the best way to organize LaTeX build artifacts and output directories?

Organize LaTeX build artifacts by directing outputs to an out/ directory. After a successful build, the workflow automatically copies the generated PDF back to the source directory, keeping the workspace clean.

How do I configure per-project LaTeX build rules?

Configure per-project LaTeX build rules by adding a .latexmkrc file to your project. This allows customizable build configurations and optional editor integration for reproducible document preparation.

Why does my LaTeX document compilation fail with multiple sources and bibliographies?

LaTeX document compilation can fail due to misconfigured multiple sources, bibliographies, and build settings. Automating engine selection, output organization, and applying build-recovery strategies reduces manual errors and ensures reproducible workflows.