Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [text-mode]

The tag has no usage guidance.

2
votes
1answer
49 views

Rule for writing superscript in text mode

In the scope of gaining space, I would like my superscript minuses to be shortened from: $ J^{-1} $ to $ J^{\text -1} $ using a rule.
0
votes
0answers
51 views

Why do some commands need to be in math mode while other commands do not?

For example: \documentclass{article} \usepackage[svgnames]{xcolor} \begin{document} \colorbox{Gainsboro}{sdfASDF} $\times$ \end{document} Here, \colorbox{Gainsboro}{sdfASDF} doesn't need to be ...
3
votes
0answers
94 views

Good habits: using \ensuremath to typeset math in text mode [duplicate]

All of this question is about \ensuremath command. I would like to know, possibly from expert users, if there are any counter effects in using math commands in the text via \ensuremath and whether ...
1
vote
1answer
62 views

low resolution in text mode [duplicate]

Why have I lower resolution in text mode than in math mode? Is it normal or some packages are missing?
0
votes
0answers
174 views

LyX: how to change font style of greek letters in regular text mode?

In regular text-mode in LyX, I need to use some Greek letters. I'm inserting the Greek letters by "Insert" - "Special Character" - "Symbols"- "Greek". What I get is But, what I would like to get is ...
3
votes
1answer
347 views

What is the difference between “-” and “--” in text mode? [duplicate]

I'm interested in all the difference, that means: appearance: If there are common rules across fonts like distance from baseline, length and so on. typographical rules: If they are handled ...
4
votes
3answers
281 views

Declare command for both math and text mode: Spacing

I want to create a command \points working in both math and text mode. Unfortunately I still have problems creating the correct (horizontal) spacing after several attempts. Here is my basic „setup“, ...
1
vote
1answer
305 views

How to type a circumflex over a greek letter in text mode?

I am trying to type a circumflex over a Greek letter in \chapter. In particular, I'm using this package: \usepackage{textgreek} However, if I write \^{\textPi} I get this result: while I want the ...
7
votes
2answers
2k views

What's the usual, standard way to write text in math mode?

This previous question asks about several options for escaping math mode to write text-like things. The accepted answer describes what each of those options do, and why. But which of those options ...
1
vote
1answer
187 views

Using letters from math font in text mode

I am typesetting documents with example code and I often typeset metasyntactical variables or text. For example : In OCaml, one cannot assign values to variables like in Python but one can bind the ...
1
vote
1answer
134 views

How to test against text or math mode in ConTeXt?

I want a \doifmode for text mode or a \doifnotmode for math mode but math and text are not defined as system modes by ConTeXt. Hungarian typography requires small space before certain characters, ...
5
votes
2answers
325 views

Printing file name containing underscore

I am using pdfpages package to include a few files into the big one. I want to print the file name, go to new page and include the file. The problem is that when the filename contains _ LaTeX yelds ...
3
votes
1answer
911 views

Math expression and number in text mode

I am writing an article for an IEEE journal. At one paragraph, I put explanation about a preceding equation like this: where c1 = 0.0123 is a coefficient from this document. My question, how ...
2
votes
1answer
1k views

How to write _ in LaTeX without it complaining

How can I write _ in LaTeX without it trying to force me to use math mode, which I do not want to use, as it will (after compilation) not display an _.
5
votes
2answers
3k views

Adding a dot over greek letter in text mode

I have searched but have not found a solution to the following problem. I am trying to shift the location of a dot accent over a greek letter using the textgreek package. However, the dot is shifted ...
0
votes
1answer
349 views

Change fonts for the entire document for both text and math mode

I'm having some difficulties in changing fonts for the entire document. By searching similar questions, I could only find solutions regarding specific fonts. By the way, I'm using MacTeX-2016 and I'm ...
1
vote
1answer
849 views

Using underscore for subscript in text mode using underscore only [duplicate]

I want to use subscripts without actually being in math mode. N_A is Avogadro constant instead of $N_A$ is Avogadro constant Is there any method I can do that?
1
vote
1answer
145 views

