Sagebrush · Blog · Articles · LaTeX

How Sagebrush's LaTeX differs from LaTeX

Written by Claude Opus 5.5, an AI model made by Anthropic, from the code and tests of the Sagebrush project, led by William Stein (SageMath, Inc.). Every row was checked with `sagebrush latex check` and `render` on November 10, 2026.

Sagebrush's LaTeX editor shows your .tex as a web page that updates as you type. It isn't TeX and it doesn't make a PDF. Part of LaTeX is supported. This page lists what is, what isn't and what you see instead, and where the output differs from pdflatex's.

How it works inside, and how it is tested against TeX Live: How the LaTeX preview works.

What you get

Supported

Supported means the preview shows it, not that it looks exactly as in the PDF (see Differences from pdflatex's output).

area what is shown notes
Document classes article, report, book, amsart, memoir, beamer and others the class sets numbering depth; its page layout isn't used
Your own macros \newcommand, \renewcommand, \def, \newenvironment, counters, conditionals expanded as TeX does, with bounds on work, so a runaway macro stops
Several files \input, \include, a .sty file beside the .tex found from the document's folder as TeX finds them, ../ included, never above the workspace's top folder
Structure \part to \subparagraph, \maketitle, \tableofcontents, abstract, \appendix
Text \textbf, \textit, \emph, \texttt, \textsc, \underline, sizes, \footnote (also [n]), \marginpar, \verb, verbatim
Lists itemize, enumerate, description
Mathematics $…$, \[…\], equation, align, gather, multline, split, aligned, cases, matrices, alignat, flalign; in math \tag, \intertext, \text, \boxed, \cancel; \DeclareMathOperator typeset by KaTeX
Theorems \newtheorem, \theoremstyle, proof
References \label, \ref, \eqref, \pageref, \nameref, \autoref, \cref, \Cref resolved at once, no second run
Floats figure, table, \caption, \includegraphics shown where they are written
Tables tabular, tabularx, longtable, array, \multicolumn, \hline, \cline, \toprule, \midrule, \bottomrule, \cmidrule
Links and color \url, \href, \hyperref, \textcolor, \color, \colorbox, \definecolor
Code lstlisting, minted, Verbatim, \lstinline shown as written, not highlighted
Citations \cite, \citet, \citep, thebibliography with \bibitem see BibTeX below
Beamer frames, block, columns, overlays (\pause, <2->, \only, \uncover, \alt), each theme's headers and footers the preview shows every overlay step at once; Present steps through them
SageTeX \sage, \sageplot, sageblock, sagesilent, and @interact widgets see SageTeX
PythonTeX \py, pycode, pyblock, \printpythontex see PythonTeX

Not supported, and what you see instead

Apart from the two silent differences below, nothing is dropped without a mark. A command the preview doesn't know is shown as a grey chip with its name, for example \multirow, and its argument is shown as text after it. An environment it doesn't know is shown as a plain box with its content. sagebrush latex check lists each one with its line.

what what you see instead
\multirow, \addlinespace, \footnotetext, \rotatebox, \resizebox, \scalebox, \reflectbox, \mintinline a grey chip, then the argument as text
siunitx: \SI, \si, \num, \qty, \unit, \ang a grey chip, then the number or unit as written
biblatex: \autocite, \textcite, \parencite, \footcite; natbib: \citeauthor, \citeyear a grey chip, then the key as text
babel and csquotes: \selectlanguage, \foreignlanguage, otherlanguage, \enquote a grey chip or a plain box; the text itself is shown
subfigure, subequations, algorithm, algorithmic, tcolorbox, mdframed, framed, landscape a plain box with the content
TikZ and pgfplots pictures: tikzpicture a placeholder: the picture isn't drawn
BibTeX and biber: \bibliography with a .bib file the line "[bibliography from refs.bib: BibTeX is not run]", and \cite shows the key in brackets, [knuth84]
PythonTeX's other commands and environments (pyc, pys, pyb, pyconsole, pysub, pyverbatim, and the families other than py) the code as written, or a "not run" mark where its results would go

A package named in \usepackage isn't loaded: its commands work only if they are in the Supported table. A .sty file beside your .tex is the exception: it is loaded and run as TeX.

Two silent differences are known: a @{…} column separator in a table is dropped, and biblatex's \printbibliography shows nothing.

Differences from pdflatex's output

the PDF Sagebrush's preview
Pages fixed pages, page breaks, headers and footers one continuous web page; Beamer frames are slides
Fonts Computer Modern, or the fonts the document loads the browser's fonts for text; KaTeX's fonts for mathematics
Line breaks and spacing TeX's paragraph breaking the browser's
Floats placed by TeX ([t], [h], ...) where they are written
References after a second run at once
Bibliography from BibTeX or biber only thebibliography written in the document
Pictures TikZ and pgfplots drawn placeholders
Speed about 0.5 to 20 s to remake the PDF after an edit about 25 to 260 ms from a keystroke to the preview (benchmark)

SageTeX and @interact

PythonTeX

Sagebrush only

These are Sagebrush's own, in no LaTeX package, so real LaTeX stops at each of them. They're named in SageTeX's style.

For agents

Updated 2026-11-11 · source on GitHub