summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/unicode-math/unicode-math-compat.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/unicode-math/unicode-math-compat.dtx')
-rw-r--r--Master/texmf-dist/source/latex/unicode-math/unicode-math-compat.dtx17
1 files changed, 9 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/unicode-math/unicode-math-compat.dtx b/Master/texmf-dist/source/latex/unicode-math/unicode-math-compat.dtx
index f7768095976..f04177c60f1 100644
--- a/Master/texmf-dist/source/latex/unicode-math/unicode-math-compat.dtx
+++ b/Master/texmf-dist/source/latex/unicode-math/unicode-math-compat.dtx
@@ -302,7 +302,7 @@
\box_wd:N \l_tmpb_box
+ (\box_ht:N \l_tmpa_box - \box_dp:N \l_tmpa_box)
* \number \fontdimen 65 \l_@@_font / 100
- }
+ }
{
\box_use:N \rootbox
}
@@ -342,10 +342,9 @@
% \pkg{mathtools}’s |\cramped| command and others that make use of its internal version use an incorrect font dimension.
%
% \begin{macrocode}
+%<*XE>
\AtEndOfPackageFile * { mathtools }
{
-%<*XE>
- \newfam \g_@@_empty_fam
\@@_check_and_fix:NNnnn
\MT_cramped_internal:Nn \cs_set_nopar:Npn { #1 #2 }
{
@@ -380,7 +379,9 @@
}
% \end{macrocode}
% The \XeTeX\ version is pretty similar to the legacy version, only using the correct font dimensions.
-% Note we used `\verb|\XeTeXradical|' with a newly-allocated empty family to make sure that the radical rule width is not set.
+% Note we used `\verb|\XeTeXradical|' with the family 255 to be almost sure
+% that the radical rule width is not set. Former use of `\verb|\newfam|' had an
+% upsetting effect on legacy math alphabets.
% \begin{macrocode}
{
\hbox_set:Nn \l_tmpa_box
@@ -390,7 +391,7 @@
\m@th
#1
\dim_zero:N \nulldelimiterspace
- \XeTeXradical \g_@@_empty_fam \c_zero { #2 }
+ \XeTeXradical \c_two_hundred_fifty_five \c_zero { #2 }
\c_math_toggle_token
\color@endgroup
}
@@ -404,6 +405,7 @@
}
\box_use_clear:N \l_tmpa_box
}
+ }
%</XE>
% \end{macrocode}
%
@@ -445,8 +447,7 @@
\let\Uunderbracket=\underbracket
\let\overbracket =\MToverbracket
\let\underbracket =\MTunderbracket
- }
- }
+ }% end of AtBeginDocument
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -505,4 +506,4 @@
%
% \begin{macrocode}
%</compat>
-% \end{macrocode} \ No newline at end of file
+% \end{macrocode}