Text Formatting ⇒ How are underscore and inequality signs inserted in LaTeX?
How are underscore and inequality signs inserted in LaTeX?
Latex editor of choice: TexWorks (for dual view feature)
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
How are underscore and inequality signs inserted in LaTeX?
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
How are underscore and inequality signs inserted in LaTeX?
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}
Re: How are underscore and inequality signs inserted in LaTe
Latex editor of choice: TexWorks (for dual view feature)
How are underscore and inequality signs inserted in LaTeX?
Code: Select all
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
<>
\end{document}
How are underscore and inequality signs inserted in LaTeX?
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?
Re: How are underscore and inequality signs inserted in LaTe
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.
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.

Latex editor of choice: TexWorks (for dual view feature)