Linked Questions

0
votes
0answers
228 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}_{\...
216
votes
4answers
520k 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 ...
189
votes
3answers
114k 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 ...
120
votes
5answers
31k 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)}{\...
56
votes
6answers
15k 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$, ...
69
votes
3answers
21k 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 ...
67
votes
1answer
61k 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?
26
votes
3answers
16k 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
22k 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
9k 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
1k 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
2k 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
4k 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
1k 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 ...
7
votes
1answer
793 views

Standard for typesetting mathematical objects other than variables

Is there a standard in mathematics for typesetting the textual (not symbolic) identifiers of mathematical objects other than variables? Textual identifiers of mathematical objects other than ...
4
votes
2answers
2k views

How do I get upright text as a subscript?

I want my subscript to be upright, so T and not as in $T$. How do I do it? \documentclass{article} \begin{document} How can I get the subscript in $\Pr_T$ as T and not as in $T$? \end{document}
5
votes
1answer
621 views

Should superscript and subscript be upright in this case? [duplicate]

What do you think which notation is better to read? The set $B^{high} = {b_1, \ldots, b_n}$ should indicate the set of all buildings which are high and $B^{low} = {b_1, \ldots, b_n}$ all buildings ...
0
votes
1answer
2k views

How to multiply a fraction

I have an equation in which inside I have a fraction. I want to put a number (3.3) that indicates multiplication. \begin{eqnarray} \phantom{0}LOD = \frac{\phantom{0}S}{N} = 0.1\phantom{0} \si{\ng/\...
5
votes
0answers
1k views

Difference between \mathrm, \operatorname and \text? [duplicate]

Possible Duplicate: What’s the difference between \mathrm and \operatorname? I am a beginner of latex, and am always having a hard time differentiate these commands since they seem always produce ...
3
votes
0answers
626 views

Use upright text in \text within theorem

How to make the text in \text to be automatically upright in a theorem environment? For example, I want to use these codes to get the following effect: \documentclass{article} \usepackage{amsmath} \...
0
votes
0answers
70 views

What is space in a math environment? [duplicate]

I want to get a space to the phrase "1\times 8 \mathrm{ matrix}", how can I get it inside the math environment? \begin{align*} C_{D_{1\succ 2}, \mathrm{increasing}} &= \underbrace{\begin{...