export-latex

export-latex is a command for Claude Code from akougkas/wtf-p. It costs 15 tokens per session (1,017 once invoked), scanned A, a copy of add-todo, MIT.

A command that converts a manuscript and its bibliography into LaTeX source, a text format commonly used for academic papers and publishing templates.

In plain words
What is it for?
Use it to export the paper's structure, citations, figures, and tables as LaTeX for a publication venue or later editing.
Why use it?
It provides a portable paper deliverable with declared formatting instead of leaving the manuscript tied to its working files.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the wtfp plugin — 36 commands, 3 hooks shipped together

Good fit Use it to export the paper's structure, citations, figures, and tables as LaTeX for a publication venue or later editing.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add akougkas/wtf-p
Claude Code
/plugin install wtfp

Made for: Claude Code.

Or install wtfp, the plugin that ships this one along with the rest of its 36 commands, 3 hooks.

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 export-latex

README.md
[![agentmods](https://agentmods.dev/badge/commands/akougkas/wtf-p/export-latex/github.svg)](https://agentmods.dev/commands/akougkas/wtf-p/export-latex)
Your own site
<a href="https://agentmods.dev/commands/akougkas/wtf-p/export-latex"><img src="https://agentmods.dev/badge/commands/akougkas/wtf-p/export-latex/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 export-latex

Your own site · 80×15
<a href="https://agentmods.dev/commands/akougkas/wtf-p/export-latex"><img src="https://agentmods.dev/badge/commands/akougkas/wtf-p/export-latex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,017 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 86% copy Near-identical to another mod 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.00015 $0.01017
Opus 5.5 $0.00006 $0.00407
Sonnet 5.5 $0.00003 $0.00203
Haiku 4.5 $0.00002 $0.00102

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

Security

Grade A, and why

export-latex 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 29d 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.

Origin

This is a copy

86% identical to add-todo — 46 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

vendors/claude/commands/export-latex.md · 75 lines

How it starts

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

Export LaTeX

@${CLAUDE_PLUGIN_ROOT}/project/README.md @${CLAUDE_PLUGIN_ROOT}/skills/wtfp-deliver-research/SKILL.md @${CLAUDE_PLUGIN_ROOT}/skills/wtfp-deliver-research/references/actions.md

Record contract

Read: project://manifest, project://config, project://structure/outline, project://sources/{source}, project://evidence/{evidence}, project://paper/{artifact}. Produce: project://deliverables/latex/{artifact} (create).

Resolve every logical URI through the host adapter. Portable v1 JSON records are the source of truth: schema-validate before a write, preserve stable IDs, update revision and timestamps where required, and replace records atomically. Never pass a literal logical URI to a shell command or infer record state from a legacy Markdown control file.

Manuscript prose and supporting context, research, plan, review, summary, handoff, and deliverable artifacts retain their authored format (normally Markdown). Link them from the relevant v1 record; do not convert manuscript prose into project-state JSON.

Procedure

  1. Confirm venue template and whether an existing deliverable may be replaced.
  2. Convert manuscript structure, citations, figures, tables, and bibliography without inventing content or metadata.
  3. Write a self-contained LaTeX deliverable and run the declared bibliography tools through the bundled dispatcher below. Bibliography entries for the deliverable come from bib-format in its default bibtex style, which emits standard entry types; never pass --style=al-folio for a LaTeX export, since that projection does not compile under bibtex or biber. This action does not compile LaTeX and declares no effect that would let it: if the author asks for a PDF, report the portability limitations you observed and return a labeled handoff naming the exact compile command for their own toolchain.

Bundled tool execution

The declared tool.execute effect authorises exactly one command, run from the package root the host resolves for this bundle:

Read the full file on GitHub · 75 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. 29d ago Changed 234966c3b380
  2. 1mo ago First seen · 75 lines · 15 tokens per session scan A 568e02a31d78

Subscribe to this mod's changes

export-latex is a command published in the GitHub repository akougkas/wtf-p (20 stars, last pushed 11d ago), licensed MIT. It adds 15 tokens to every session and 1,017 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to add-todo, differing in 46 lines, and is treated as a copy.