# Why is pdflatex not recognizing my > symbol?

I have a > symbol in my LateX file. Specifically, I have the sentence:

Say I have n > 1 apples.


When compile my .tex document using pdflatex, I get a pdf with an upside-down question mark in place of the > symbol.

I checked this math guide for TeX and saw no special markup for >. ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf

What is going on?

-
That's an equation, so you should be using math mode by enclosing the text in $...$: Say I have $n > 1$ apples. –  Jake Jan 25 '12 at 0:04
Thanks, how did pdflatex detect that I was in math mode? –  David Faux Jan 25 '12 at 0:05
For instance, I could have very well been writing a paragraph that happened to contain n > 1, right? –  David Faux Jan 25 '12 at 0:07
TeX doesn’t detect maths automatically. The author requests mathmode by writing $$math$$ or $math$ when using LaTeX and $math$ or $$math$$ when using plain TeX. –  uli Jan 25 '12 at 0:12
@uli Actually PDFTeX will try and guess when you are in math mode, but it is really bad at it an will screw up when it does. As someone who forgets ( too often I've seen that error a few times >.> –  Canageek Jan 25 '12 at 0:13

Related question: Less than symbol (<) appears as upside down “!”

This specific example should really be in math mode, since n is a variable. But for completeness:

\documentclass{article}
% comment out to see inverted question mark in place of > in Regular'' entry.
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\begin{document}
\begin{itemize}
\item Say I have n > 1 apples (regular, with or without fontenc package).
\item Say I have $$n > 1$$ apples (math mode).
\item Say I have n \textgreater{} 1 apples (textcomp).
\end{itemize}
\end{document}


Also, the math mode greater-than sign is a bit heavier than the text symbols.

-