15

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, 2015 at 10:24
  • 1
    yes, the first one
    – Alex
    Apr 23, 2015 at 10:27
  • 1
    You can just use the unicode sign if you use xelatex or lualatex, or \usepackage[utf8]{inputenc} together with pdflatex.
    – MaxNoe
    Apr 23, 2015 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, 2015 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, 2015 at 10:34

4 Answers 4

19

\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, 2015 at 9:17
  • 1
    Or should I probably rather open a new question for that? Jun 10, 2015 at 9:18
7

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

3
\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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .