LaTeX Papers: compile to PDF and fix errors

    by hedwigai

    1

    Compile a LaTeX, Typst or Markdown document to a PDF from inside the agent, fix its compile errors without the user pasting them back, and hand over a link to the PDF — through the hedwigai MCP's render_document tool.

    $6

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    About this skill

    Compile a LaTeX, Typst or Markdown document to a PDF from inside the agent, fix its compile errors without the user pasting them back, and hand over a link to the PDF — through the hedwigai MCP's render_document tool. Real TeX (Tectonic, XeTeX underneath): journal and conference classes such as IEEEtran, acmart, elsarticle and NeurIPS or ICML styles, BibTeX bibliographies, multi-file projects with chapters and figures. Use when the user is writing or editing a paper, thesis, report or letter and wants the PDF, asks to compile or build LaTeX, gets a compile error, or would otherwise copy the source into Overleaf.

    render_document compiles a document you wrote and returns either a link to the PDF, kept in the user's own hedwigai storage for about six days, or the compiler's error cut to the line that failed. Compiling is free; it draws no credit.

    Pick the format

    The documentformat
    A .tex paper, thesis or letter, or anything with \documentclasslatex
    A Typst documenttypst
    Notes or a report in Markdown, with maths in $…$markdown

    Write a new paper in LaTeX when the venue gives a LaTeX template, which most do; Typst when the user has no template and wants it to compile fast.

    Send the whole project

    • source is the main .tex file; it is compiled as main.tex.
    • Everything else goes in files, each with the relative path the source uses: {path: "refs.bib", text: "…"}, {path: "chapters/intro.tex", text: "…"}, the venue's .cls or .sty if it is not in TeX Live, and images as {path: "figures/plot.png", base64: "…"}.
    • Images already online can go in assets instead, as {url, path}: public https URLs only.
    • name sets the PDF's file name, e.g. thesis-chapter-2.

    Keep the project as the user has it: same file names, same \input and \includegraphics paths.

    The compile loop

    1. Call render_document.
    2. If it returns a url, the document compiled: give the user the link.
    3. If it says the document did not compile, read the error: the file and line (main.tex:42: or main.bbl:24:), TeX's own message, and the lines around it. Fix that cause in the source, not the symptom, and call again.
    4. Stop after five attempts on the same error and show the user the error and what you tried.

    Common causes:

    Error saysUsually
    Undefined control sequenceA macro from a package that isn't loaded, or a typo
    File '…' not foundA file missing from files, or a path that differs from the source's
    Something's wrong--perhaps a missing \item in main.bblAn empty bibliography: the .bib was not sent, or nothing is cited
    Missing $ insertedMaths outside a maths environment, often _ or ^ in text
    A message about minted or shell escapeShell escape is off: switch to listings
    A message about biberBiber is not available: use \usepackage[backend=bibtex]{biblatex} or plain BibTeX

    The first compile of a rarely used package can take a minute while the server fetches it. Say so if the user is waiting.

    What it does not do

    • No live co-editing, track changes or history. Keep the source in the user's own files, Git or Overleaf.
    • No shell escape (minted), no biber, no LuaLaTeX. The engine is XeTeX, which compiles pdfLaTeX and XeLaTeX documents. The package set is TeX Live 2022's.

    Then offer the checks

    A paper that compiles can still cite a work that does not exist. Once it compiles, offer the reference-checker skill: every reference looked up in Crossref and on the web, and each citing sentence read against the work it cites. That is a billed run, so say so and get a yes first.

    Ground rules

    • Never claim a document compiled until a url came back.
    • Don't change the user's prose, citations or layout to make an error go away; fix the cause, and say what you changed.
    • Give the PDF link once, with what the document is, not the whole link text in a sentence.

    Setup

    This skill runs on the hedwigai MCP server. Add https://mcp.hedwigai.com/ as a remote MCP server in your agent and sign in to hedwigai when asked. In Claude Code: claude mcp add --transport http hedwigai https://mcp.hedwigai.com/. Metered programs draw on your hedwigai credits; reading and writing workbooks is free.

    Requires hedwigai MCP connection. No support for shell escape, minted, biber, or LuaLaTeX. Uses TeX Live 2022 package set.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 15 days ago

    Accounts
    hedwigai accounthedwigai MCP server

    Permissions

    Read Files
    Network Access
    Listed15 days ago

    What's inside

    Frequently Asked Questions

    Compile a LaTeX, Typst or Markdown document to a PDF from inside the agent, fix its compile errors without the user pasting them back, and hand over a link to the PDF — through the hedwigai MCP's render_document tool.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use LaTeX Papers: compile to PDF and fix errors on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Technical Documentation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Technical Documentation.