Linked Questions

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 ...
2
votes
0answers
141 views

Defining upright codimension math operator [duplicate]

How to write $\text{codim}(Y)$ without \text{codim}? Is there command like \dim that I can use to write codimension?
68
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 ...
66
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?
48
votes
1answer
7k views

Which command should I use for textual subscripts in math mode?

Textual subscripts like in W_{total} should be typeset in an upright text font (so that code isn't good practice), as has been discussed in various questions here. Now there are several ways to ...
11
votes
4answers
2k views

Indices with German Umlaut ä - \mathrm{} or \text{}?

I'm wondering about the correct use of \mathrm{} and/or \text{} (or similar) in formulas. I've read these topics (and some more): Is there a preference of when to use \text and \mathrm? and ...
4
votes
2answers
4k views

non-italic font for equation when we use “Subscript”?

I read this answer about non-italic font for equation, however, it does not work when we use Subscript in our equation: \begin{equation} \mbox{$ abc_{d} $} \end{equation} Is there a solution to ...
4
votes
2answers
5k views

Italic Greek characters in Times New Roman

I'm very new to LaTeX! I'm trying to create a template for creating scientific reports as PDFs. I'd like the whole of the document to be in Times New Roman. I've used the package pslatex, which ...
7
votes
1answer
2k views

Math-mode kerning/spacing of letters

Take the following two equations: \begin{equation} o^{AR}_{i,t} = w^{AR}_i x_t + o^{AR}_{i+1,t-1} \end{equation} \begin{equation} o^{MA}_{i,t} = w^{MA}_i x_t + o^{MA}_{i+1,t-1} \end{equation}...
6
votes
1answer
267 views

Why and since when does \mathrm render ligatures?

As explained in answer to this question and several others as well as in various other ressources, \mathrm is for setting upright math symbols (and may thus cause problems when used for text). So if, ...
4
votes
2answers
936 views

Typesetting multi-letter variable names in math mode

In many applications variable names in formulas have more than one letter. In order not to mess up kerning, one cannot simply write $nameff=123$. People seem to use different approaches: \...
2
votes
1answer
4k views

How do I make \text{} in math mode fit the math font?

I am having a problem with text in formulas. I am setting tables in sans-serif in order to improve the readability. The math font stays serif for formulas or symbols within the table, when I switch ...
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 ...
1
vote
1answer
239 views

text format in math mode and none-math mode

I have one problem when I want to align my text font in and out math mode, here is the code: \documentclass[xcolor=x11names,compress]{beamer} \usepackage{xcolor} \usepackage{tikz} \usepackage{...
5
votes
1answer
102 views

Failure of \text within theorem environment

I have an equation within the statement of one of my theorems. Within this equation, I have some text to name a function. However, when this equation appears within the theorem environment, the ...

15 30 50 per page