pdfTeX online

Run pdfTeX online in your browser: plain TeX in the Knuth tradition, no document class, straight to a PDF.

First page of the pdfTeX example, compiled with pdfTeX

Open in LaTeX.to Download the example (zip)

How to compile with pdfTeX on LaTeX.to

Everything runs in your browser: nothing to install, no login, no compile timeout.

What pdfTeX is

Every pdfLaTeX run is a pdfTeX run. The difference is the format loaded on top of the engine: pdfLaTeX loads LaTeX, with its document classes and thousands of packages, while plain pdfTeX loads Knuth's original plain format, about nine hundred lines of macros and nothing else. No \documentclass, no \begin{document}, no packages. The file ends with \bye.

That is what the example on this page is: a plain TeX file, compiled by pdfTeX, coming out as a PDF. It picks a font with \font\titlefont=cmbx12 at 20pt, centers a line with \centerline, and writes display math between double dollars, the way the TeXbook does.

When to use it

pdfTeX vs XeTeX vs LuaTeX

All three engines run the plain format.

Auto tells them apart by the file: \bye with no \documentclass means plain TeX, \directlua sends it to LuaTeX, a quoted \font line to XeTeX, anything else here.

More engines: LuaTeX, XeTeX and all engines.