Text Formatting ⇒ How are underscore and inequality signs inserted in LaTeX?
How are underscore and inequality signs inserted in LaTeX?
How are underscore and inequality signs inserted in LaTeX? I don't mean in math mode, I mean in normal text mode.
Last edited by ptrcao on Mon Mar 14, 2011 5:56 pm, edited 1 time in total.
OS info: Win XP | Debian 6.0 | Ubuntu 10.04
Latex editor of choice: TexWorks (for dual view feature)
Latex editor of choice: TexWorks (for dual view feature)
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
How are underscore and inequality signs inserted in LaTeX?
Hi ptrcao,
you could write \_ or \textunderscore. The underscore package could be useful if you frequently write undersores in text. Have a look at Special LaTeX characters for further symbols.
An inequality sign is a math symbol. Just write \( \neq \) or the like in your text, or use $ like in $\neq$. I guess you don't want to strike out a normal equal sign.
Stefan
you could write \_ or \textunderscore. The underscore package could be useful if you frequently write undersores in text. Have a look at Special LaTeX characters for further symbols.
An inequality sign is a math symbol. Just write \( \neq \) or the like in your text, or use $ like in $\neq$. I guess you don't want to strike out a normal equal sign.
Stefan
LaTeX.org admin
How are underscore and inequality signs inserted in LaTeX?
Hi,
just a complement to Stefan_K's answer: the tipa package offers the \textdoublebarslash command to be used in text mode:
just a complement to Stefan_K's answer: the tipa package offers the \textdoublebarslash command to be used in text mode:
Code: Select all
\documentclass{book}
\usepackage{tipa}
\begin{document}
\textdoublebarslash
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: How are underscore and inequality signs inserted in LaTe
How about ">" and "<" symbols - I'm having trouble entering those in normal text mode. Do I really have to enter into math mode? These are just standard ASCII symbols, I would've thought they'd have been supported in normal text mode?
OS info: Win XP | Debian 6.0 | Ubuntu 10.04
Latex editor of choice: TexWorks (for dual view feature)
Latex editor of choice: TexWorks (for dual view feature)
How are underscore and inequality signs inserted in LaTeX?
Use the Cork encoding:
Please note that those signs used in text mode are not equal and do not behave like the same symbols used in math mode for the math relations "less than" and "greater than".
Code: Select all
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
<>
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
How are underscore and inequality signs inserted in LaTeX?
How about < and > as separate symbols in text mode?
OS info: Win XP | Debian 6.0 | Ubuntu 10.04
Latex editor of choice: TexWorks (for dual view feature)
Latex editor of choice: TexWorks (for dual view feature)
How are underscore and inequality signs inserted in LaTeX?
Please explain what do you mean by "separate symbols".ptrcao wrote:How about < and > as separate symbols in text mode?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: How are underscore and inequality signs inserted in LaTe
For example, what I'm writing up is some instructions for installing and launching a program, and I'm using ">" to indicate a series of links in breadcrumb fashion, like "click on Start > Applications > Games > Solitaire". I can't seem to just type in a solitary ">" without a complaint from my LaTeX text editor. And "\>" doesn't work either.
OS info: Win XP | Debian 6.0 | Ubuntu 10.04
Latex editor of choice: TexWorks (for dual view feature)
Latex editor of choice: TexWorks (for dual view feature)
How are underscore and inequality signs inserted in LaTeX?
If you load the fontenc package with T1 option as I suggested in my previous reply, you can simply type > and < without problems. Another option is to use \textgreater and \textlessptrcao wrote:I can't seem to just type in a solitary ">" without a complaint from my LaTeX text editor. And "\>" doesn't work either.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
How are underscore and inequality signs inserted in LaTeX?
TY gmedina (and Stefan_K)! fontenc does the job.gmedina wrote:If you load the fontenc package with T1 option as I suggested in my previous reply, you can simply type > and < without problems. Another option is to use \textgreater and \textlessptrcao wrote:I can't seem to just type in a solitary ">" without a complaint from my LaTeX text editor. And "\>" doesn't work either.

OS info: Win XP | Debian 6.0 | Ubuntu 10.04
Latex editor of choice: TexWorks (for dual view feature)
Latex editor of choice: TexWorks (for dual view feature)