Definitions, theorems, exercises, tikz/pstricks figures, BibTeX bibliography, KaTeX formulas. Mobile-readable, with interactive quizzes, variation tables and runnable Python.
Conversion in under 30 seconds for 90% of math courses.
Sarmate reads LaTeX structures and translates them into mathpad tags (mp-chapter, mp-definition, mp-exercise, mp-figure…) for a responsive rendering with KaTeX, JSXGraph and Skulpt.
\chapter{Fonctions affines}
\section{Définition}
\begin{definition}
Une fonction $f$ est affine si
$f(x) = ax + b$ avec $a, b \in \mathbb{R}$.
\end{definition}
\begin{exercise}
Tracer la fonction $f(x) = 2x + 3$.
\end{exercise}
<mp-chapter>
<mp-title>Fonctions affines</mp-title>
<mp-section>
<mp-title>Définition</mp-title>
<mp-definition>
Une fonction $f$ est affine si
$f(x) = ax + b$…
</mp-definition>
<mp-exercise>…</mp-exercise>
</mp-section>
</mp-chapter>
Short example document (integral of a continuous function): definition, theorem, aligned equations, boxed blocks. Compare the original PDF and the converted web version.
Want to try it with your own .tex file? Create a free account →
Inline $…$, display $$…$$, align, equation, array. Browser-rendered, with copy-as-LaTeX.
Each figure is server-compiled to PDF then PNG (200 DPI) and embedded in mp-figure with caption.
.bib next to .tex: entries become mp-cite-entry, \cite{key} becomes clickable mp-cite with back-jump.
chapter, section, subsection, definition, theorem, propriete, exercise, remarque… mapped to semantic mp- tags.
Tables, figures and long formulas scroll automatically on phone. Readable from 320 to 1920 px.
\label / \ref / \pageref converted to mp-ref — clickable jumps in the document with back-link.
Directly in the LaTeX editor, or via the AI of your choice through the MCP protocol.
The Model Context Protocol is an open standard that lets AI assistants (Claude, ChatGPT, Gemini…) access external tools and data. On Sarmate, it exposes your drive and the LaTeX→HTML converter to the AI of your choice. Learn more about MCP on Sarmate.
Comparison on the points that matter for a math course.
| tikz/pstricks | BibTeX | Responsive | Online | AI / MCP | |
|---|---|---|---|---|---|
| Sarmate | ✓ PNG 200 DPI | ✓ mp-cite | ✓ | ✓ | ✓ |
| Pandoc | ✗ | ~ | ~ | ✗ local | ✗ |
| LaTeXML | ~ SVG | ✓ | ✗ | ✗ | ✗ |
| htlatex / tex4ht | ~ | ✓ | ✗ | ✗ | ✗ |
| Overleaf | ✗ PDF only | ✓ | — | ✓ | ✗ |
Profiles we had concretely in mind when building the converter.
Upload your .tex file into your Sarmate drive, open it in the LaTeX editor, pick the sarmateWeb (HTML) compiler and click Compile. In a few seconds, a basename_sarmateweb.html file is generated in the same folder.
Yes. Each figure is isolated on the server, compiled to PDF then to PNG (200 DPI), and embedded in mp-figure with its caption. The output is pixel-identical to your PDF.
No. Everything happens online. LaTeX compilation (pdflatex, dvips, pdfcrop, ImageMagick) runs on Sarmate servers.
Upload your .bib next to the .tex. The converter reads each entry and turns it into an mp-cite-entry. Your \cite{key} become clickable mp-cite with automatic back-jumps.
Yes, via the MCP server. Connect Claude, ChatGPT, Gemini, Mistral, Cursor or Le Chat to your drive. Three modes: converter only, hybrid converter+AI, or 100% AI from the .tex. MCP documentation.
Full guide for .tex → mathpad HTML conversion: compiler, editor steps, drive, common cases (missing packages, figures, .bib).
Create an account, upload your .tex, click sarmateWeb, read the result. No TeX Live, no local LaTeX compiler.