[Tex/LaTex] How to write the symbol >

symbols

I had a look at the symbols list, and it is written that the input text ">" should be rendered as ">". In my document, however, it is rendered as "¿".

How do I write a normal ">"?

Best Answer

Very likely you are using the old OT1 encoding:

\documentclass{article}
\begin{document}
<Hello> \textless world\textgreater
\end{document}

Result

The example also shows how to typeset < and > by using \textless or \textgreater.

The issue is resolved with the T1 font encoding:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}% optional
\begin{document}
<Hello> \textless world\textgreater
\end{document}

Result with T1 font encoding

Related Question