2

I can't seem to write this symbol "< >" in Latex. enter image description here

Karlo
  • 3,257

1 Answers1

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}

enter image description here

egreg
  • 1,121,712
  • Even better: \newcommand{\keyword}[1]{\texttt{#1}} and Formato 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
  • @Fritz You're completely right. – egreg Sep 25 '14 at 19:25