Please help me with this.
How to print >, < and % in LaTeX.
Backslash doesn't seem to work!
Asked
Active
Viewed 6.4k times
5
David Carlisle
- 757,742
Anu
- 51
1 Answers
9
The glyphs < and > have usually no place in typeset text, except in mathematical formulas. In a math formula, < and > produce the right symbol:
$a<b$
will provide the right spacing and letter shape.
You can still get those glyphs in normal text with \textless and \textgreater, provided you load
\usepackage[T1]{fontenc}
However, I don't recommend using them outside math formulas. You might want to use \textlangle and \textrangle in text, that produce different glyphs
〈 and 〉
For these either you use math mode (they are called \langle and \rangle) or load
\usepackage{textcomp}
In order to print %, just type \%.
egreg
- 1,121,712
<and>should be used in math mode; for printing % use\%– egreg Apr 06 '13 at 13:46<and>are not mentioned in that other question, are they? – Hendrik Vogt Apr 06 '13 at 13:47\textless,\textgreaterand\%. – Werner Apr 06 '13 at 16:32