I can't seem to write this symbol "< >" in Latex. 
Asked
Active
Viewed 1,226 times
2
1 Answers
6
If you write in Portuguese, you need
\usepackage[T1]{fontenc}
and possibly add
\usepackage{lmodern}
to your document preamble. The first package is needed in order to make hyphenation of accented words possible also past an accent, which in Portuguese is essential.
With this, an input such as
Formato reconhecido <Especificador>
will print as expected. However, it's traditional to print such keywords in a monospaced font, in order to make them distinguishable from the context. So
Formato reconhecido \texttt{<Especificador>}
is my recommendation.
Minimal example
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel} % or brazil
\begin{document}
Formato reconhecido <Especificador>
Formato reconhecido \texttt{<Especificador>}
\end{document}

egreg
- 1,121,712
-
Even better:
\newcommand{\keyword}[1]{\texttt{#1}}andFormato reconhecido \keyword{<Especificador>}. Just in case you ever decide that you want all keywords typeset in red and italic, instead of monospace. – Fritz Sep 25 '14 at 18:26 -
\usepackage[T1]{fontenc}to the preamble of your document. Also, you don't have to write "Hello" or "Please help". – Fritz Sep 25 '14 at 17:05