diff options
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.sty | 47 |
1 files changed, 13 insertions, 34 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 e48961537cb..24cc8e1f4b0 100644 --- a/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty +++ b/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty @@ -5,7 +5,7 @@ %% The original source files were: %% %% unicode-math.dtx (with options: `base') -%% um-code-base.dtx (with options: `base') +%% %% ------------------------------------------------ %% The UNICODE-MATH package <wspr.io/unicode-math> %% ------------------------------------------------ @@ -13,46 +13,25 @@ %% the conditions of the LaTeX Project Public License, version 1.3c or higher %% (your choice): <http://www.latex-project.org/lppl/>. %% ------------------------------------------------ -%% Copyright 2006-2017 Will Robertson, LPPL "maintainer" +%% Copyright 2006-2018 Will Robertson, LPPL "maintainer" %% Copyright 2010-2017 Philipp Stephani %% Copyright 2011-2017 Joseph Wright %% Copyright 2012-2015 Khaled Hosny %% ------------------------------------------------ +%% %%^^A%% unicode-math.dtx -- part of UNICODE-MATH <wspr.io/unicode-math> %%^^A%% Metadata for the package code, including files and versioning -\ProvidesPackage{unicode-math} - [2018/01/07 v0.8j Unicode maths in XeLaTeX and LuaLaTeX] - -%%^^A%% um-code-base.dtx -- part of UNICODE-MATH <wspr.io/unicode-math> -%%^^A%% Definition of unicode-math.sty, which splits and loads according to engine. - -\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\ifdefined\luatexversion - \ifnum\luatexversion<64% - \PackageError{unicode-math}{% - Cannot run with this version of LuaTeX!\MessageBreak - You need LuaTeX 0.64 or newer.% - }\@ehd - \fi -\else - \PackageError{unicode-math}{% - Cannot be run with pdfLaTeX!\MessageBreak - Use XeLaTeX or LuaLaTeX instead.% - }\@ehd -\fi\fi -\RequirePackage{expl3,xparse,l3keys2e} -\RequirePackage{fontspec} -\RequirePackage{filehook} -\RequirePackage{fix-cm} -\ExplSyntaxOn +\RequirePackage{expl3} +\ProvidesExplPackage{unicode-math} + {2018/01/13} {v0.8k} {Unicode maths in XeLaTeX and LuaLaTeX} \sys_if_engine_luatex:T { \RequirePackageWithOptions{unicode-math-luatex} } \sys_if_engine_xetex:T { \RequirePackageWithOptions{unicode-math-xetex} } -\ExplSyntaxOff +\sys_if_engine_pdftex:T + { + \msg_new:nnn {unicode-math} {not-pdftex} + { Cannot~ be~ run~ with~ pdfLaTeX!\\ Use~ XeLaTeX~ or~ LuaLaTeX~ instead. } + \msg_error:nn {unicode-math} {not-pdftex} + } +\endinput |