2

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

marked as duplicate by Werner, user13907, user31729, Mico, Andrew Swann Sep 25 '14 at 18:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 4
    Welcome to TeX.SX! You could try adding \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
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Martin Schröder Sep 25 '14 at 17:07
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

  • 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

Not the answer you're looking for? Browse other questions tagged or ask your own question.