I'd like to include the <
and >
symbols into my document. First I tried to just type it in. But after generating the document I saw only an inverted ? instead of the > symbol.
That's why I looked at this LaTeX Math Symbols document and I saw that it should work that way. Nevertheless I tried to solve the problem by using the verbatim
command:
\begin{verbatim}>\end{verbatim}
Now it works, but the problem is that the verbatim
command seems to include a linebreak and that's why the >
symbol now is in the wrong line.
How can I solve that?
Best Answer
To quote from the Comprehensive Symbols List (which has these symbols listed as ”frequently requested”):
From page 8 (with strong recommendations that you should use this):
As Will notes in the comments, a good solution to this is to put
into your preamble.
Alternatively, using XeLaTeX or LuaLaTeX with the
fontspec
package also makes these symbols (and many more) work correctly.