FormaTeX
Skip to content
\usepackage{formatex}

LaTeX withoutthe friction.

Write and compile LaTeX in your browser — no install.

Generate PDFs programmatically. No servers, no TeX Live.

An AI assistant that explains and fixes your errors.

Your first PDF in under 30 seconds. Free to start.

thesis.tex
main.tex
\documentclass[12pt]{article}
\usepackage{amsmath, amssymb, amsthm}
\usepackage[margin=1in]{geometry}
\usepackage{hyperref}
 
\title{Real Analysis — Lecture Notes}
\author{Jane Smith}
\date{\today}
 
\begin{document}
\maketitle
 
\section{Introduction}
 
Let $f: \mathbb{R} \to \mathbb{R}$ be a
continuous function. We define:
 
\begin{equation}
\int_{-\infty}^{\infty} f(x)\,dx
= \lim_{n \to \infty} \sum_{k=1}^{n}
f(x_k)\,\Delta x
\end{equation}
 
\begin{theorem}
If $f$ is integrable on $[a,b]$,
then $\exists\, M > 0$ such that
$|f(x)| \leq M$ for all $x \in [a,b]$.
\end{theorem}
 
% Proof sketch
\begin{proof}
By the extreme value theorem,
$f$ attains its max on $[a,b]$.
\end{proof}
 
\section{Riemann Integrability}
 
A bounded function $f$ is Riemann
integrable on $[a,b]$ if and only if:
 
\begin{equation*}
\sup_P\, L(f,P) = \inf_P\, U(f,P)
\end{equation*}
 
where $L(f,P)$ and $U(f,P)$
denote the lower and upper Darboux sums
for partition $P$ of $[a,b]$.
 
\end{document}
Preview
Live

Real Analysis — Lecture Notes

Jane Smith · March 2025

1  Introduction

Let f : ℝ → ℝ be continuous. We define the Riemann integral as:

−∞ f(x) dx = limn→∞ Σ f(xk) Δx
Theorem 1. If f is integrable on [a,b], then ∃ M > 0 s.t. |f(x)| ≤ M.

2  Riemann Integrability

A bounded function f is integrable on [a,b] iff:

supP L(f,P) = infP U(f,P)

where L and U denote the lower and upper Darboux sums for partition P.

Claude
Cursor
VS Code
Windsurf
GitHub
n8n
OpenAI
Python
Docker
Node.js
Go
npm SDK
Claude
Cursor
VS Code
Windsurf
GitHub
n8n
OpenAI
Python
Docker
Node.js
Go
npm SDK
npm SDK
Go
Node.js
Docker
Python
OpenAI
n8n
GitHub
Windsurf
VS Code
Cursor
Claude
npm SDK
Go
Node.js
Docker
Python
OpenAI
n8n
GitHub
Windsurf
VS Code
Cursor
Claude

\section{Why FormaTeX}

Every LaTeX pain point. Solved.

Whether you are writing a thesis or building an AI pipeline, the friction is gone.

5 GB of TeX Live, just to compile a PDF


Three lines of code. PDF returned.

No installation. No Docker container. No package management. POST your LaTeX, receive a PDF. The entire TeX Live infrastructure runs on our side.

LLM-generated LaTeX breaks 30–40% of the time


Smart Compile auto-fixes the errors.

Missing packages, unclosed environments, bad escaping — LLMs get LaTeX wrong constantly. Smart Compile detects the failures and applies AI corrections before returning an error to your users.

Overleaf's free tier barely works for real projects


A full editor. No cap on projects. AI included.

The FormaTeX editor is a complete browser-based LaTeX IDE. Multi-file projects, live PDF preview, outline panel, symbol palette, file history. Free tier includes 15 compilations and 5 AI requests per month.

Cryptic compilation errors with no help


AI explains the error and suggests the fix.

Paste a broken compilation log. The AI assistant breaks it down in plain English, identifies the root cause, and generates corrected LaTeX. No more guessing what "Undefined control sequence" means.

Collaborating on LaTeX with an advisor is clunky


Real-time multi-user editing. Built in.

Invite collaborators by email. Assign editor or viewer roles. See presence indicators showing who is in the document. Changes sync live across all open sessions.

