I am using Minion Math to typeset a book. The editor asked if it is possible to lower the position of the '
in equations when it is used with a lowercase p
letter.
I noticed that the behaviour of '
and \prime
is different if Minion Math is loaded or Latin Modern is used. \prime
seem to be a supersuperscrpt.
I use XeLaTeX
, but the same issue is happening with LuaLaTeX
.
\documentclass{minimal}
\RequirePackage{amsmath}
\RequirePackage{mathtools}
\usepackage{amsthm}
\RequirePackage{unicode-math}
%%% Copied from the unicode-math documentation
\setmathfont%{Minion Math}%[
[SizeFeatures = {
{Size = -6.01, Font = MinionMath-Tiny},
{Size = 6.01-8.41, Font = MinionMath-Capt},
{Size = 8.41-13.01, Font = MinionMath-Regular},
{Size = 13.01-19.91, Font = MinionMath-Subh},
{Size = 19.91-, Font = MinionMath-Disp}
}]%
{Minion Math}
\RequirePackage{microtype}
\begin{document}
\verb+$T(p)=p'$+:\hspace{1cm} $T(p)=p'$
\verb+$T(p)=p\prime$+:\hspace{1cm} $T(p)=p\prime$
\verb+$T(p)=p^{\prime}$+:\hspace{1cm} $T(p)=p^{\prime}$
\end{document}
SOLUTION PROPOSED BY DAVID:
The solution seems to work fine:
p\prime
look right already, butp^{\prime}
is too small and high?'
which is what the author has used in the book. As you can see$p'$
and$p\prime$
aren't equivalent with Minion Mathp'
andp\prime
are not usually equivalent,p'
is converted top^{\prime}
but in some fonts not designed for TeX the\prime
character is already superscript in the font so you need to generatep\prime
instead. That is clearly the case here now you have added the image.{\catcode`\'\active\gdef'{\prime}}
would do the right thing, but I don't have the font to testminimal
for examples; the class is not meant for them.