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 ">"?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI 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 ">"?
Very likely you are using the old OT1
encoding:
\documentclass{article}
\begin{document}
<Hello> \textless world\textgreater
\end{document}
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}
>
will always be typeset as >