latex

Compile LaTeX documents with latexmk and manage PDF output.

127|22|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/flonat/claude-code-flonat --skill latex-flonat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: latex
Source: https://github.com/flonat/claude-code-flonat/tree/main/skills/latex
Command: npx skills add https://github.com/flonat/claude-code-flonat --skill latex-flonat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of compiling and managing LaTeX documents, ensuring accurate and consistent output for academic papers, presentations, and other LaTeX-based content.

Core Features & Use Cases

  • LaTeX Compilation: Compiles .tex files using various engines (pdfLaTeX, XeLaTeX, LuaLaTeX) via latexmk.
  • Output Management: Organizes build artifacts in an out/ directory while ensuring the final PDF is placed alongside the source file.
  • Reference Checking: Automatically checks for and reports undefined references or citations.
  • Use Case: When you've finished writing a section of your research paper and need to compile it to check for errors, ensure all citations are correct, and generate the PDF.

Quick Start

Compile the LaTeX document located at '~/Documents/my_paper/main.tex'.

Frequently Asked Questions about latex

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

FAQPage Schema
How do I compile a LaTeX document automatically using latexmk?

To compile a LaTeX document, this Skill invokes latexmk to build .tex files, routing all intermediate artifacts into an 'out/' directory and copying the final PDF to the source directory for clean output management.

Does the LaTeX compilation engine switch automatically for fontspec?

Yes, the LaTeX compilation engine switches automatically. If your document uses the fontspec package, the Skill detects it and selects XeLaTeX or LuaLaTeX instead of the default pdfLaTeX for accurate font rendering.

How do I check for undefined references and citations in LaTeX?

Checking for undefined references and citations is handled automatically during the LaTeX compilation process. The Skill scans the build output and reports any missing references or citations to ensure document integrity.

Can I manage LaTeX build artifacts without cluttering my source directory?

Yes, you can manage build artifacts cleanly. The Skill isolates all auxiliary files generated by latexmk into a dedicated 'out/' directory while ensuring the compiled PDF is placed directly alongside your original .tex source file.

What is the best way to compile academic papers with different LaTeX engines?

The best way to compile academic papers is using a Skill that supports pdfLaTeX, XeLaTeX, and LuaLaTeX via latexmk. It automatically detects document class and package requirements to select the appropriate engine for accurate PDF generation.