The tag has no wiki summary.

learn more… | top users | synonyms

29
votes
3answers
3k 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 ...
27
votes
4answers
7k views

Pixel-perfect vertical alignment of image-rendered TeX snippets?

What is the most accurate way to automatically calculate the text baseline in an image that has been rendered from a TeX snippet—so that the rendered image can be given proper vertical alignment in a ...
25
votes
3answers
1k views

Why are so many symbols restricted to math mode?

A common beginner's mistake is to forget \(...\)/$...$ around symbols that require math mode. Why doesn't (La)TeX let people use isolated symbols in text mode by default? I am sure there are at ...
24
votes
4answers
616 views

Smart parentheses?

Is there a way of smartly nesting parentheses and square brackets (in text mode), so that LaTeX detects nesting relations and typesets them accordingly? I'm thinking in something like csquotes does ...
20
votes
4answers
2k views

Underscore in textmode vs mathmode

I use _ character often in text mode, so I changed category of underscore: \catcode\_=12, but that applies also to mathmode and now I'm unable to make subscripts with underscore in mathmode. Is there ...
16
votes
4answers
1k views

Writing a negative number in text mode: $-$9 or $-9$?

If we want to produce -9, typing -9 in an input file is not correct because - is intentionally designed for hyphenation so its glyph is bad to represent the minus sign. To produce the minus sign, we ...
16
votes
2answers
303 views

Teuthonista diacritics?

I am looking for certain diacritics from the phonetic transcription system of the Sprachatlas der deutschen Schweiz (Swiss German linguistic atlas). It is a system that is similar to the one sometimes ...
9
votes
1answer
260 views

How to imitate a character that looks similar to an inverted 2?

I am trying to imitate a character that looks similar to an inverted 2. It can be seen at the start of the second last words in the following image: What I have come up with so far is using ...
8
votes
2answers
455 views

Is it worth defining \ensuretext ?

We already have \ensuremath to make sure the argument get enclosed in math mode. Is it worth defining \ensuretext ?
8
votes
3answers
174 views

How can you tell whether a given macro is meant to be used in text mode or maths mode?

I recently read answer that discouraged the use of \ensuremath on the grounds that one should know whether each command is meant to be used in math mode or text mode. Given a command, how can you tell ...
8
votes
2answers
624 views

Is it possible to typeset text inside math without amsmath?

Is it possible to typeset text properly inside math without amsmath? Typically I typeset short text using mathrm, or text (amsmath) within equation: $M_\mathrm{effective mass}$ $M_\text{effective ...
7
votes
1answer
129 views

Decrease length of underscore character in normal text (gender_gap)

I use the underscore character _ in normal text mode (not typewriter). However, it is quite long. How can I decrease its length so that it is shorter? I followed the Tex FAQ on how to typeset an ...
6
votes
4answers
8k views

Missing $ inserted

I am new to latex. I am trying to compile someone else's document. I have all the correct packages installed, but I get the following error: *Overfull \hbox <37.8394pt too wide> in paragraph ...
5
votes
2answers
618 views

sub- and superscripting together in text mode

I want to use sub- and superscript together in text mode. I've found this macro to solve the problem \def\textsubsuperscript#1#2{\rlap{\textsubscript{#1}}\textsuperscript{#2}} But it doesn't works ...
5
votes
2answers
117 views

How to use \left and \right inside text environment

I would like to know how to use the \left and \right options in the text environment. This is what I am trying to do: \left( when factorizing $e^{-2000t}$\right) As you can see, I am trying to make ...
4
votes
1answer
72 views

How to show latex commands in text mode

Sorry for the basic question. What I want to do is to show the latex command and, right after that, the output. But how can I show latex formulas without obtaining errors for not using the math mode ...
4
votes
1answer
111 views

Adding Non-breaking space after single character in text mode

Is it possible in LaTeX (2e) to create macro or other processing command that will add non-breaking space after single character in text mode? Example: A new example here will add a "tilde", after ...
4
votes
3answers
1k views

Is there a “cases” environment in text mode?

The title says it all: The "cases" environment works only in math mode. Is there an alternative in text mode?
3
votes
1answer
516 views

Command for inverse circumflex in text mode

I would like to write this name that have an inverse circumflex above letter c: I have found the command \check{c}, but it is in math mode. I want to find something equivalent but in text mode, to ...
3
votes
2answers
104 views

inserting symbols in ieee paper

I want insert some symbols like A' and "BACK" in certain parts of the document.I tried to do it by A\' and \"BACK\" but returned with errors. How to insert this extra symbols The next problem is hoe ...
2
votes
1answer
247 views

Access minus symbol of postscript font in textmode

Do postscript fonts such as libertine (from the libertine-legacy package) or mathpazo have a minus sign that can be accessed when in text mode? What I am trying to do is substitute the normal dash ...
0
votes
2answers
239 views

Vertical bar in text mode [duplicate]

How do I create a vertical bar in text mode, which is a bit thicker and taller than the | character? I used to know how to do this with boxes, but googling no longer turns up any useful resources. ...