Tag Info

2

What A. Ellet said can be simulated in a complete code snippet as follows. thm environment makes the enclosed text italic. As \text inherits the font from the outside environment, the text \text{ with } becomes italic as well. To change it back to normal font, use either \text{ \normalfont with } or \text{ \textnormal{with} }. ...

1

To answer your first question: It does not work because you are in math-mode. On the other hand, if you are not in math-mode, something like \textit{Blablabla \normalfont{Normalfont Bla} More Bla} won't work too because normalfont does not take an argument. Try this one to see the difference: \documentclass{article} \begin{document} \textit{Blablabla ...

2

The \textit macro does not generally control the appearance of the text in the math environment. That's done separately. In math mode you can use \mathrm{rad} Or if this is to be the name of a function you can load the amsmath package in the preamble \usepackage{amsmath} and then in the body of the text call \operatorname{rad} If this is ...

2

Both ulem and soul can achieve what you're after, although it seems that the latter is slightly preferred. In the following examples, texts are colored red only for illustration purposes. Changing the color to white will "hide" the texts. Code \documentclass{article} \usepackage{ulem,xcolor} \usepackage{soul} ...

Top 50 recent answers are included