# beramono and texttt : angle brackets show as inverted exclamation mark and inverted question mark symbols (upside-down signs, like in spanish)

Angle brackets < and > in \texttt render as inverted exclamation mark and inverted question mark (spanish punctuation marks):

\documentclass{article}
\usepackage{beramono}
\begin{document}
\texttt{<>}
\end{document}


The above document renders the < and > characters as:

How do I fix this?

The Bera Mono fonts are not available in OT1 encoding, but only in T1; if you want to use them for typewriter type, you need \usepackage[T1]{fontenc}.

This should be clear from the shown warnings

LaTeX Font Warning: Font shape OT1/fvm/m/n' undefined
(Font)              using OT1/cmr/m/n' instead on input line 4.


Correct example

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{beramono}
\begin{document}
\texttt{<>}
\end{document}


• I wanted to avoid T1 font encoding, because I thought it messed up copy-paste from the PDFs. After testing your answer, copy-paste (and the brackets) both seem to work fine, so my former issues must have been caused by something else. – Suzanne Dupéron Feb 10 '16 at 17:29
• FYI: I get this behaviour in an English document (not with beramono) without any warnings. \usepackage{[T1]{fontenc} fixed it. – drevicko Feb 11 at 6:59

Short answer: You have to also use the package lmodern:

\documentclass{article}
\usepackage{beramono}
\usepackage{lmodern}
\begin{document}
\texttt{<>}
\end{document}

• Well, you don't get Bera Mono as the typewriter font. – egreg Feb 10 '16 at 16:59