latex-engine

latex-engine is a skill for Claude Code from TobiasBlask/open-paper-machine. It costs 69 tokens per session (2,354 once invoked), scanned A, original, MIT.

A guide for turning a completed research draft into a LaTeX project and compiled PDF. LaTeX is a document system commonly used for technical papers, especially when they contain citations, equations, tables, and figures.

In plain words
What is it for?
Use it with a Markdown draft, BibTeX references, and optional figures to create a paper.tex file, resolve citations, format tables and figures, and produce a PDF.
Why use it?
It removes the manual work of formatting a paper, connecting citations, placing figures, and compiling the final document. It also helps ensure the draft and reference list become a complete submission project.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the open-academic-paper-machine plugin — 33 skills, 21 commands, 4 agents shipped together

Good fit Use it with a Markdown draft, BibTeX references, and optional figures to create a paper.tex file, resolve citations, format tables and figures, and produce a PDF.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tobiasblask/open-paper-machine/latex-engine
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 TobiasBlask/open-paper-machine --skill latex-engine
Clone the repo
git clone --depth 1 https://github.com/TobiasBlask/open-paper-machine

Made for: Claude Code.

Or install open-academic-paper-machine, the plugin that ships this one along with the rest of its 33 skills, 21 commands, 4 agents.

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-engine

README.md
[![agentmods](https://agentmods.dev/badge/skills/tobiasblask/open-paper-machine/latex-engine/github.svg)](https://agentmods.dev/skills/tobiasblask/open-paper-machine/latex-engine)
Your own site
<a href="https://agentmods.dev/skills/tobiasblask/open-paper-machine/latex-engine"><img src="https://agentmods.dev/badge/skills/tobiasblask/open-paper-machine/latex-engine/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-engine

Your own site · 80×15
<a href="https://agentmods.dev/skills/tobiasblask/open-paper-machine/latex-engine"><img src="https://agentmods.dev/badge/skills/tobiasblask/open-paper-machine/latex-engine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,354 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00069 $0.02354
Opus 5 $0.00034 $0.01177
Sonnet 5 $0.00014 $0.00471
Haiku 4.5 $0.00007 $0.00235

Measured 9d ago against content hash 75e6ce85ef58, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

latex-engine scanned grade A with 0 findings 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/latex-engine/SKILL.md · 291 lines

How it starts

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

Orchestration Log: When this skill is activated, append a log entry to outputs/orchestration_log.md:

### Skill Activation: LaTeX Engine
**Timestamp:** [current date/time]
**Actor:** AI Agent (latex-engine)
**Input:** [brief description of the export request]
**Output:** [brief description of what was produced — e.g., "Compiled paper.tex to PDF (24 pages), no errors"]

LaTeX Engine

Core Principle

The paper machine works in markdown throughout Phases 1-5 for speed and flexibility. This engine is the final production step: it takes the completed draft.md, references.bib, and figures/ and produces a submission-ready LaTeX project with compiled PDF using the arxiv-style template (https://github.com/kourgeorge/arxiv-style).

Prerequisites

Required files in the working directory:

  • draft.md — complete paper draft from Phase 5
  • references.bib — BibTeX file from literature search
  • figures/ — directory with generated PNG figures (optional but recommended)

Required system packages for PDF compilation:

  • texlive or equivalent LaTeX distribution with pdflatex and bibtex
  • Install if missing: apt-get install -y texlive-latex-base texlive-latex-extra texlive-fonts-recommended texlive-bibtex-extra

Plugin files used:

  • templates/arxiv.sty — the arxiv-style LaTeX style file
  • scripts/md_to_latex.py — the markdown-to-LaTeX converter

When to Activate

  • User says "export to LaTeX", "generate PDF", "make it submission-ready"
  • After Phase 5 (Assembly) completes in the paper machine pipeline
  • User explicitly asks for .tex output
  • User mentions arXiv submission preparation

Conversion Pipeline

Step 1: Prepare the LaTeX Project Directory

Create a latex/ subdirectory with the proper structure:

latex/
├── arxiv.sty          ← copied from templates/
├── paper.tex          ← generated by md_to_latex.py
├── references.bib     ← copied from working dir
├── figures/           ← copied from working dir
│   ├── fig_method_*.png
│   ├── fig_results_*.png
│   └── ...
└── paper.pdf          ← compiled output

Read the full file on GitHub · 291 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. 9d ago First seen · 291 lines · 69 tokens per session scan A 75e6ce85ef58

Subscribe to this mod's changes

latex-engine is a skill published in the GitHub repository TobiasBlask/open-paper-machine (18 stars, last pushed 5mo ago), licensed MIT. It adds 69 tokens to every session and 2,354 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. 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

pdf-design

Designs PDF reports and proposals from HTML with previews and branding. Use to create, export, or securely upload a PDF.

jamditis/claude-skills-journalism · 28 tokens

document-design

Creates print-ready HTML that exports to PDF. Use to make a proposal, report, one-pager, newsletter, slides, or flyer.

jamditis/claude-skills-journalism · 31 tokens

figure-drawing

MANDATORY skill for creating any figure, diagram, chart, table visualization, or TikZ graphic in a paper. Must be activated BEFORE writing any drawing code. Produces standalone .tex → compiled PDF/PNG → \includegraphics in paper. Never inline TikZ code directly into paper sections.

nanoAgentTeam/research-claw · 62 tokens

pdf-explore

Use this skill when the user has attached or pointed to a PDF, paper, report, or other document and the answer needs content from more than one place in it: summarize the methods or any other section, compare sections, find where a topic is discussed, read a value or label off a figure or chart, pull tables out as…

emaballarin/ccplugins · 264 tokens

user-preview

Compile the current project's LaTeX files and send the generated PDF to the user for preview. Use when the user wants to check typesetting results or confirm the effect of recent edits.

nanoAgentTeam/research-claw · 42 tokens

tikz-figure-review

Review and fix alignment, label collision, clipping, legend-over-data, overlap, and layout issues in TikZ and pgfplots figures inside LaTeX documents. Use when the user wants to review figures in a paper, tutorial, lecture notes, or thesis before submission; when a reviewer flags figure problems; when a rendered…

shubham0704/claude-skills · 177 tokens