latex
Skill4 starsChanged 41 days agoMITView on GitHub
Trigger: LaTeX, latex, .tex, documento académico, artículo, tesis, apuntes, guías, ensayos. Create compile-safe LaTeX academic documents.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- letsloose501/sqs-agent-memorytheir own version, first seen Nov 3, 2026
- flonat/flonat-researchtheir own version, first seen Nov 3, 2026
- indigoHatter/claude-latex-skilltheir own version, first seen Oct 20, 2026
- oakreader/oakreadertheir own version, first seen Oct 16, 2026
- labdaps/labskillstheir own version, first seen Oct 13, 2026
- andrewzeitlin/claude_skillstheir own version, first seen Oct 8, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- flonat/flonat-research★ 150same name
- oakreader/oakreader★ 46same name
- hameefy/claude-latex-skill★ 12same name
- labdaps/labskills★ 2same name
- letsloose501/sqs-agent-memory★ 2same name
- andrewzeitlin/claude_skills★ 0same name
- indigoHatter/claude-latex-skill★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- api-designSkill
- changelog-maintenanceSkill
- code-mentorSkill
- create-readmeSkill
- database-designSkill
- dockerSkill
- frontend-design-anti-slopSkill
- frontend-engineeringSkill
- git-commitSkill
- github-essentialsSkill
- java-junitSkill
- java-springbootSkill
- java-springboot-testingSkill
- solution-designSkill
- ui-componentsSkill
- update-readmeSkill
- vault-tech-noteSkill
- web-mvcSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
If Lora/Lato are not installed: remove or comment the \setmainfont{Lora} / \setsansfont{Lato} lines.
- Very specific: line 43
Existing projects: read the preamble, .latexmkrc, and any .cls/.sty files first — match their conventions instead of overriding them.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: LaTeX Academic Documents
Activation Contract
Load when creating, editing, or fixing .tex files for academic documents (articles, theses, essays, notes, guides) or when diagnosing compilation errors from .log files.
Hard Rules
hyperrefMUST be the last package loaded in the preamble.- Never use
\\to separate paragraphs — use blank lines.\\is for tables, alignments, and line breaks inside special environments only. Pair with\usepackage{parskip}for visual paragraph separation. - Remove file extensions from
\includegraphics,\include,\input— let LaTeX resolve them. - Use
\enquote{text}(fromcsquotes) for quotation marks, never raw"text". - Brace command names before text:
\LaTeX{}not\LaTeX. - Always provide a working compilation command with every document.
- Default fonts are Lora (serif) + Lato (sans) via
fontspec. Engine is always lualatex. - For Spanish documents:
babel[spanish](works with lualatex).
Decision Gates
| Document type | Class | Engine | Fonts |
| Article, essay, apuntes | article | lualatex | Lora + Lato |
| Large article, report, guía | report | lualatex | Lora + Lato |
| Thesis (tesis) | memoir or book | lualatex | Lora + Lato |
| Presentation | beamer | lualatex | Lato (sans-default) |
Execution Steps
- Identify document type from the request, then select class via the Decision Gates. Engine is always lualatex.
- Build preamble in this order:
\documentclass[a4paper,12pt]{...}→fontspec→\setmainfont{Lora}+\setsansfont{Lato}→ language (babel[spanish]) → math (amsmath,amssymb,mathtools,amsthm) → tables (booktabs) → graphics (graphicx+\graphicspath{{figures/}}) → typography (microtype) → paragraphs (parskip) → code (listingsorminted) → citations (biblatexwithbiber) →hyperrefLAST. - If Lora/Lato are not installed: remove or comment the
\setmainfont{Lora}/\setsansfont{Lato}lines. lualatex will use Latin Modern as the default — the document compiles without changes. - Structure:
main.texis a skeleton. Use\inputfor sections. Use\includeonly for top-level chapters in books/reports. - Bibliography:
\addbibresource{refs.bib}in preamble,\printbibliographyat document end. - Compilation command:
latexmk -lualatex main.tex.latexmkhandles multi-pass and biblatex automatically. - Existing projects: read the preamble,
.latexmkrc, and any.cls/.styfiles first — match their conventions instead of overriding them.
Common Errors & Diagnosis
| Error | Likely cause | Fix |
! Undefined control sequence. \foo | Missing package or typo in command name | Add the required \usepackage{...} or correct spelling |
! LaTeX Error: File 'x.sty' not found. | Package x is not installed | tlmgr install x (TeX Live) |
! Package hyperref Error: Wrong driver | hyperref loaded before a driver-dependent package | Move \usepackage{hyperref} to the very end of the preamble |
! Missing \endcsname inserted | Special chars in \label{} or \ref{} | Use only ASCII and : in labels: \label{sec:intro} |
! Emergency stop. | Syntax error near the top of the file | Check first 20 lines for unbalanced braces or unmatched \begin/\end |
! Package babel Error: Unknown option 'spanish'. | Babel installed without Spanish patterns | tlmgr install babel-spanish |
! LaTeX Error: Option clash for package x | Package loaded twice with different options | Load once with all options: \usepackage[opt1,opt2]{x} |
| No .pdf, .log truncated | Infinite loop or out of memory | Check for \def\a{\a} loops or conflicting packages |
| fontspec warnings about Lora/Lato | Fonts not installed on this system | Remove \setmainfont{Lora} / \setsansfont{Lato} — lualatex falls back to Latin Modern |
Output Contract
Return: created/modified .tex files, the compilation command, and key structural decisions. If fixing errors, include the root cause from .log analysis and which fix was applied.
Resources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

