I know I can get these fancy quotes


enter image description here

I want to get those quotes separately. I know how to get the left one:


enter image description here

But when I try just the right one, I get a different quote then when used together:


enter image description here

How can I get the right curved one alone in math mode?

I am using pdflatex.

  • Can you please explain better? Aren't you getting single quotes with `abc'?
    – egreg
    Mar 4, 2014 at 14:39
  • @egreg edited. I get a different right quote when I use that one separately.
    – Sergey L.
    Mar 4, 2014 at 14:42
  • That's not the default behaviour for text mode. Perhaps some package is causing this. Can ypu please add a complete, minimla document, showing the undesired output? Mar 4, 2014 at 14:43
  • You get a prime only in math mode. Is your aim to get a right quote in math mode? If so, please change the title and the text of the question accordingly.
    – egreg
    Mar 4, 2014 at 14:43
  • 4
    \usepackage{amsmath} and $abc{\text{'}}$. Mar 4, 2014 at 14:45

2 Answers 2


In math mode ' produces a prime; to get the closing quotation mark in math mode you can use \text from amsmath:


$abc' \quad abc{\text{'}}$

enter image description here


In math mode, typing ' is equivalent to typing ^{\prime}, '' to ^{\prime\prime} and so on.

If you need “real” quotes in math mode, you have to define a math character for them. Typing ` is not guaranteed to give the desired result.

You can define


Complete example:



$\mlq a\mrq$

$\mlqq a\mrqq$

enter image description here

See https://tex.stackexchange.com/a/161253/4427 for a similar setup, but in that case relations were concerned.

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.