Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

up vote 5 down vote accepted
\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

share|improve this answer
\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

share|improve this answer
    
But I wouldn't put math in quotes. –  Harish Kumar Sep 30 '13 at 4:20
    
I can not get as your output. –  minthao_2011 Sep 30 '13 at 4:34
    
@minthao_2011: Did you run the above code as it is? –  Harish Kumar Sep 30 '13 at 5:19

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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