If I would have used \textnormal, there wouldn't be a problem.įor example (I like examples), consider the following LaTeX body, saved to a file textnormalexample_body. When I reused my math expressions, I had to replace all \textrm with \textsf to adjust to this "other default". In a beamer presentation the default font is a sans serif one. But sometimes it is not.Īn example I encountered was reusing LaTeX code from an article in a LaTeX Beamer Class presentation. See the reference guide for a complete list of font styles. In the following example the textsl command sets the text in a slanted style which makes the text look a bit like italics, but not quite. Most of the time the result of these two will be the same because the default font of the body text is a serif one in most cases. The most common font styles in LaTeX are bold, italics and underlined, but there are a few more. \textrm on the other hand activates a roman (serif) font. The advantage of \textnormal is that the text will be typeset in the normal font of the body text. ![]() Apparently the latter is more popular: a google search for "latex textrm" delivers almost 25.000 hits, whereas google search for "latex textnormal" returns not more than 800 hits. ![]() If you you want to use normal text in a math environment (mathdisplay, equation.) you should use \textnormal.
0 Comments
Leave a Reply. |