8

I want to type "left-quotes" and "right-quotes" in an equation. I tried

$P(x):`` \forall x \in \mathbb{R}, \, x^2 > 4 \Rightarrow x > 2. ``$

I get

enter image description here

The end sign is not correct. How to typeset?

8
\documentclass[preview,border=12pt]{standalone}
\usepackage{amsmath,amssymb}
\begin{document}
$P(x):\text{``$\forall x \in \mathbb{R}, \, x^2 > 4 \Rightarrow x > 2$.''}$
\end{document}

enter image description here

Suggestion

It is just my personal preference.

Add a space after `` and before ''.

\documentclass[preview,border=12pt]{standalone}
\usepackage{amsmath,amssymb}
\begin{document}
$P(x):\text{``~$\forall x \in \mathbb{R}, \, x^2 > 4 \Rightarrow x > 2$~'' is true.}$
\end{document}

enter image description here

8

The easiest one will be,

$P(x):``\forall x \in \mathbb{R}, \, x^2 > 4 \Rightarrow x > 2."$

Or if you want to use two single quotes,

$P(x):`` \forall x \in \mathbb{R}, \, x^2 > 4 \Rightarrow x > 2. \text{''}$

The output (for both of them) looks like,

enter image description here

For the later case, the right quotes need to be displayed as text, otherwise the output looks rather weird.

enter image description here

And trying to be pedantic, in LaTeX, opening and closing double quotes are treated as different. Left quotes are coded as `` (it will the left-most key on the upper row below ~ in many keyboards). Right quotes are given by the two symbols ' ' (or you may want to use the single symbol "). Thus we have ``quote, unquote' '. The same goes for single quotes, or `quote, unquote'.

You may want to see this for further details.

3
\documentclass{article}
\usepackage{amsmath,amsfonts}
\begin{document}
  $P(x):`` \forall x \in \mathbb{R}, \, x^2 > 4 \Rightarrow x > 2."$
\end{document}

enter image description here

3
  • But I wouldn't put math in quotes.
    – user11232
    Sep 30 '13 at 4:20
  • I can not get as your output. Sep 30 '13 at 4:34
  • @minthao_2011: Did you run the above code as it is?
    – user11232
    Sep 30 '13 at 5:19

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.