Linked Questions

0
votes
0answers
226 views

Kerning subscripts [duplicate]

\newcommand{\EQ}{\begin{equation}} \newcommand{\EN}{\end{equation}} \EQ \vec{F}_{TOTAL} = \vec{F}_g + \vec{F}_{OTHER} \EN The small g after F looks like it's hanging in space. Using \EQ \vec{F}_{\...
202
votes
4answers
469k views

What is the “correct” way of embedding text into math mode?

Lets say I have something like: \[ Let x = number of cats \] (This is a contrived example, but pretend we are actually inside a long align environment block...) "Let" and "number of cats" need to ...
174
votes
3answers
98k views

What's the difference between \mathrm and \operatorname?

I apparently can't see the difference in a compilation (pdflatex) between \mathrm and \operatorname. So, as in the title the question is: is there a difference? Which one is preferable in what ...
119
votes
5answers
28k views

Is there a preference of when to use \text and \mathrm?

I'm unsure of when it is preferable to use \text versus \mathrm, is there some unwritten rule about the use of these? For example, I saw the following code in a math post: \frac{\mathrm{lcm}(m,n)}{\...
57
votes
6answers
14k views

Should subscripts in math mode be upright?

In one-letter subscripts, like $x_i$, the subscript is usually typeset italic. Is this the typographically right thing to do? Consider this case: The Boltzmann constant is often written as $k_B$, ...
65
votes
3answers
19k views

Difference between various methods for producing text in math mode

What is the difference between \text, \textrm, \textnormal, and \mbox (and possibly other commands commonly used to produce text in math mode)? Various (La)TeX tutorials teach different methods, and ...
60
votes
1answer
55k views

Difference between \textrm{} and \mathrm{}

Can you explain me what is the difference between \textrm{} and \mathrm{} when they are used in math mode. In what context one is preferred over the other?
25
votes
3answers
14k views

Is \mathrm really preferable to \text? [duplicate]

It seems to be the de facto standard to use \mathrm for upright letter notation in math mode as opposed to \text. Would it not be better to use \text in general? One particular problem I am thinking ...
16
votes
3answers
21k views

Problem formatting a subscript in math mode

$\nu_{\rm FWHM}$ prints FWHM too large. But when I try: $\nu_{\mbox{\tiny FWHM}}$ the size is okay but the kerning looks wrong. What is the best way to make a compact little FWHM subscript tag on ...
12
votes
1answer
8k views

Text in subscript

For my text-in-mathmode needs in LaTeX, I use \mbox. However, it does not seem to behave well in subscripts. How can I write text that adjusts its height? $ 3 \mbox{dB} = f_{ 3 \mbox{dB} } $ ...
5
votes
4answers
463 views

Non-italic (roman) subscripts in math mode

Is there a way to set indices (subscripts) to non-italic globally? I'm aware of the case by case X_{\text{text goes here}} But I'm having to change that across a whole document is becoming a pain.
10
votes
2answers
1k views

What exactly does \DeclareOldFontCommand and \DeclareRobustCommand do?

In the article class appears the following code related with the font selection: \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm} \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf} \...
10
votes
2answers
3k views

Redefine underscore to produce roman subscript

I would like to redefine the underscore _ to automatically set subscripts in math mode in roman type, as I currently find myself almost always using _\mathrm{}. I can't find a way of redefining what _ ...
8
votes
3answers
805 views

Effectively, how to do “Underbrace” under two “Underbraces”?

Goal: I am trying to find a way to write an equation for: However, I fail, or at least so far could not find a way, to add the last layer in the bottom for "magnetic flux" using \underbrace. Here is ...
6
votes
1answer
18k views

Textual subscript in math mode

I want to put some short words in certain subscripts when I am in math mode, for example: \[W_{total} = \sum{W_i}\] but I think LaTeX understands this as the product of t, o, t, a and l. Is in any ...

15 30 50 per page