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 ...
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?
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 ...
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?
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 ...
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 ...
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: $$\mbox{ abc_{d} }$$ Is there a solution to ...
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 ...
2k views

### Math-mode kerning/spacing of letters

Take the following two equations: $$o^{AR}_{i,t} = w^{AR}_i x_t + o^{AR}_{i+1,t-1}$$ $$o^{MA}_{i,t} = w^{MA}_i x_t + o^{MA}_{i+1,t-1}$$...
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, ...
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: \...
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 ...
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 ...