Questions tagged [text-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
2answers
345 views

Always raise plus sign in text

I have a lot of places in my dissertation where the plus sign appears surrounded by capital letters in text, e.g. NNLL+NNLO. The problem is that by default, the + is aligned so low vertically, that ...
0
votes
0answers
27 views

Correct way to add centered point in text mode

I'm trying to learn more about LaTeX formatting and I'm getting really OCD about the proper format to use in each situation. Something that I use a lot in my writing is the middot, cdot, interpunct or ...
2
votes
2answers
64 views

Transforming a specific package in text-mode into math-mode

The arcs package is useful to put an arc over or under a piece of text. It is a package that works in text-mode, but could be another one that works only in text-mode and not necessarily the one that ...
1
vote
1answer
48 views

Missing parenthesis in display math within text within display math

I'm trying to work out how to recursively nest text and math mode. The following example seems to fail to compile, and does not render the \right): % "text, {$$\int$$}, text" is an arbitrary ...
2
votes
2answers
90 views

Understanding TeX and LaTeX horizontal rules

I just want to have a horizontal rule at the top of the text frame, closed to the top margin. I am trying to know why this is not a trivial issue. As I understand, LaTeX \rule command makes a filled ...
2
votes
0answers
35 views

Advantage of math mode only for numbers [duplicate]

I wonder whether it makes a difference to write numbers, e.g., 3.1416 in math mode $3.1416$ or it is exactly the same as in text mode. I have many numbers in my document, especially decimal numbers, ...
0
votes
1answer
56 views

How does \if \else work at \DeclareDocumentCommand?

I made a command with DeclareDocumentCommand from the packet xparse, and I have had troubles. My problem is that the \ifmmode (if mathmode) and the else don't work correctly, because when I type $$ \...
0
votes
1answer
26 views

How to type the | character of the normal size in text mode?

I dont want to use rule because its long and hideous and I must do it in text mode. Any solutions?
0
votes
3answers
102 views

How to have textmode for “ and ”

I am trying to have " and " for my word but the output: and i find this website: I try to add \usepackage{textmode} with using $\textquotedblleft$ Strawberry $textquotedblright$ But it give error ...
0
votes
0answers
33 views

Changing the font of numeral glyphs locally (in both Math and Text modes)

I'm looking for a simple LaTeX code that would let me change the face of numerals to the "installed system fonts" or the ones in the working directory. It should work in a local scope both in the "...
7
votes
2answers
423 views

Achieving better kerning in text mode italics

In the font I'm using to set italics, the apostrophe / right single quote is outputting poorly kerned: The kerning of the first apostrophe in 'n' and the apostrophes in they've and they're is ...
1
vote
1answer
217 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.
3
votes
0answers
142 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
143 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
293 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 ...
4
votes
2answers
3k views

angle brackets in math and text mode

I use \textlangle and \textrangle in a command \newcommand{\qdist}[1]{\textlangle#1\textrangle} which is used in math and text mode. In math mode, I get the error message LaTeX Warning: Command \...
5
votes
1answer
947 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
544 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
601 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
3k 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
322 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
164 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
543 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 ...
2
votes
1answer
1k 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
4k 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 _.
7
votes
2answers
6k 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
461 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
1k 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
174 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 ...
49
votes
3answers
89k 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
151 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
183 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 ...
8
votes
2answers
15k 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
113 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
1k 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
703 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
204 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
146 views

Right way for text inside math [closed]

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
40 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
362 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
977 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 ...
10
votes
3answers
17k 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
1k 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
626 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
1k 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
7k 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
4k 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 ...
26
votes
4answers
1k 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
237 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
744 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 ...