Questions tagged [text-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
42 views

Textsymbol in mathmode

I need to be able to use unicode symbol #643 (or something very similar) in mathmode. It looks like a small integral sign and is contained as \textesh in the tipa package, but I can't use it in ...
user avatar
2 votes
0 answers
37 views

Best practice to present math and text in aligned structure with different consecutive environments

I would like to ask your opinion on the best way to present aligned structured math and text content within different environments, for instance: \documentclass{book} \usepackage{mathtools,amssymb,...
user avatar
  • 61
2 votes
2 answers
75 views

Is there a way to automate a switch into text mode after a _

I am a physics student and we have been told that indices that abbreviate some descriptive word or indices that are just to distinguish between say different objects like the mass of two objects A and ...
user avatar
  • 21
1 vote
1 answer
112 views

times symbol in text mode

How can I write the × (multiplication) symbol in text mode? The journal forbids math in-text like $\times$, and nothing is showing up on my searches
user avatar
  • 239
0 votes
1 answer
70 views

How to write text-version of less than or equal to?

I'm looking for the text mode version of $\leq$ Every time I search on Google/DuckDuckGo/etc. I only get results for the math-mode version of ≤ which is $\leq$ I'm writing in a non-standard font, so ...
user avatar
  • 239
1 vote
0 answers
67 views

Does it really matter if I use text-mode vs. inline math?

I feel like this is sort of a stupid question but, I figure I'll ask anyways. I'm trying to typeset 2°, used in the sense of 'folio', the printing notation. I'm reasonably certain that context-wise, ...
user avatar
7 votes
3 answers
581 views

Greek letter with two dots over in text mode

I want to write the Greek letter theta with two dots over it in text mode, but I haven't gotten it to work yet. I have both these packages: \usepackage{amsmath} \usepackage{textgreek} and I have ...
user avatar
6 votes
4 answers
837 views

Tilde over greek letter in text

how can I get a tilde over the greek letter nu in text. I am using: \usepackage{textgreek} I tried \~\textnu but that gives the tilde in front of the letter and not above it. Thanks!
user avatar
7 votes
3 answers
981 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 ...
user avatar
  • 499
0 votes
2 answers
128 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 ...
user avatar
2 votes
2 answers
96 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 ...
user avatar
  • 46.3k
1 vote
1 answer
115 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 ...
user avatar
  • 415
2 votes
2 answers
170 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 ...
user avatar
  • 828
2 votes
0 answers
43 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, ...
user avatar
1 vote
1 answer
137 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 $$ \...
user avatar
0 votes
1 answer
32 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?
user avatar
  • 111
0 votes
3 answers
181 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 ...
user avatar
  • 2,423
8 votes
2 answers
701 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 ...
user avatar
  • 600
1 vote
1 answer
321 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.
user avatar
  • 19
3 votes
0 answers
171 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 ...
user avatar
  • 1,277
1 vote
1 answer
267 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?
user avatar
0 votes
0 answers
387 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 ...
user avatar
4 votes
2 answers
5k 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 \...
user avatar
5 votes
1 answer
2k 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 ...
user avatar
  • 2,500
5 votes
3 answers
807 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“, ...
user avatar
  • 1,560
1 vote
1 answer
1k 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 ...
user avatar
  • 11
7 votes
2 answers
5k 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 ...
user avatar
1 vote
1 answer
533 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 ...
user avatar
  • 818
1 vote
1 answer
216 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, ...
user avatar
5 votes
2 answers
756 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 ...
user avatar
2 votes
1 answer
2k 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 ...
user avatar
  • 21
5 votes
1 answer
10k 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 _.
user avatar
7 votes
2 answers
9k 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 ...
user avatar
  • 71
0 votes
1 answer
516 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 ...
user avatar
  • 269
2 votes
1 answer
2k 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?
user avatar
1 vote
1 answer
198 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 ...
user avatar
68 votes
3 answers
126k 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 ...
user avatar
2 votes
1 answer
328 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 ...
user avatar
  • 145
2 votes
3 answers
195 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 ...
user avatar
  • 123
9 votes
2 answers
18k 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 ...
user avatar
  • 93
0 votes
0 answers
114 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 ...
user avatar
  • 1,001
8 votes
2 answers
2k 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 ...
user avatar
  • 1,825
6 votes
3 answers
905 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 ...
user avatar
1 vote
1 answer
260 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 ...
user avatar
  • 1,763
1 vote
0 answers
157 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 ...
user avatar
  • 35.8k
1 vote
1 answer
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:- ...
user avatar
4 votes
1 answer
435 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 ...
user avatar
  • 1,075
3 votes
1 answer
1k 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 ...
user avatar
  • 313
14 votes
3 answers
25k 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 ...
user avatar
  • 311
4 votes
1 answer
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 ...
user avatar
  • 309