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:
Inputing the last two lines in Mathematica, it looks like:
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?



\textrm{'}, as in$A' \ne A\textrm{'}$– Steven B. Segletes Jul 06 '16 at 13:28\textrm{'}doesn't work). – QuantumDot Jul 06 '16 at 13:32\setbox0=\hbox{'}$A' \ne A\box0$? – Steven B. Segletes Jul 06 '16 at 13:34\documentclass{article} \newsavebox\sqcontent \savebox\sqcontent{'} \def\sq{\usebox{\sqcontent}} \begin{document} $A' \ne A\sq$ \end{document}– Steven B. Segletes Jul 06 '16 at 13:36\begingroup\lccode`~=`'\lowercase{\endgroup\def~}{<definition that outputs the upright prime>}and it wil correctly output whatever you put in that definition, so all you need is to get a way to output the symbol and with that code you will make'actually print it. – Manuel Jul 06 '16 at 14:48xand'in your last example, it seems to me that your output uses such a font (I can't test, I don't use mathematica). Lastly, from the very low quality images on this page I conclude that mathematica uses a very ordinary single quote sign for derivatives. – Christoph Frings Jul 06 '16 at 17:16