# inverted question mark in Latex

How do I write inverted question mark in latex.. Normally, > appears as inverted question mark but when put in an equation setting, it gives greater than.. so How do I get the inverted question mark in an equation setting. I have tried ? and yet it does not appear, I have also tried to put in \mbox or \text yet it is given error >

$$\label{eq8} sr = \frac{G_{>}}{T_{runs}} \times 100$$

• do you mean this: ¿ ? Apr 23 '15 at 10:24
• yes, the first one
– Alex
Apr 23 '15 at 10:27
• You can just use the unicode sign if you use xelatex or lualatex, or \usepackage[utf8]{inputenc} together with pdflatex. Apr 23 '15 at 10:32
• don't set multiple letter identifiers like runs in math italic, use \mathrm{runs} or \mathit{runs} for the question mark \mbox{?} should work. Apr 23 '15 at 10:34
• Ok, if I use \usepackage[utf8]{inputenc}, what code will I use for the inverted question as you can see from
– Alex
Apr 23 '15 at 10:34

\text works fine for me:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\begin{document}
?abc? $\text{?}a=b$

\end{document}


Don't set multiple letter identifiers like runs in math italic, use \mathrm{runs} or \mathit{runs}

For the question mark

\mbox{?}


or

 \mbox{¿}


if you have specified

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}


Note that > only typesets as ¿ if you use the original 7-bit OT1 encoding, if you use T1 (or any other encoding) > will typeset as >.

• Google leads a search of "reversed question mark latex" to this question. Could you please extend your answer for irony question marks (⸮ - REVERSED QUESTION MARK, Irony punctuation) Jun 10 '15 at 9:17
• Or should I probably rather open a new question for that? Jun 10 '15 at 9:18

https://en.wikipedia.org/wiki/Inverted_question_and_exclamation_marks#Input_methods_for_LaTeX

Here saying that you can use \textquestiondown or \textexclaimdown for the upside down ? or !.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\DeclareMathSymbol{\invques}{\mathord}{operators}{>}
\DeclareUnicodeCharacter{00BF}{\tmquestiondown}
\DeclareRobustCommand{\tmquestiondown}{%
\ifmmode\invques\else\textquestiondown\fi
}

\begin{document}

\tableofcontents

\section{¿Qué tal? $G_{¿}$}

¿Qué tal? $G_{¿}$

\end{document}


You can also use _{\invques}, of course.