The following example using \mathrm
seems to work nicely in MikTeX 2.9 with a tikz
-box:
\documentclass{article}
\usepackage{lipsum}
\usepackage{tikz}
\newcommand*{\mycolorbox}[1]{
\begin{tikzpicture}
\node[rectangle,inner xsep=10pt,inner ysep=10pt,
anchor=south,text width=\columnwidth,shade]{#1};
\end{tikzpicture}
}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{helvet}
\usepackage[mathrmOrig]{sfmath}
\begin{document}
sans serif text
\mycolorbox{Sans serif: $a + b$, CM: {$\mathrm{c}$}}
\end{document}
I think you need to explicitly enable this with the mathrmOrig
option in sfmath
. The result looks like this:
In texdoc symbols
(the Comprehensive LaTeX Symbol List) you can find Table 316:
The footnotes are explained in the document. Table 327 will additionally explain bold math.
Oh and needless to say but if you were asking this question because you need more mathematical symbols, the Comprehensive List is just your document. Greek variants, Hebrew, Tables 139 to 147 are letter-like symbols ... you'll probably never run out of symbols again.
Edit: After reading this answer https://tex.stackexchange.com/a/60018/13450 I feel the need to also point to the mathalfa
package that is referenced there, providing even more alternatives than shown above.
Edit 2: This answer seems so popular that I decided to include the mathalfa table as an image as well. This is taken from the mathalfa documentation and some of the fonts are commercial or need to be installed from external sources. See the documentation for more information if you consider using any of these fonts. Warning, very long table ahead (stitched together from a multi-page table).
Edit 3: With this thread being so popular for reasons I don't entirely understand, I feel compelled to say that there is rarely a point in using more styles than regular, bold, italic, script/calligraphic (I wouldn't even mix those) and blackboard bold. What these tables really show are typefaces you can use for these styles, not a huge number of styles (which would be pointless and ugly anyway). If, however, you are just searching for math fonts to go with your main font, the overview you probably actually want before even consulting these tables is the list of math fonts on the LaTeX Font Catalogue.
Best Answer
Use the font defined by
newtxmath
, with some help (the characters are not in the standard font position).Old answer (kept for those who still run TeX Live 2018)