Migrating from Overleaf /docs
JointTex’s POST /open endpoint intentionally implements Overleaf’s inline snippet form fields so tutorials and educational platforms can support JointTex with minimal changes.
Field-by-field compatibility
Section titled “Field-by-field compatibility”| Overleaf field | JointTex /open support |
Notes |
|---|---|---|
snip, snip[] |
Supported | Raw UTF-8 text; CRLF is normalized to LF. |
encoded_snip, encoded_snip[] |
Supported | Decoded with decodeURIComponent; falls back to raw text if invalid percent escapes appear. |
snip_name, snip_name[] |
Supported | Relative file paths in matching order. |
main_document |
Supported | Designates the root .tex or .typ file to compile. |
engine |
Supported + typst |
Accepts pdflatex, xelatex, lualatex, latex, latex_dvipdf (aliased to latex), and typst. |
snip_uri, zip_uri |
Not supported (error=unsupported) |
JointTex refuses server-side URL fetching on /open to avoid open-proxy abuse. See alternatives below. |
splash |
Ignored | JointTex always shows a lightweight confirmation view before creating a project in the reader’s account. |
Migrating an HTML snippet form
Section titled “Migrating an HTML snippet form”Change only the action URL and button text:
<form action="https://www.overleaf.com/docs" method="post" target="_blank"><form action="https://jointtex.com/open" method="post" target="_blank"> <textarea name="snip" hidden>...</textarea> <button type="submit">Open in Overleaf</button> <button type="submit">Open in JointTex</button></form>You can also offer both buttons side by side on your site by keeping your existing form and adding a second form pointing to https://jointtex.com/open.
Migrating runlatex.js (learnlatex.org sites)
Section titled “Migrating runlatex.js (learnlatex.org sites)”Pages built with runlatex.js already submit encoded_snip[] and snip_name[] in the exact format JointTex expects (including unencoded LaTeX % comments). Point runlatex.overleafURI to JointTex and update the button label:
runlatex.overleafURI = "https://jointtex.com/open";runlatex.texts["Open in Overleaf"] = "Open in JointTex";Replacing snip_uri or zip_uri links
Section titled “Replacing snip_uri or zip_uri links”Because POST /open does not fetch arbitrary remote URLs:
- For text-only examples (up to 20 files, 512 KiB total): Embed the files directly in
snip[]orencoded_snip[]fields in a<form method="post" action="https://jointtex.com/open">. - For complete templates with images,
.cls, or.bstfiles: Publish the template once to the JointTex Template Gallery (you can republish updates directly from your JointTex project or via MCP) and link tohttps://jointtex.com/templates/<template-id>using an official badge.
