LaTeX renderer
LaTeX renderer
工具:LaTeX 渲染器 受 Paul Ford 和 Aboard Foundary 新推出的网络应用 Tiny Little Office 的启发,该应用提供了一套网络应用内容编辑器(文字处理器、大纲编辑器、演示文稿构建器、电子表格、计算器、绘图工具、图表制作器、动画制作器、日历和旅行计划工具)。Tiny Little Office 的特色功能是将所有文档数据存储在 URL 的 #fragment 部分,因此使用它创建的每个文档都可以成为可书签和可分享的链接。它还有一个 llms.txt 文件,告诉代理如何构造将显示为文档的 URL。Claude 使用该文件生成了一个链接,该链接展示的是如何解释 URL 格式的幻灯片:Tiny Little Office 启发我让 Claude Code(Opus 5.5 Extra)构建一个类似的工具,该工具可以与 LaTeX 一起使用。我使用的提示序列如下:我想要一个工具,你可以通过片段哈希 #code-here 链接到它,它会将该代码视为 LaTeX 并对其进行非常有效的渲染。它还应支持一个前缀,这意味着 LaTeX 将使用为 LaTeX 优化的自定义压缩字典进行压缩。使用来自 CDN 的最佳可用 LaTeX 渲染库(也可考虑 WebAssembly)。如果未带片段加载
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
应来源方要求,这里只提供摘要与原文入口。完整内容请阅读原文。
来源:Simon Willison · simonwillison.net