Security nightmares when running LaTeX on your servers


Sandboxed execution. Compilation files deleted immediately.

Shell escape is disabled. File I/O is locked down. Dangerous commands are blocked at the engine level. Compilation files are deleted immediately after processing. Project files you choose to save are stored securely and only accessible to you.

\section{How it works}

Three workflows. One platform.

For writers

Open a browser. Your full LaTeX IDE loads instantly — nothing to install.

For developers

One endpoint. POST LaTeX, receive PDF. Four engines, sync and async.

For AI builders

LLM-generated LaTeX breaks. Smart Compile fixes it before your users notice.

~/formatex
curl -X POST https://api.formatex.io/api/v1/compile \
  -H "X-API-Key: fex_a8k2mP9..." \
  -H "Content-Type: application/json" \
  -d '{"latex": "\\documentclass{article}...", "engine": "pdflatex"}'
compiling
[pdflatex] Processing document.tex
[pdflatex] Pass 1/1 completed
[pdflatex] Output: document.pdf (24,891 bytes)
[pdflatex] Duration: 142ms
response
HTTP/1.1 200 OK
Content-Type: application/pdf
X-Compile-Duration-Ms: 142
X-Engine: pdflatex

-> document.pdf (24.3 KB)
Read the API docs

\section{Features}

Editor. API. AI. One platform.

Beyond the compiler.

AI that understands LaTeX.

Fix errors, explain commands, generate sections — with full document context.

AI Assistant
main.texline 12
11\begin{equation}
12\intergral_{-\infty} x dx
13\end{equation}
! Undefined \intergral — line 12
Fix this error

Typo: \intergral → should be \integral. Here's the fix:

$\int_{-\infty}^{\infty} f(x)\,dx$
Write a short abstract
\begin{abstract}
We examine the Lorentz
factor in special relativity...
\end{abstract}
Ask about your document...

Edit together, live.

Invite co-authors. See every cursor. Ship together.

main.tex
SK
AR
Yo
3 editing
1\documentclass{article}
2\begin{document}
3\section{Introduction}Sarah
4The theory of specialAlex
5relativity states...

LaTeX that fixes itself.

Detects failures, applies AI corrections, retries silently.

compile/smart
[1/2] pdflatex main.tex
! Undefined \maketitle
AI fix applied
[2/2] pdflatex main.tex
paper.pdf generated
2 passes · 891 mssuccess

Start from a template.

40+ ready-made documents. Click, customize, compile.

Templates
Academic Paperarticle
CV / Resumecv
Invoiceinvoice
Presentationbeamer

Production-ready API.

Generate keys, track usage per key, rotate without downtime.

API Keys
Production
fex_live_sk_••••••••••••3f2a
Usage124 / 500
CI/CD
fex_live_sk_••••••••••••a77b
Usage501 / 500

Your AI agent, now LaTeX-native.

Claude, Cursor, and VS Code can compile LaTeX on your behalf — no curl, no setup.

Claude
Cursor
VS Code
call compile_latex({
engine: "pdflatex",
file: "thesis.tex"
})
result
→ thesis.pdf (142 ms)
MCP docs →

\integrations{all}

Works with your stack.

MCP for AI coding agents. REST API for everything else.

All integrations

...and any stack that can make an HTTP request.

\section{Engines}

Four LaTeX engines.

Pick the right tool for each document.

pdfLaTeX

The workhorse. Fast, reliable, and battle-tested with the widest package support.

Standard documentsmathType1 fonts
XeLaTeX

Unicode-native. Use any system font — Arabic, CJK, OpenType, custom typefaces all just work.

LuaLaTeX

Lua scripting inside your document. Programmatic content, dynamic tables, advanced typography.

latexmk

Runs as many passes as needed. Citations, cross-references, and indices — all resolved automatically.

~/formatex — pdflatex
\documentclass[12pt]{article}
\usepackage{amsmath, amssymb}
\usepackage[margin=1in]{geometry}

\title{Fourier Analysis}
\author{Jane Smith}
\date{\today}

\begin{document}
\maketitle

