render_paper
Convert markdown papers with LaTeX equations to publication-ready HTML using KaTeX for standard math and UpMath API for TikZ diagrams.
Instructions
Render a full markdown paper with $$...$$ LaTeX to a publication-ready HTML file. Uses KaTeX for standard math (fast, client-side) and falls back to UpMath API for TikZ/special packages. Handles headings, bold, italic, lists, tables, and code blocks.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputFile": "<inputFile>",
"outputFile": "<outputFile>"
},
"name": "render_paper"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputFile | Yes | Path to the markdown file (e.g., 'Beyond the Bat (Complete).md') | |
| outputFile | Yes | Path for the output HTML file | |
| title | No | Document title for the HTML head | |
| author | No | Author name | |
| useUpmath | No | If true, render ALL math via UpMath API (slow but supports TikZ). If false, use KaTeX CDN (fast, client-side). |