summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-10-02 21:58:46 +0000
committerKarl Berry <karl@freefriends.org>2017-10-02 21:58:46 +0000
commitfd5f690d11016435384d6ae952eb94789cf60746 (patch)
treee565838dbddeb3874202f5fa5c307cfaa7fbb208 /Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty
parentb05bbbaa1cd9b63551731cdd1577f90225da2079 (diff)
unicode-math (2oct17)
git-svn-id: svn://tug.org/texlive/trunk@45453 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty')
-rw-r--r--Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty29
1 files changed, 23 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty b/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty
index 8b7536094e4..ca388f1d98b 100644
--- a/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty
+++ b/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty
@@ -4,7 +4,7 @@
%%
%% The original source files were:
%%
-%% unicode-math.dtx (with options: `preamble')
+%% unicode-math-preamble.dtx (with options: `preamble')
%% unicode-math-msg.dtx (with options: `msg')
%% unicode-math-usv.dtx (with options: `usv')
%% unicode-math.dtx (with options: `load')
@@ -18,17 +18,15 @@
%% (your choice): <http://www.latex-project.org/lppl/>.
%%
%% This work is "maintained" by Will Robertson.
-\ProvidesPackage{unicode-math}
- [2017/08/02 v0.8f Unicode maths in XeLaTeX and LuaLaTeX]
-\usepackage{ifxetex,ifluatex}
-\ifxetex
+
+\ifdefined\XeTeXversion
\ifdim\number\XeTeXversion\XeTeXrevision in<0.9998in%
\PackageError{unicode-math}{%
Cannot run with this version of XeTeX!\MessageBreak
You need XeTeX 0.9998 or newer.%
}\@ehd
\fi
-\else\ifluatex
+\else\ifdefined\luatexversion
\ifnum\luatexversion<64%
\PackageError{unicode-math}{%
Cannot run with this version of LuaTeX!\MessageBreak
@@ -387,6 +385,25 @@
{
\tl_use:N \l__um_mathstyle_tl
}
+\tl_map_inline:nn
+ {
+ \new@mathgroup\cdp@list\cdp@elt\DeclareMathSizes
+ \@DeclareMathSizes\newmathalphabet\newmathalphabet__um\newmathalphabet__um@
+ \DeclareMathVersion\define@mathalphabet\define@mathgroup\addtoversion
+ \version@list\version@elt\alpha@list\alpha@elt
+ \restore@mathversion\init@restore@version\dorestore@version\process@table
+ \new@mathversion\DeclareSymbolFont\group@list\group@elt
+ \new@symbolfont\SetSymbolFont\SetSymbolFont@\get@cdp
+ \DeclareMathAlphabet\new@mathalphabet\SetMathAlphabet\SetMathAlphabet@
+ \DeclareMathAccent\set@mathaccent\DeclareMathSymbol\set@mathchar
+ \set@mathsymbol\DeclareMathDelimiter\@xxDeclareMathDelimiter
+ \@DeclareMathDelimiter\@xDeclareMathDelimiter\set@mathdelimiter
+ \set__ummathdelimiter\DeclareMathRadical\mathchar@type
+ \DeclareSymbolFontAlphabet\DeclareSymbolFontAlphabet@
+ }
+ {
+ \tl_remove_once:Nn \@preamblecmds {\do#1}
+ }
\cs_new:Npn \__um_error:n { \msg_error:nn {unicode-math} }
\cs_new:Npn \__um_warning:n { \msg_warning:nn {unicode-math} }