latex-pdf

latex-pdf is a skill for Claude Code, Codex from hdu-ailab/EasyResearch. It costs 234 tokens per session (2,754 once invoked), scanned B, original, MIT.

A workflow for turning LaTeX source files into PDF papers and diagnosing build problems. LaTeX is a document system commonly used for technical papers, citations, formulas, and journal templates.

In plain words
What is it for?
Use it to compile or rebuild .tex manuscripts, resolve bibliography and cross-reference warnings, choose between LaTeX compilers, inspect graphics paths, and clean build files.
Why use it?
It removes guesswork when choosing a compiler or handling repeated builds, references, missing images, and missing style files. It can also use an online compilation route when no local TeX tools are available.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compile or rebuild .tex manuscripts, resolve bibliography and cross-reference warnings, choose between LaTeX compilers, inspect graphics paths, and clean build files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hdu-ailab/easyresearch/latex-pdf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hdu-ailab/EasyResearch --skill latex-pdf
Clone the repo
git clone --depth 1 https://github.com/hdu-ailab/EasyResearch

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for latex-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/hdu-ailab/easyresearch/latex-pdf/github.svg)](https://agentmods.dev/skills/hdu-ailab/easyresearch/latex-pdf)
Your own site
<a href="https://agentmods.dev/skills/hdu-ailab/easyresearch/latex-pdf"><img src="https://agentmods.dev/badge/skills/hdu-ailab/easyresearch/latex-pdf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for latex-pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/hdu-ailab/easyresearch/latex-pdf"><img src="https://agentmods.dev/badge/skills/hdu-ailab/easyresearch/latex-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 234 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,754 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00234 $0.02754
Opus 5.5 $0.00094 $0.01102
Sonnet 5.5 $0.00047 $0.00551
Haiku 4.5 $0.00023 $0.00275

Measured 12d ago against content hash 012487d877f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

latex-pdf scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| Debian/Ubuntu | apt | `sudo apt install texlive-latex-recommended texlive-latex-extra texlive-xetex texlive-bibtex-extra` |
src/skills/latex-pdf/SKILL.md · 238 lines

How it starts

The opening of the file, as written. The whole thing — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LaTeX PDF Build Workflow

When To Use

  • Use for .tex to .pdf builds, manuscript template compilation, citation/reference warnings, missing graphics, missing .sty files, and LaTeX cleanup.
  • Prefer latexmk when available because it handles repeated runs, BibTeX/Biber, and cross-references automatically.
  • Use pdflatex for IEEE/JSEN and most standard journal templates unless the document requires Unicode/CJK text or system fonts.
  • Use xelatex or lualatex when the source uses fontspec, CJK body text, or system font selection.
  • When no local TeX toolchain is detected, use the Overleaf compilation flow below instead of failing or guessing.

Discovery

  • Locate the main *.tex file within the supplied project using the platform-native shell (Get-ChildItem in PowerShell or find in Bash) if the user does not specify it. Do not assume a separate Glob tool exists.
  • Read the first 80 lines of likely main files and prefer the file containing \documentclass and \begin{document}.
  • Check graphics paths from \includegraphics{...} when image errors occur.
  • Check whether the project uses inline thebibliography, BibTeX (\bibliography{...}), or BibLaTeX (\addbibresource{...}).

Paper Pipeline Paths

  • In the bundled paper workflow, treat the exact session cwd as the project root, keep derived LaTeX under manuscript/latex/, and deliver the compiled PDF at manuscript/manuscript.pdf.
  • Keep manuscript/manuscript.md authoritative; compilation must not replace it with generated LaTeX.
  • Follow another existing layout only when the task explicitly supplies it.
  • When the TeX engine writes the PDF inside manuscript/latex/, copy the successful final PDF to manuscript/manuscript.pdf and verify that path.

Environment Detection

Before building, detect a local TeX toolchain. Prefer local compilation when available; fall back to the Overleaf flow below when it is not.

Unix (Linux/macOS):

which latexmk pdflatex xelatex

Read the full file on GitHub · 238 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +39 lines 012487d877f9
  2. 1mo ago First seen · 199 lines · 234 tokens per session scan B f56725c93844

Subscribe to this mod's changes

latex-pdf is a skill published in the GitHub repository hdu-ailab/EasyResearch (14 stars, last pushed today), licensed MIT. It adds 234 tokens to every session and 2,754 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

overleaf

Sync and manage Overleaf LaTeX projects from the command line. Pull projects locally, push changes back, compile PDFs, and download compile outputs like .bbl files for arXiv submissions. Use when working with LaTeX, Overleaf, academic papers, or arXiv.

aloth/olcli · 62 tokens

alterlab-markitdown

Converts files and Office documents to clean, LLM-friendly Markdown with Microsoft MarkItDown (markitdown CLI, Python API, and markitdown-mcp server), supporting PDF, DOCX, PPTX, XLSX/XLS, images (EXIF metadata, LLM descriptions), audio (transcription), HTML, CSV, JSON, XML, ZIP archives, EPUB e-books, Outlook MSG…

AlterLab-IEU/AlterLab-Academic-Skills · 180 tokens

alterlab-open-notebook

Runs and scripts Open Notebook, a self-hosted open-source alternative to Google NotebookLM with a full REST API, for AI-powered research and document analysis. Use when organizing research materials into notebooks, ingesting diverse content sources (PDFs, videos, audio, web pages, Office documents), generating…

AlterLab-IEU/AlterLab-Academic-Skills · 179 tokens

review-paper

Review an attached academic economics paper PDF with independent specialist audits and a complete evidence-grounded report, resume an interrupted paper review, or export a completed Reviewer report as PDF. Not for a summary, a rewrite, or proofreading alone.

Ingar30/reviewer · 49 tokens

alterlab-treatment-plans

Generates concise (3-4 page), focused medical treatment plans in LaTeX/PDF format across all clinical specialties — general medical treatment, rehabilitation therapy, mental health care, chronic disease management, perioperative care, and pain management — using SMART goal frameworks, evidence-based interventions with…

AlterLab-IEU/AlterLab-Academic-Skills · 107 tokens

alterlab-pdf-explore

Explore a single PDF in depth — parse it once, then answer questions across its sections, figures, tables, and appendices — comparing methods across sections, extracting every instance of a pattern within the document, and reading values off its charts and tables. Use when interrogating one paper or report end-to-end…

AlterLab-IEU/AlterLab-Academic-Skills · 150 tokens