10

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 >

\begin{equation}\label{eq8}
sr = \frac{G_{>}}{T_{runs}} \times 100
\end{equation}
7
  • do you mean this: ¿ ?
    – MaxNoe
    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.
    – MaxNoe
    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
16

\text works fine for me:

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

\end{document}

enter image description here

9

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 >.

2
  • 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
  • 1
    Or should I probably rather open a new question for that? Jun 10 '15 at 9:18
4

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 !.

2
\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.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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