This topic has 21 commands from the base, textmacros, and ams packages. Commands show whether MathJax, KaTeX, and XeTeX render them. Entries are ordered by how often they appear in corpus formulas.
- Entries
- 21 commands
- Packages
- base 20 · textmacros 9 · ams 1
- Most used
- \text 8.70%
- Full support
- MathJax 19/21 · KaTeX 15/21 · XeTeX 11/21
Entries#
| Name | Definition | Packages | MathJax | KaTeX | XeTeX | Frequency |
|---|---|---|---|---|---|---|
\text | Inserting words or short phrases into mathematical expressions. | base, textmacros | MathJax: Partial | KaTeX: Full | XeTeX: None | 8.70% |
\mbox | Boxing short text fragments inside math expressions without line breaking. | base | MathJax: Full | KaTeX: None | XeTeX: Full | 2.99% |
\textrm | Roman/upright text inside math expressions, especially in older LaTeX source. | base, textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full | 1.28% |
\textbf | Bold text labels or emphasis inside math expressions. | base, textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.70% |
\hbox | Low-level boxing of short text fragments inside math expressions. | base | MathJax: Full | KaTeX: Full | XeTeX: Partial | 0.41% |
\textnormal | Resetting inserted text to the surrounding normal text style inside math expressions. | base, textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.32% |
\textup | Explicitly setting inserted text upright inside math expressions. | base, textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.32% |
\textit | Italic text labels or short annotations inside math expressions. | base, textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.13% |
\texttt | Monospace or code-like text inside math expressions. | base, textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.08% |
\textsf | Sans-serif text labels or identifiers inside math expressions. | base, textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.07% |
\emph | Used in text mode to emphasize text, typically rendering as italics | textmacros | MathJax: None | KaTeX: Full | XeTeX: Full | 0.07% |
\boxed | Highlighting an important formula or final result by drawing a box around a math expression. | ams, base | MathJax: Full | KaTeX: Full | XeTeX: Partial | 0.03% |
\fbox | Used to draw a rectangular border (box) around mathematical or text content. | base | MathJax: Full | KaTeX: Full | XeTeX: Full | <0.01% |
\parbox | Creates a fixed-width paragraph box around content, with optional vertical alignment, for line-breaking or boxing short text/math material. | base | MathJax: Full | KaTeX: None | XeTeX: Full | <0.01% |
\makebox | Used to place content in a horizontal box with optional width and alignment, especially for layout/presentation control around short text or math fragments. | base | MathJax: Full | KaTeX: None | XeTeX: Partial | <0.01% |
\vcenter | Used in plain-TeX style math constructions to place material in a vertically boxed container aligned to its center. | base | MathJax: Full | KaTeX: Full | XeTeX: Partial | <0.01% |
\vbox | Used in plain-TeX style math constructions to place material in a vertically boxed container aligned to its bottom/baseline side. | base | MathJax: Full | KaTeX: None | XeTeX: Partial | <0.01% |
\framebox | Used to place text or math inside a framed box, optionally specifying the width and horizontal alignment. | base | MathJax: Full | KaTeX: None | XeTeX: Partial | <0.01% |
\vtop | Used in plain-TeX style math constructions to place material in a vertically boxed container aligned to its top. | base | MathJax: Full | KaTeX: None | XeTeX: Partial | 0% |
\LaTeX | Used to typeset the LaTeX logo as a stylized wordmark inside mathematics | base | MathJax: Full | KaTeX: Full | XeTeX: None | — |
\TeX | Used to typeset the TeX logo as a stylized wordmark inside mathematics | base | MathJax: Full | KaTeX: Full | XeTeX: None | — |