katex include text in equation code example
Example: string in equation latex
\documentclass{article}
\usepackage{amsmath}
\begin{document}
abcdef
$\text{abcdef} + \textrm{abcdef} + \textnormal{abcdef} + \mathrm{abcdef}$
{\sffamily
abcdef
$\text{abcdef} + \textrm{abcdef} + \textnormal{abcdef} + \mathrm{abcdef}$
}
\end{document}