From 1d1c81d42f36755f72bbd69c5a29c2d6a9fec04d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 31 Jan 2020 03:01:20 +0000 Subject: CTAN sync 202001310301 --- macros/latex/contrib/unicode-math/CHANGES.md | 6 ++++ macros/latex/contrib/unicode-math/um-code-main.dtx | 14 ++++---- .../contrib/unicode-math/um-code-mathtext.dtx | 37 ++++++++++++++------- .../contrib/unicode-math/unicode-math-code.pdf | Bin 323520 -> 325165 bytes macros/latex/contrib/unicode-math/unicode-math.dtx | 23 ++++++++----- macros/latex/contrib/unicode-math/unicode-math.pdf | Bin 162731 -> 162723 bytes .../latex/contrib/unicode-math/unimath-example.pdf | Bin 22002 -> 21851 bytes .../latex/contrib/unicode-math/unimath-symbols.pdf | Bin 1208308 -> 1194223 bytes 8 files changed, 52 insertions(+), 28 deletions(-) (limited to 'macros/latex/contrib/unicode-math') diff --git a/macros/latex/contrib/unicode-math/CHANGES.md b/macros/latex/contrib/unicode-math/CHANGES.md index 01dcd8a462..facafe8080 100644 --- a/macros/latex/contrib/unicode-math/CHANGES.md +++ b/macros/latex/contrib/unicode-math/CHANGES.md @@ -1,6 +1,12 @@ CHANGE HISTORY ============== +## v0.8q (2020/01/31) + + * Update to adapt to / support new features in the upcoming 2e kernel. + * Give a better error message if used on non-supported engines that are not pdfTeX. + + ## v0.8p (2019/09/26) * Remove dependency on `filehook` package. Just to simplify. diff --git a/macros/latex/contrib/unicode-math/um-code-main.dtx b/macros/latex/contrib/unicode-math/um-code-main.dtx index 2c6e7bb7db..ff132044e0 100644 --- a/macros/latex/contrib/unicode-math/um-code-main.dtx +++ b/macros/latex/contrib/unicode-math/um-code-main.dtx @@ -264,17 +264,17 @@ \cs_if_exist:cF { sym \l_@@_symfont_label_tl } { \DeclareSymbolFont{\l_@@_symfont_label_tl} - {\encodingdefault}{\l_@@_family_tl}{\mddefault}{\updefault} + {\encodingdefault}{\l_@@_family_tl}{\mddefault}{\shapedefault} } \SetSymbolFont{\l_@@_symfont_label_tl}{\l_@@_mversion_tl} - {\encodingdefault}{\l_@@_family_tl}{\mddefault}{\updefault} + {\encodingdefault}{\l_@@_family_tl}{\mddefault}{\shapedefault} % \end{macrocode} % Set the bold math version. % \begin{macrocode} \str_if_eq:eeT {\l_@@_mversion_tl} {normal} { \SetSymbolFont{\l_@@_symfont_label_tl}{bold} - {\encodingdefault}{\l_@@_family_tl}{\bfdefault}{\updefault} + {\encodingdefault}{\l_@@_family_tl}{\bfdefault}{\shapedefault} } } % \end{macrocode} @@ -312,12 +312,12 @@ } {\l_@@_fontname_tl} \SetSymbolFont{symbols}{\l_@@_mversion_tl} - {\encodingdefault}{\l_@@_fam_two_tl}{\mddefault}{\updefault} + {\encodingdefault}{\l_@@_fam_two_tl}{\mddefault}{\shapedefault} \str_if_eq:eeT {\l_@@_mversion_tl} {normal} { \SetSymbolFont{symbols}{bold} - {\encodingdefault}{\l_@@_fam_two_tl}{\bfdefault}{\updefault} + {\encodingdefault}{\l_@@_fam_two_tl}{\bfdefault}{\shapedefault} } } % \end{macrocode} @@ -343,12 +343,12 @@ } {\l_@@_fontname_tl} \SetSymbolFont{largesymbols}{\l_@@_mversion_tl} - {\encodingdefault}{\l_@@_fam_three_tl}{\mddefault}{\updefault} + {\encodingdefault}{\l_@@_fam_three_tl}{\mddefault}{\shapedefault} \str_if_eq:eeT {\l_@@_mversion_tl} {normal} { \SetSymbolFont{largesymbols}{bold} - {\encodingdefault}{\l_@@_fam_three_tl}{\bfdefault}{\updefault} + {\encodingdefault}{\l_@@_fam_three_tl}{\bfdefault}{\shapedefault} } } % \end{macrocode} diff --git a/macros/latex/contrib/unicode-math/um-code-mathtext.dtx b/macros/latex/contrib/unicode-math/um-code-mathtext.dtx index 602ba01352..d002483378 100644 --- a/macros/latex/contrib/unicode-math/um-code-mathtext.dtx +++ b/macros/latex/contrib/unicode-math/um-code-mathtext.dtx @@ -32,10 +32,10 @@ \tl_if_empty:NT \l_@@_mversion_tl { \tl_set:Nn \l_@@_mversion_tl {normal} - \DeclareMathAlphabet #1 {\g_fontspec_encoding_tl} {\l_@@_tmpa_tl} {\mddefault} {\updefault} + \DeclareMathAlphabet #1 {\g_fontspec_encoding_tl} {\l_@@_tmpa_tl} {\mddefault} {\shapedefault} } - \SetMathAlphabet #1 {\l_@@_mversion_tl} {\g_fontspec_encoding_tl} {\l_@@_tmpa_tl} {\mddefault} {\updefault} + \SetMathAlphabet #1 {\l_@@_mversion_tl} {\g_fontspec_encoding_tl} {\l_@@_tmpa_tl} {\mddefault} {\shapedefault} % integrate with fontspec's \setmathrm etc: \tl_case:Nn #1 @@ -169,35 +169,48 @@ % % \subsubsection{Maths font} % -% If the maths fonts are set explicitly, then the text commands above will not execute their branches to set the maths font alphabets. +% If the maths fonts are set explicitly, then the text commands above will not execute +% their branches to set the maths font alphabets. +% +% Helper macro for looking up customisable series' by family (new \LaTeXe\ feature 2020). +% \begin{macrocode} +\cs_new:Nn \@@_rm_series_default:n + { + \ifcsname #1series@rm\endcsname + \csname #1series@rm\endcsname + \else + \csname #1default\endcsname + \fi + } +% \end{macrocode} % \begin{macrocode} \@@_cs_set:Nn \__fontspec_setmathrm_hook:nn { - \SetMathAlphabet\mathrm{normal}\g_fontspec_encoding_tl\g__fontspec_mathrm_tl\mddefault\updefault - \SetMathAlphabet\mathit{normal}\g_fontspec_encoding_tl\g__fontspec_mathrm_tl\mddefault\itdefault - \SetMathAlphabet\mathbf{normal}\g_fontspec_encoding_tl\g__fontspec_mathrm_tl\bfdefault\updefault + \SetMathAlphabet\mathrm{normal}\g_fontspec_encoding_tl\g__fontspec_mathrm_tl{\@@_rm_series_default:n {md}}\shapedefault + \SetMathAlphabet\mathit{normal}\g_fontspec_encoding_tl\g__fontspec_mathrm_tl{\@@_rm_series_default:n {md}}\itdefault + \SetMathAlphabet\mathbf{normal}\g_fontspec_encoding_tl\g__fontspec_mathrm_tl{\@@_rm_series_default:n {bf}}\shapedefault } % \end{macrocode} % \begin{macrocode} \@@_cs_set:Nn \__fontspec_setboldmathrm_hook:nn { - \SetMathAlphabet\mathrm{bold}\g_fontspec_encoding_tl\g__fontspec_bfmathrm_tl\mddefault\updefault - \SetMathAlphabet\mathbf{bold}\g_fontspec_encoding_tl\g__fontspec_bfmathrm_tl\bfdefault\updefault + \SetMathAlphabet\mathrm{bold}\g_fontspec_encoding_tl\g__fontspec_bfmathrm_tl{\@@_rm_series_default:n {md}}\shapedefault + \SetMathAlphabet\mathbf{bold}\g_fontspec_encoding_tl\g__fontspec_bfmathrm_tl{\@@_rm_series_default:n {bf}}\shapedefault \SetMathAlphabet\mathit{bold}\g_fontspec_encoding_tl\g__fontspec_bfmathrm_tl\mddefault\itdefault } % \end{macrocode} % \begin{macrocode} \@@_cs_set:Nn \__fontspec_setmathsf_hook:nn { - \SetMathAlphabet\mathsf{normal}\g_fontspec_encoding_tl\g__fontspec_mathsf_tl\mddefault\updefault - \SetMathAlphabet\mathsf{bold} \g_fontspec_encoding_tl\g__fontspec_mathsf_tl\bfdefault\updefault + \SetMathAlphabet\mathsf{normal}\g_fontspec_encoding_tl\g__fontspec_mathsf_tl{\@@_rm_series_default:n {md}}\shapedefault + \SetMathAlphabet\mathsf{bold} \g_fontspec_encoding_tl\g__fontspec_mathsf_tl{\@@_rm_series_default:n {bf}}\shapedefault } % \end{macrocode} % \begin{macrocode} \@@_cs_set:Nn \__fontspec_setmathtt_hook:nn { - \SetMathAlphabet\mathtt{normal}\g_fontspec_encoding_tl\g__fontspec_mathtt_tl\mddefault\updefault - \SetMathAlphabet\mathtt{bold} \g_fontspec_encoding_tl\g__fontspec_mathtt_tl\bfdefault\updefault + \SetMathAlphabet\mathtt{normal}\g_fontspec_encoding_tl\g__fontspec_mathtt_tl{\@@_rm_series_default:n {md}}\shapedefault + \SetMathAlphabet\mathtt{bold} \g_fontspec_encoding_tl\g__fontspec_mathtt_tl{\@@_rm_series_default:n {bf}}\shapedefault } % \end{macrocode} % diff --git a/macros/latex/contrib/unicode-math/unicode-math-code.pdf b/macros/latex/contrib/unicode-math/unicode-math-code.pdf index c251d66a18..9d87097173 100644 Binary files a/macros/latex/contrib/unicode-math/unicode-math-code.pdf and b/macros/latex/contrib/unicode-math/unicode-math-code.pdf differ diff --git a/macros/latex/contrib/unicode-math/unicode-math.dtx b/macros/latex/contrib/unicode-math/unicode-math.dtx index 3aee6d530b..1253cab5d4 100644 --- a/macros/latex/contrib/unicode-math/unicode-math.dtx +++ b/macros/latex/contrib/unicode-math/unicode-math.dtx @@ -60,15 +60,15 @@ %\ProvidesExplPackage{unicode-math} %\ProvidesExplPackage{unicode-math-xetex} %\ProvidesExplPackage{unicode-math-luatex} -% {2019/09/26} {0.8p} {Unicode maths in XeLaTeX and LuaLaTeX} +% {2020/01/31} {0.8q} {Unicode maths in XeLaTeX and LuaLaTeX} % \end{macrocode} % % Here the version and date are setup for typesetting the documentation. % \begin{macrocode} %<*dtx> \date{ - \def\filedate{2019/09/26} - \def\fileversion{0.8p} + \def\filedate{2020/01/31} + \def\fileversion{0.8q} \filedate \qquad \fileversion } % @@ -80,14 +80,19 @@ % and then splits into a XeTeX- or LuaTeX-specific version of the package. % % \begin{macrocode} -%\sys_if_engine_luatex:T { \RequirePackageWithOptions{unicode-math-luatex} } -%\sys_if_engine_xetex:T { \RequirePackageWithOptions{unicode-math-xetex} } -%\sys_if_engine_pdftex:T +%\sys_if_engine_luatex: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} +% \RequirePackageWithOptions{unicode-math-luatex} +% \endinput % } +%\sys_if_engine_xetex:T +% { +% \RequirePackageWithOptions{unicode-math-xetex} +% \endinput +% } +%\msg_new:nnn {unicode-math} {unsupported-engine} +% { Cannot~ be~ run~ with~ \c_sys_engine_str!\\ Use~ XeLaTeX~ or~ LuaLaTeX~ instead. } +%\msg_error:nn {unicode-math} {unsupported-engine} %\endinput % \end{macrocode} diff --git a/macros/latex/contrib/unicode-math/unicode-math.pdf b/macros/latex/contrib/unicode-math/unicode-math.pdf index 41da2850e6..1d2cf0948a 100644 Binary files a/macros/latex/contrib/unicode-math/unicode-math.pdf and b/macros/latex/contrib/unicode-math/unicode-math.pdf differ diff --git a/macros/latex/contrib/unicode-math/unimath-example.pdf b/macros/latex/contrib/unicode-math/unimath-example.pdf index 315e19f268..a339e72f9d 100644 Binary files a/macros/latex/contrib/unicode-math/unimath-example.pdf and b/macros/latex/contrib/unicode-math/unimath-example.pdf differ diff --git a/macros/latex/contrib/unicode-math/unimath-symbols.pdf b/macros/latex/contrib/unicode-math/unimath-symbols.pdf index bd55866e6b..c2b54bc257 100644 Binary files a/macros/latex/contrib/unicode-math/unimath-symbols.pdf and b/macros/latex/contrib/unicode-math/unimath-symbols.pdf differ -- cgit v1.2.3