summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx')
-rw-r--r--Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx119
1 files changed, 54 insertions, 65 deletions
diff --git a/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx b/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx
index f1fb5a36d84..69eeeaccc20 100644
--- a/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx
+++ b/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx
@@ -25,7 +25,7 @@
\keepsilent
\let\MetaPrefix\DoubleperCent
\declarepreamble\texpreamble
-Copyright 2006-2015 Will Robertson <will.robertson@latex-project.org>
+Copyright 2006-2017 Will Robertson <will.robertson@latex-project.org>
Copyright 2010-2013 Philipp Stephani <st_philipp@yahoo.de>
Copyright 2012-2015 Khaled Hosny <khaledhosny@eglug.org>
@@ -69,7 +69,7 @@ This work is "maintained" by Will Robertson.
%<preamble&XE>\ProvidesPackage{unicode-math-xetex}
%<preamble&LU>\ProvidesPackage{unicode-math-luatex}
%<*preamble>
- [2015/09/24 v0.8c Unicode maths in XeLaTeX and LuaLaTeX]
+ [2017/01/27 v0.8d Unicode maths in XeLaTeX and LuaLaTeX]
%</preamble>
%<*internal>
\def\DOCUMENTEND{F}
@@ -99,8 +99,8 @@ This work is "maintained" by Will Robertson.
% Shared code executed before loading the engine-specific code is indicated with the flag \textsf{preamble}.
% \begin{macrocode}
%<*load>
-\luatex_if_engine:T { \RequirePackage{unicode-math-luatex} }
-\xetex_if_engine:T { \RequirePackage{unicode-math-xetex} }
+\sys_if_engine_luatex:T { \RequirePackage{unicode-math-luatex} }
+\sys_if_engine_xetex:T { \RequirePackage{unicode-math-xetex} }
%</load>
% \end{macrocode}
% The shared part of the code starts here before the split above.
@@ -194,8 +194,6 @@ This work is "maintained" by Will Robertson.
\bool_new:N \g_@@_uppartial_bool
\bool_new:N \g_@@_literal_Nabla_bool
\bool_new:N \g_@@_literal_partial_bool
-\bool_new:N \g_@@_texgreek_bool
-\bool_set_true:N \g_@@_texgreek_bool
\bool_new:N \l_@@_smallfrac_bool
\bool_new:N \g_@@_literal_colon_bool
\bool_new:N \g_@@_mathrm_text_bool
@@ -599,15 +597,6 @@ This work is "maintained" by Will Robertson.
}
% \end{macrocode}
%
-% \paragraph{Epsilon and phi shapes}
-% \begin{macrocode}
-\@@_keys_choices:nn {vargreek-shape}
- {
- {unicode} { \bool_set_false:N \g_@@_texgreek_bool }
- {TeX} { \bool_set_true:N \g_@@_texgreek_bool }
- }
-% \end{macrocode}
-%
% \paragraph{Colon style}
% \begin{macrocode}
\@@_keys_choices:nn {colon}
@@ -2165,25 +2154,16 @@ This work is "maintained" by Will Robertson.
\clist_map_inline:nn
{
Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,
- alpha,beta,gamma,delta, zeta,eta,theta,iota,kappa,lambda,
+ alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,
Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,
- mu,nu,xi,omicron,pi,rho,sigma,tau,upsilon, chi,psi,omega,
- varTheta,
- varsigma,vartheta,varkappa,varrho,varpi
+ mu,nu,xi,omicron,pi,rho,sigma,tau,upsilon,phi,chi,psi,omega,
+ varTheta,varsigma,vartheta,varkappa,varrho,varpi,varepsilon,varphi
}
{
\tl_set:cx {##1} { \exp_not:c { mit ##1 } }
\tl_set:cx {up ##1} { \exp_not:N \symup \exp_not:c { ##1 } }
\tl_set:cx {it ##1} { \exp_not:N \symit \exp_not:c { ##1 } }
}
- \tl_set:Nn \epsilon
- { \bool_if:NTF \g_@@_texgreek_bool \mitvarepsilon \mitepsilon }
- \tl_set:Nn \phi
- { \bool_if:NTF \g_@@_texgreek_bool \mitvarphi \mitphi }
- \tl_set:Nn \varepsilon
- { \bool_if:NTF \g_@@_texgreek_bool \mitepsilon \mitvarepsilon }
- \tl_set:Nn \varphi
- { \bool_if:NTF \g_@@_texgreek_bool \mitphi \mitvarphi }
}
% \end{macrocode}
% \end{macro}
@@ -2761,16 +2741,16 @@ This work is "maintained" by Will Robertson.
{
\@@_set_mathalphabet_greek:nnn {normal} {##1} {#2}
\@@_map_chars_range:nnnn {25} {##1} {#2} {greek}
- \@@_map_char_single:nnn {##1} {#2} {varepsilon}
+ \@@_map_char_single:nnn {##1} {#2} {epsilon}
\@@_map_char_single:nnn {##1} {#2} {vartheta}
\@@_map_char_single:nnn {##1} {#2} {varkappa}
- \@@_map_char_single:nnn {##1} {#2} {varphi}
+ \@@_map_char_single:nnn {##1} {#2} {phi}
\@@_map_char_single:nnn {##1} {#2} {varrho}
\@@_map_char_single:nnn {##1} {#2} {varpi}
- \@@_set_mathalphabet_pos:nnnn {normal} {varepsilon} {##1} {#2}
+ \@@_set_mathalphabet_pos:nnnn {normal} {epsilon} {##1} {#2}
\@@_set_mathalphabet_pos:nnnn {normal} {vartheta} {##1} {#2}
\@@_set_mathalphabet_pos:nnnn {normal} {varkappa} {##1} {#2}
- \@@_set_mathalphabet_pos:nnnn {normal} {varphi} {##1} {#2}
+ \@@_set_mathalphabet_pos:nnnn {normal} {phi} {##1} {#2}
\@@_set_mathalphabet_pos:nnnn {normal} {varrho} {##1} {#2}
\@@_set_mathalphabet_pos:nnnn {normal} {varpi} {##1} {#2}
}
@@ -2940,10 +2920,10 @@ This work is "maintained" by Will Robertson.
\clist_map_inline:nn {#2}
{
\@@_set_mathalph_range:nnnnn {25} {#1} {##1} {#3} {greek}
- \@@_set_mathalphabet_char:nnnn {#1} {##1} {#3} {varepsilon}
+ \@@_set_mathalphabet_char:nnnn {#1} {##1} {#3} {epsilon}
\@@_set_mathalphabet_char:nnnn {#1} {##1} {#3} {vartheta}
\@@_set_mathalphabet_char:nnnn {#1} {##1} {#3} {varkappa}
- \@@_set_mathalphabet_char:nnnn {#1} {##1} {#3} {varphi}
+ \@@_set_mathalphabet_char:nnnn {#1} {##1} {#3} {phi}
\@@_set_mathalphabet_char:nnnn {#1} {##1} {#3} {varrho}
\@@_set_mathalphabet_char:nnnn {#1} {##1} {#3} {varpi}
}
@@ -3597,9 +3577,18 @@ This work is "maintained" by Will Robertson.
\@@_setup_active_subscript:nn {^^^^208e} {)}
\@@_setup_active_subscript:nn {^^^^2090} {a}
\@@_setup_active_subscript:nn {^^^^2091} {e}
+\@@_setup_active_subscript:nn {^^^^2095} {h}
\@@_setup_active_subscript:nn {^^^^1d62} {i}
+\@@_setup_active_subscript:nn {^^^^2c7c} {j}
+\@@_setup_active_subscript:nn {^^^^2096} {k}
+\@@_setup_active_subscript:nn {^^^^2097} {l}
+\@@_setup_active_subscript:nn {^^^^2098} {m}
+\@@_setup_active_subscript:nn {^^^^2099} {n}
\@@_setup_active_subscript:nn {^^^^2092} {o}
+\@@_setup_active_subscript:nn {^^^^209a} {p}
\@@_setup_active_subscript:nn {^^^^1d63} {r}
+\@@_setup_active_subscript:nn {^^^^209b} {s}
+\@@_setup_active_subscript:nn {^^^^209c} {t}
\@@_setup_active_subscript:nn {^^^^1d64} {u}
\@@_setup_active_subscript:nn {^^^^1d65} {v}
\@@_setup_active_subscript:nn {^^^^2093} {x}
@@ -3738,45 +3727,45 @@ This work is "maintained" by Will Robertson.
% These are symbols with multiple names. Eventually to be taken care of
% automatically by the maths characters database.
% \begin{macrocode}
-\def\to{\rightarrow}
-\def\le{\leq}
-\def\ge{\geq}
-\def\neq{\ne}
-\def\triangle{\mathord{\bigtriangleup}}
-\def\bigcirc{\mdlgwhtcircle}
-\def\circ{\vysmwhtcircle}
-\def\bullet{\smblkcircle}
-\def\mathyen{\yen}
-\def\mathsterling{\sterling}
-\def\diamond{\smwhtdiamond}
-\def\emptyset{\varnothing}
-\def\hbar{\hslash}
-\def\land{\wedge}
-\def\lor{\vee}
-\def\owns{\ni}
-\def\gets{\leftarrow}
-\def\mathring{\ocirc}
-\def\lnot{\neg}
-\def\longdivision{\longdivisionsign}
+\protected\def\to{\rightarrow}
+\protected\def\le{\leq}
+\protected\def\ge{\geq}
+\protected\def\neq{\ne}
+\protected\def\triangle{\mathord{\bigtriangleup}}
+\protected\def\bigcirc{\mdlgwhtcircle}
+\protected\def\circ{\vysmwhtcircle}
+\protected\def\bullet{\smblkcircle}
+\protected\def\mathyen{\yen}
+\protected\def\mathsterling{\sterling}
+\protected\def\diamond{\smwhtdiamond}
+\protected\def\emptyset{\varnothing}
+\protected\def\hbar{\hslash}
+\protected\def\land{\wedge}
+\protected\def\lor{\vee}
+\protected\def\owns{\ni}
+\protected\def\gets{\leftarrow}
+\protected\def\mathring{\ocirc}
+\protected\def\lnot{\neg}
+\protected\def\longdivision{\longdivisionsign}
% \end{macrocode}
% These are somewhat odd: (and their usual Unicode uprightness does not match their amssymb glyphs)
% \begin{macrocode}
-\def\backepsilon{\upbackepsilon}
-\def\eth{\matheth}
+\protected\def\backepsilon{\upbackepsilon}
+\protected\def\eth{\matheth}
% \end{macrocode}
% These are names that are `frozen' in HTML but have dumb names:
% \begin{macrocode}
-\def\dbkarow {\dbkarrow}
-\def\drbkarow{\drbkarrow}
-\def\hksearow{\hksearrow}
-\def\hkswarow{\hkswarrow}
+\protected\def\dbkarow {\dbkarrow}
+\protected\def\drbkarow{\drbkarrow}
+\protected\def\hksearow{\hksearrow}
+\protected\def\hkswarow{\hkswarrow}
% \end{macrocode}
%
% Due to the magic of OpenType math, big operators are automatically
% enlarged when necessary. Since there isn't a separate unicode glyph for
% `small integral', I'm not sure if there is a better way to do this:
% \begin{macrocode}
-\def\smallint{\mathop{\textstyle\int}\limits}
+\protected\def\smallint{\mathop{\textstyle\int}\limits}
% \end{macrocode}
%
% \begin{macro}{\underbar}
@@ -3811,20 +3800,20 @@ This work is "maintained" by Will Robertson.
% \begin{macro}{\Digamma}
% I might end up just changing these in the table.
% \begin{macrocode}
-\def\digamma{\updigamma}
-\def\Digamma{\upDigamma}
+\protected\def\digamma{\updigamma}
+\protected\def\Digamma{\upDigamma}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \paragraph{Symbols}
% \begin{macrocode}
-\cs_set:Npn \| {\Vert}
+\cs_set_protected:Npn \| {\Vert}
% \end{macrocode}
% \cs{mathinner} items:
% \begin{macrocode}
-\cs_set:Npn \mathellipsis {\mathinner{\unicodeellipsis}}
-\cs_set:Npn \cdots {\mathinner{\unicodecdots}}
+\cs_set_protected:Npn \mathellipsis {\mathinner{\unicodeellipsis}}
+\cs_set_protected:Npn \cdots {\mathinner{\unicodecdots}}
% \end{macrocode}
%
% \begin{macrocode}