cd /news/ai-tools/latex-renderer Β· home β€Ί topics β€Ί ai-tools β€Ί article
[ARTICLE Β· art-151663] src=simonwillison.net β†— pub= topic=ai-tools verified=true sentiment=↑ positive

LaTeX renderer

Simon Willison released a LaTeX renderer at tools.simonwillison.net/latex that stores LaTeX source in the URL fragment, letting rendered documents be bookmarked and shared as links. Willison built the tool with Claude Code (Opus 5.5 Extra), inspired by Paul Ford and Aboard Foundry's Tiny Little Office, which uses the same URL-fragment approach and an llms.txt file that Claude used to generate a shareable deck link. The renderer runs LaTeX in an iframe sandbox for XSS protection and supports loading LaTeX from a URL or Gist, plus a compressed-fragment prefix using a LaTeX-specific compression dictionary.

read2 min views19 publishedOct 15, 2026

Tool: LaTeX renderer Inspired by Paul Ford and Aboard Foundary's new web app Tiny Little Office, which provides a suite of web app content editors (a Word Processor, Outliner, Presentation Builder, Spreadsheet, Calculator, Drawing Tool, Diagram Maker, Animator, Calendar, and Trip Planner).

Tiny Little Office's signature trick is to store all of the document data in the #fragment section of the URL, so every document created using it becomes a bookmarkable and shareable link.

It also has an llms.txt file telling agents how to construct URLs that will render as documents. Claude used that file to generate this link to a deck that explains how the URL format works:

Tiny Little Office inspired me to have Claude Code (Opus 5.5 Extra) build a similar tool that works with LaTeX. Here's the sequence of prompts I used:

I want a tool where you can link to it with a fragment hash #code-here and it treats that code as LaTeX and renders it really effectively. It should also support a prefix which means the latex is compressed with a custom compression dictionary optimized for latex. Use the best available latex render library from a CDN (consider WebAssembly too). If loaded without a fragment hash show an editor you can paste latex into and then toggle to a "rendered" view. That rendered view should be bookmarkable. The #fragment view should let you switch to edit source too.

Since it was working in my tools repo I told it to take inspiration from the <iframe sandbox="..."> mechanism used by my existing SVG in Markdown tool as protection against XSS risks:

Safe from XSS? We could run in an iframe sandbox like we do on the SVG markdown render project

I had it copy the Gist/URL feature from that tool as well:

We should have an option to load latex from a URL (or gist) similar to the markdown SVG tool

Here's an example link. The tool uses Pako 2.1.0, MathJax 4.1.3, faster-latex 0.3.1, and DOMPurify 3.4.16.

Tags: latex, paul-ford, tools, urls, ai, generative-ai, llms

── more in #ai-tools 4 stories Β· sorted by recency
── more on @simon willison 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/latex-renderer] indexed:0 read:2min 2026-10-15 Β· β€”