Draw overbar with text above it in text-mode to group text

I want to reproduce the text shown in the figure in a beamer presentation. Is there a simple way of reproducing it using TikZ/PGF or another package? Not exactly an overbar, but I do not know its ...
31
votes
3answers
56k views

Using square bracket in text mode

I would like to include text like the following in a latex document [2007] EWCA Civ 1042. Unfortunately if I use \[2007\] EWCA Civ 1042 the number within the square brackets is typeset on a separate ...
1
vote
1answer
98 views

Define symbols differently in text mode versus math mode

I'd like to define \a to be the $\forall$ symbol, but I'd like it be the regular $\forall$ in text-mode and \mathsmaller{\forall} in math mode. Is there any easy way to do this? I'm guessing it ...
2
votes
3answers
178 views

Avoid lots of \text{} commands in formulas

I am working on typing a document with a lot of formulas which have words in them. I know I can use \text{} from the AMS package to make the word appear normally in the equation, but I was wondering ...
6
votes
2answers
11k views

Superscript and subscript together in text mode

I want to use super and subscript at the same time in text mode. I cannot use math mode because I created macros which only work in text mode. I found this question: Vertically aligning ...
0
votes
0answers
94 views

Change font only for numeral in text mode

I want to change the font used in 0123456789 to the same as defined in $0123456789$. I know that I can do it to math mode with this command: \DeclareMathSymbol{8}{\mathalpha}{mymathnumerals}{`8} Is ...
6
votes
2answers
500 views

Size of parenthesis ( ) in text mode

Is known that you change the sizes of parenthesis in math mode, but in text mode?. For example, I have this situation: (and there is open ball $B(x,\nicefrac{1}{i})$) As you can see the two last ...
6
votes
3answers
636 views

A custom “letter” in text mode

I am trying to typeset a letter x (in both lower- and uppercase) that has a small circle overlaid exactly onto the (perceived) middle of the character. My current best effort is x\llap{$\circ$}, but ...
1
vote
1answer
173 views

Typeset pgfmath number in text mode

Some of the figures I make with pgfplots use pgfmath to calculate the tick positions for the extrema of a function, with code similar to the one given here. However, these numbers seem to always be ...
1
vote
0answers
111 views

Right way for text inside math

I'd like to know (if there is) the better way to punctuate text inside math mode. I mean, when we use , or ;, they are punctuation for the text, not for the math and so I think that they should be ...
1
vote
1answer
37 views

'Insert three vertical aligning texts by using the Text-environment'

The three texts are (1). (The coefficients of x+1) (2). (The coefficients of (x+2)^{2}) (3). (The coefficients of (x+1)^{3}) NOTE:- The alignment of the three texts must look something like this:- ...
4
votes
1answer
230 views

How to create a newcommand with 2 different meanings for math mode and text mode?

I use the \usepackage{newunicodechar} to enter easily some unicode characters in math mode. For example I used unicode curled phi ( ϕ ) to insert phi in math mode. The problem is that any Unicode ...
3
votes
1answer
847 views

How do I leave horizontal mode?

I was working on my resume and for some reason there is an error message that says "You can't use \moveleft in horizontal mode." I've been working on this for the past 45 minutes and I haven't really ...
8
votes
2answers
12k 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
805 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
2answers
443 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 ...
3
votes
2answers
901 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
2answers
6k 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. I'...
10
votes
2answers
2k 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 ...
25
votes
4answers
955 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 ...
8
votes
3answers
222 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 ...
20
votes
2answers
677 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
657 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 graphicx: ...
65
votes
3answers
18k 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 ...
25
votes
3answers
4k 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 ...
2
votes
1answer
476 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 ...
22
votes
4answers
9k 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 ...
4
votes
1answer
3k 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 ...
9
votes
2answers
3k 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 ...
30
votes
4answers
9k 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 ...
12
votes
3answers
6k 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?
17
votes
4answers
5k 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 ...
5
votes
2answers
4k 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 ...