Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
base | MathJax: Full | KaTeX: Full | XeTeX: Full |
textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full |
Syntax#
\bfTakes no arguments. Same argspec in base and textmacros. Reading argspecs
Common tasks#
How to switch a short run into bold math#
{\bf ...} is a legacy switch; prefer \mathbf for new writing.
How to bold only one identifier#
Examples#
Package variants#
| Package | Signature | Allowed mode | Notes |
|---|---|---|---|
base | | math | Changes the font of subsequent characters in the current group to bold. |
textmacros | | text | Legacy declaration that switches following text to bold styling until the current group ends. |
In TeXForm#
TeXForm parses this entry as declarative syntax; the package determines its argument specification.
Equivalent forms#
\textbf{...}approximate\textbfis a command with arguments, whereas\bfis declarative.{\bfseries ...}exact
See also#
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
{\bf a} | Positive · baseline | Pass | Pass | Pass |
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
{\bf a} | Positive · baseline | Pass | Pass | Pass |