[Tex/LaTex] How to get single curved quotation marks in math mode

math-modepunctuation

I know I can get these fancy quotes

`abc'

enter image description here

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

{`}a

enter image description here

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

abc{'}

enter image description here

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

I am using pdflatex.

Best Answer

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

\documentclass{book}
\usepackage{amsmath}

\begin{document}
$abc' \quad abc{\text{'}}$
\end{document}

enter image description here