\section{Transform Definition}
The Fourier transform of $f(t)$ is:
\[
  \hat{f}(\xi) = \int_{-\infty}^{\infty}
    f(t)\, e^{-2\pi i \xi t}\, dt
\]

\section{Parseval's Theorem}
For square-integrable functions:
\[ \int_{-\infty}^{\infty} |f(t)|^2\, dt
   = \int_{-\infty}^{\infty} |\hat{f}(\xi)|^2\, d\xi \]

\end{document}

\section{Use cases}

Built for everyone who works with LaTeX.

Whether you're writing your thesis or building an AI pipeline, the LaTeX friction is gone.

AI App Builders

Teams building AI applications that output LaTeX

LLMs generate LaTeX constantly. Smart Compile auto-detects and fixes broken LLM output before it reaches your users. One call, zero infrastructure, zero error handling on your side.

Students & Researchers

Graduate students, academics, and thesis writers

A modern LaTeX editor with AI that explains your errors and suggests fixes. Collaborate with your advisor in real time. No setup, no install. A better Overleaf.

EdTech Platforms

Educational technology serving students and teachers

Render math-heavy exams, worksheets, and course materials as beautiful PDFs at scale. The API handles compilation — you handle the learning experience.

Document Automation

Invoice, certificate, and report generators

Define a LaTeX template once. Pass JSON variables at runtime. Receive a pixel-perfect PDF. Better typesetting than HTML-to-PDF, without managing a TeX install.

Individual Developers

Solo devs and indie hackers

Skip the 5 GB TeX Live install. POST your LaTeX, get a PDF binary back in milliseconds. Free tier, no credit card, running in 30 seconds.

\section{API}

One endpoint.
Any stack.

POST your LaTeX source. Receive a PDF. Four engines, sync and async — no SDK, no toolchain, no setup.

RESTStandard HTTP. No SDK, no client library required.
4 enginespdflatex, xelatex, lualatex, latexmk — pick per request.
sync/asyncInstant PDF in response body, or webhook on completion.
Read the API docs
curl -X POST https://api.formatex.io/api/v1/compile \
  -H "X-API-Key: fex_a8k2mP9..." \
  -H "Content-Type: application/json" \
  -d '{
    "latex": "\\documentclass{article}\\begin{document}Hello, World!\\end{document}",
    "engine": "pdflatex"
  }' \
  --output document.pdf
response
200 OK
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename=document.pdf
X-Job-ID: 550e8400-e29b-41d4-a716-446655440000
X-Compile-Duration-Ms: 287

← binary PDF (48,291 bytes)

\section{Pricing}

Simple, transparent pricing.

Start free, scale as you grow.

Free

Explore the platform

$0

15

API/mo

5

AI requests/mo

  • pdflatex & xelatex engines
  • 2 API keys · 5 projects
  • 1 MB max file size
  • 30s compile timeout
  • REST API access
  • Community support
Start free
Pro

For indie developers

$4.99/mo

500

API/mo

150

AI requests/mo

  • All 4 engines
  • 5 API keys · 3 collaborators
  • 10 MB max file size · 120s timeout
  • 3 custom templates
  • Streaming & async
  • Soft limit — no hard blocks
Start building
MaxRecommended

For production apps

$14.99/mo

2,000

API/mo

1,000

AI requests/mo

  • All 4 engines
  • 15 API keys · 6 collaborators
  • 25 MB max file size · 300s timeout
  • Priority queue + webhooks
  • AI model selection
  • 25 custom templates
Get started
Enterprise

For high-volume teams

$49.99/mo

15,000

API/mo

5,000

AI requests/mo

  • All 4 engines
  • 50 API keys · 15 collaborators
  • Webhooks + Slack alerts
  • 99.9% uptime SLA
  • Dedicated support
  • Unlimited projects & templates
No credit card requiredCancel anytimeAll plans include API access

\section{FAQ}

Common questions.

Everything you need to know before your first compilation.

\end{document}

Your first PDF. In 30 seconds.

Nothing to install. Free to start.

No credit card required15 free API compilations/moCancel anytime

One quick thing

We track anonymous usage — page views, feature usage, compilation events — to understand what works and what doesn't. No ads, no personal data, no third-party sharing.

Cookie policy