# Smaller-than symbol ('<') in \text environment gets converted into upside down exclamation mark [duplicate]

I want to typeset the < symbol in a string of text inside a math environment using the \text command from the amsmath package. However, for some reason it render something like

\text{<-wrt}


to

¡-wrt


Why does amsmath do that, and how can I stop it from 'interpreting' my text?

## marked as duplicate by Mico, campa, barbara beeton, Schweinebacke, TeXnicianAug 25 '17 at 15:37

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.

## 1 Answer

Use this code:

\documentclass{article}
\usepackage{amsmath}
\usepackage[T1]{fontenc} %%% <--- NOTE THIS

\begin{document}

$$\text{<-wrt}$$

\end{document}