summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/unicode-math/um-code-opening.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/unicode-math/um-code-opening.dtx')
-rw-r--r--Master/texmf-dist/source/latex/unicode-math/um-code-opening.dtx20
1 files changed, 17 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/unicode-math/um-code-opening.dtx b/Master/texmf-dist/source/latex/unicode-math/um-code-opening.dtx
index 4e9493bb65e..76fe65e33e3 100644
--- a/Master/texmf-dist/source/latex/unicode-math/um-code-opening.dtx
+++ b/Master/texmf-dist/source/latex/unicode-math/um-code-opening.dtx
@@ -42,9 +42,9 @@
%
% \begin{macrocode}
\cs_set_eq:NN \@@_group_begin: \group_begin:
-\cs_set_eq:NN \@@_group_end: \group_end:
+\cs_set_protected:Npn \@@_group_end:n #1 { #1 \group_end: }
\cs_set_eq:NN \@@_group_begin_frozen: \@@_group_begin:
-\cs_set_eq:NN \@@_group_end_frozen: \@@_group_end:
+\cs_set_eq:NN \@@_group_end_frozen:n \@@_group_end:n
% \end{macrocode}
%
%
@@ -182,6 +182,18 @@
}
% \end{macrocode}
%
+% \subsubsection{NFSS-related interfaces}
+%
+% \begin{macro}{\@@_mathgroup_set:n}
+% Remember that \cs{mathgroup} is just \cs{fam}!
+% \begin{macrocode}
+\cs_new_protected:Nn \@@_mathgroup_set:n
+ {
+ \tex_fam:D #1 \scan_stop:
+ }
+% \end{macrocode}
+% \end{macro}
+%
% \subsubsection{Font parameters}
%
% \begin{macro}{\@@_copy_fontdimen:nnN}
@@ -211,7 +223,9 @@
%<*LU>
\cs_new_protected:Nn \@@_fontdimen_from_param:nn
{
- \fontdimen #1 \font = \directlua{fontspec.mathfontdimen(font.current(),"#2")}\relax
+ \fontdimen #1 \font =
+ \lua_now:n { fontspec.mathfontdimen(font.current(),"#2") }
+ \scan_stop:
}
%</LU>
% \end{macrocode}