latex-build

Automate LaTeX document compilation with latexmk and live preview.

62|10|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/terrylica/cc-skills --skill latex-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: latex-build
Source: https://github.com/terrylica/cc-skills/tree/main/plugins/doc-tools/skills/latex-build
Command: npx skills add https://github.com/terrylica/cc-skills --skill latex-build

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Builds LaTeX documents reliably using latexmk with live preview, automatic dependency tracking, and common preflight checks.

Core Features & Use Cases

  • Live preview via latexmk with PVC
  • Auto-detect input documents and manage dependencies
  • Clean artifacts and provide quick troubleshooting references

Quick Start

Build the main document: latexmk -pdf document.tex

Frequently Asked Questions about latex-build

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

FAQPage Schema
How do I automate LaTeX document compilation with live preview?

LaTeX build automation with latexmk enables one-time compilation and watch-mode live previews. The Skill automates dependency tracking for bibliographies, indexes, and cross-references, then rebuilds your PDF whenever source files change, eliminating manual recompilation cycles.

Can I use latexmk to build multi-file LaTeX projects?

Yes. The Skill handles both single and multi-document LaTeX workflows by auto-detecting input documents and managing dependencies across files. Configure via .latexmkrc or Makefile for reproducible builds across environments.

What preflight checks does automated LaTeX compilation perform?

Build automation includes common preflight checks and troubleshooting references to diagnose compilation failures. The Skill cleans artifacts and provides quick diagnostics when builds fail, reducing time spent debugging LaTeX errors.

How do I configure pdflatex and viewer options in a LaTeX build pipeline?

The Skill supports configurable toolchains via .latexmkrc or Makefile integration, letting you customize pdflatex settings, PDF viewer selection, and CI options. This enables reproducible builds across different machines and environments.

Does LaTeX build automation track bibliography and cross-reference dependencies automatically?

Yes. Automatic dependency tracking detects changes to bibliography files, indexes, and cross-references, then re-runs only the necessary compilation passes. This eliminates manual re-runs and ensures your PDF reflects all updates.