Boxes and text\textsf

\textsfCommand

Sans-serif text labels or identifiers inside math expressions.

\textsf{a}
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
0.07% of corpus formulasrank 122 of 263
Commonality
medium
Tags
presentation
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Full
textmacrosMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\textsfm:T{a}text content

Argspec m:T — one mandatory argument. Same argspec in base and textmacros. Reading argspecs

Examples#

base

\textsf b

textmacros

\text{\textsf{a}}

Package variants#

PackageSignatureAllowed modeNotes
basem:TmathSans-serif text labels or identifiers inside math expressions.
textmacrosm:TtextUsed to switch a short span of text to sans-serif inside MathJax text mode.

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

Expands to (textmacros)#

\textsf{#1} {\sf #1}

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\textsf{a}Positive · baselinePassPassPass
\textsf aPositive · bare[0]PassPassPass
\textsf{a^2}Negative · neg:T[0]PassFailFail
textmacros
InputCaseMathJaxKaTeXXeTeX
\textsf{a}Positive · baselinePassPassPass
\textsf aPositive · bare[0]PassPassPass
\textsf{a^2}Negative · neg:T[0]FailFailFail
All 21 in Boxes and text