[Tex/LaTex] way to get “dumb” single quote in math mode

math-modesymbols

In mathmode, ' gets converted to "prime" symbol. What I'd like is neither the closing nor opening single quote as in (How to get the closing single quote in math mode). Rather, how do I get an unslanted neutral single quote in mathmode?

To avoid any XY problem, I state here problem X:

I am typesetting a document that uses Mathematica's font using the wrisym package. After \usepackage{wrisym}, I can access all the Mathematica font in math-mode using \mathversion{monobold}. But sometimes, I need the character that you get when you type ' in the front end of the notebook, which is not the prime character. How do I get LaTeX to output the unslanted ' character.


EDIT Many thanks for everyone's prompt answers. Please read below for a clear formulation of my problem.

\documentclass[a4,10pt]{article}

\usepackage{amsmath, amssymb}

\usepackage[uprightmonomath]{wrisym}

\DeclareMathVersion{monobold}
\SetSymbolFont{letters}{monobold}{OML}{wcrum}{b}{n}
\SetSymbolFont{operators}{monobold}{OT1}{wcrr}{b}{n}
\SetSymbolFont{symbols}{monobold}{OMS}{wcry}{b}{n}

\begin{document}

normal math:
$x y z$

Mathematica text:
\mathversion{monobold}$\sqrt{x}$\mathversion{normal}

symbol then quote:
\mathversion{monobold}$x'$\mathversion{normal}

\end{document}

generates:

enter image description here

Inputing the last two lines in Mathematica, it looks like:

enter image description here

Notice that the ' character looks different in LaTeX than in the Mathematica notebook, because (I believe) it has been converted to a prime.

How do I get the raw ' character in Mathematica font to appear in LaTeX so that it better approximates what appears in the Mathematica notebook?

Best Answer

I really doubt this is correct usage, but here is a solution using the textcomp-package.

Output

enter image description here

Code

\documentclass[11pt]{article}
\usepackage{mathtools,textcomp}
\begin{document}

\begin{equation}
    x\textnormal{\textquotesingle}
\end{equation}
\end{document}