I have following piece of code:
\documentclass{article}
\usepackage{textcomp}
\begin{document}
\begin{equation}
\Upsilon\textquotesingle^{hr}
\end{equation}
\end{document}
its output, where both single-quotes looks kind of italic:
Instead is it possible to have a straight quote, like this one: Y'
I have applied following question but seems like it does not work inside equation: Straight quotes?




\Upsilon'– David Carlisle Apr 20 '22 at 14:50^{hr}? So it might be^{\prime hr}? – daleif Apr 20 '22 at 15:05'looks ahead for a following^and produces^{\prime hr}:-) – David Carlisle Apr 20 '22 at 15:53\textquotesingleis a text-mode command. You shouldn't use in math mode. Instead, use eitehr'or, equivalently,^{\prime}. – Mico Apr 20 '22 at 16:46\textquotesingleinside\text{}? I have tried it but the length of the quote was pretty small @Mico – alper Apr 20 '22 at 17:17'(or, equivalently,^{\prime) even though that glyph is much longer than what's produced by either\textquotesingleor\textup{\textquotesingle}. Why? – Mico Apr 20 '22 at 17:20