Questions tagged [text-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
233 views

\NP macro as in P=NP formula, to work for both text and math modes

I want \NP command to produce the string "NP" in both text and math (e.g. P=NP formula) modes. I also want it to be styled (even if it is in math mode) the same as the surrounding text (...
porton's user avatar
  • 1,208
1 vote
3 answers
100 views

Why does \hfill work in math mode but not \vfill?

This example writes three lines, each of which have four numbers separated by an equal length of space. \documentclass{article} \begin{document} \noindent \thispagestyle{empty}% 1\hfill2\hfill3\hfill4\...
zhsm54983's user avatar
1 vote
2 answers
153 views

How to make a new command that accepts math parameters?

So I have been trying to make a command to display my very particular notation for restriction, but I believe parts of it involve text commands and other parts involve math commands, I thought I had ...
Felipe Dilho's user avatar
0 votes
0 answers
14 views

How to make a new command that accepts math parameters? [duplicate]

So I have been trying to make a command to display my very particular notation for restriction, but I believe parts of it involve text commands and other parts involve math commands, I thoght I had ...
Felipe Dilho's user avatar
0 votes
1 answer
48 views

Typesetting + sign as if a letter

In Baxter's transcription of Middle Chinese, there is an ASCII-friendly version, which uses only te 26 Latin letters as well as a + sign (standing for ɨ). Assume I wish to typeset specifically this ...
Alexander Z.'s user avatar
1 vote
1 answer
46 views

text mode native big parens

Continuing https://tex.stackexchange.com/a/674616, can we get big text-mode round parens for [pdf]latex, or {xe|lua}latex natively (i.e., without scaling/stretching as in https://tex.stackexchange....
user avatar
1 vote
0 answers
70 views

How can I keep operators in Latin Modern when changing the main text font and language?

Is there a way to turn the operators sin and cos (and all the other operators lim,inf,...) in latin (default) mode and the text remains always in greek times new roman font? \usepackage{fontspec} \...
panos Physics's user avatar
0 votes
2 answers
96 views

What is the proper way of putting text under/over some other text?

Long story short, I have a sentence written in the middle of the text width via center environment, and I want to put some text under or over some of the words to explain how they are made up, e.g. ...
Enlico's user avatar
  • 2,562
0 votes
1 answer
115 views

Parentheses in text mode around multiple lines

I would like to enclose multiple lines of text (not in math mode) around parentheses (like in the image). How could i do that?
Davi_2000's user avatar
0 votes
1 answer
55 views

\underset or \substack macro using \text{...} doesn't work with \\ to create multiple lines [duplicate]

I have the following code: $$\begin{aligned} \cal A \models (\exists x \psi)_{\bar s/\bar x}[\alpha] & \usett{\iff}{def. of \\ substitution} \end{aligned}$$ where \usett (abbreviation of '...
D.R's user avatar
  • 731
0 votes
0 answers
32 views

Disable underscore in text mode causing automatic switch to math mode [duplicate]

Underscores in text mode are common, but these trigger automatic math mode and then I have to go find all the underscores and escape them. Goal: Is there a way to disable underscores in text-mode ...
puf's user avatar
  • 57
1 vote
2 answers
140 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 ...
Alexander Praehauser's user avatar
2 votes
0 answers
46 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,...
Luca's user avatar
  • 61
2 votes
2 answers
182 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 ...
Luguza's user avatar
  • 23
5 votes
1 answer
1k 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
con's user avatar
  • 309
0 votes
1 answer
229 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 ...
con's user avatar
  • 309
1 vote
0 answers
91 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, ...
Joseph D.'s user avatar
7 votes
3 answers
1k 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 ...
Veronika's user avatar
6 votes
4 answers
1k 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!
user237838's user avatar
7 votes
3 answers
2k 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 ...
SU3's user avatar
  • 519
2 votes
2 answers
591 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
271 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 ...
Sebastiano's user avatar
  • 52.7k
1 vote
1 answer
193 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 ...
Eric's user avatar
  • 539
2 votes
2 answers
418 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 ...
e_moro's user avatar
  • 888
2 votes
0 answers
103 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, ...
loved.by.Jesus's user avatar
1 vote
1 answer
256 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 $$ \...
Boris Valderrama's user avatar
0 votes
1 answer
45 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?
smaillis's user avatar
  • 111
0 votes
3 answers
358 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 ...
aan's user avatar
  • 2,613
8 votes
2 answers
893 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 ...
solisoc's user avatar
  • 620
1 vote
1 answer
427 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.
Dahs's user avatar
  • 19
3 votes
0 answers
176 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 ...
GiuTeX's user avatar
  • 1,299
1 vote
1 answer
415 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?
Ron LaHire's user avatar
0 votes
0 answers
435 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 ...
user44756's user avatar
4 votes
2 answers
7k 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 \...
user855443's user avatar
  • 1,080
6 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 ...
gvgramazio's user avatar
  • 2,620
5 votes
3 answers
1k 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“, ...
dawu's user avatar
  • 1,648
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 ...
Leo B.'s user avatar
  • 11
7 votes
2 answers
7k 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 ...
Jason Hemann's user avatar
1 vote
1 answer
660 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 ...
ysalmon's user avatar
  • 1,116
1 vote
1 answer
251 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, ...
SZIEBERTH Ádám's user avatar
6 votes
2 answers
894 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 ...
Michael Fraiman's 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 ...
philip's user avatar
  • 21
5 votes
1 answer
11k 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 _.
fish_monster's user avatar
7 votes
2 answers
11k 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 ...
TLMoore's user avatar
  • 71
0 votes
1 answer
544 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 ...
user40276's user avatar
  • 279
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?
AbdelbakiZ's user avatar
1 vote
1 answer
210 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 ...
III-AK-III's user avatar
80 votes
3 answers
155k 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 ...
Francis Davey's user avatar
2 votes
1 answer
398 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 ...
jdbrody's user avatar
  • 145
2 votes
3 answers
226 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 ...
BenP1192's user avatar
  • 123