texlive[50245] Master/texmf-dist: unicode-math (5mar19)
commits+karl at tug.org
commits+karl at tug.org
Tue Mar 5 23:33:41 CET 2019
Revision: 50245
http://tug.org/svn/texlive?view=revision&revision=50245
Author: karl
Date: 2019-03-05 23:33:41 +0100 (Tue, 05 Mar 2019)
Log Message:
-----------
unicode-math (5mar19)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/unicode-math/CHANGES.md
trunk/Master/texmf-dist/doc/latex/unicode-math/README.md
trunk/Master/texmf-dist/doc/latex/unicode-math/unicode-math-code.pdf
trunk/Master/texmf-dist/doc/latex/unicode-math/unicode-math.pdf
trunk/Master/texmf-dist/doc/latex/unicode-math/unimath-example.pdf
trunk/Master/texmf-dist/doc/latex/unicode-math/unimath-symbols.pdf
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-fontparam.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx
trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty
trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-xetex.sty
trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty
Modified: trunk/Master/texmf-dist/doc/latex/unicode-math/CHANGES.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/unicode-math/CHANGES.md 2019-03-05 22:33:18 UTC (rev 50244)
+++ trunk/Master/texmf-dist/doc/latex/unicode-math/CHANGES.md 2019-03-05 22:33:41 UTC (rev 50245)
@@ -1,8 +1,17 @@
CHANGE HISTORY
==============
-## v0.8n (2019/02/15)
+## v0.8o (2019/03/04)
+ * Avoid `'Dimension too large' error` for some (unpredictable) combinations of font
+ choice and the `Scale` option. Problems are still known to occur for very large or
+ very small values of `Scale`.
+ * Documentation is now run through ‘continuous integration’ (viz, *Travis* for the time being)
+ as well as the test suite.
+
+
+## v0.8n (2019/01/26)
+
* Add note to readme that the `lm-math` package is required for minimal functionality.
* Spacing fixed for maths fonts loaded with the `Scale` fontspec feature (#287).
* Commands like `\crampedtextstyle` now longer lead to an infinite loop under XeTeX (#505).
Modified: trunk/Master/texmf-dist/doc/latex/unicode-math/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/unicode-math/README.md 2019-03-05 22:33:18 UTC (rev 50244)
+++ trunk/Master/texmf-dist/doc/latex/unicode-math/README.md 2019-03-05 22:33:41 UTC (rev 50245)
@@ -90,7 +90,7 @@
---------------------------
The current release version is available from CTAN:
-> <http://tug.ctan.org/pkg/unicode-math>
+> <https://ctan.org/pkg/unicode-math>
Latest developmental and archived historical versions are available from Github:
> <http://github.com/wspr/unicode-math>
Modified: trunk/Master/texmf-dist/doc/latex/unicode-math/unicode-math-code.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/unicode-math/unicode-math.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/unicode-math/unimath-example.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/unicode-math/unimath-symbols.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-fontparam.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-fontparam.dtx 2019-03-05 22:33:18 UTC (rev 50244)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-fontparam.dtx 2019-03-05 22:33:41 UTC (rev 50245)
@@ -279,21 +279,21 @@
% \subsection{Historical commands}
%
% \begin{macro}{\@@_fontdimen_to_percent:nN}
-% \begin{macro}{\@@_fontdimen_to_scale:nN}
+% \begin{macro}{\@@_fontdimen_pc_to_pt:nN}
% \darg{Font dimen number}
% \darg{Font `variable'}
% \cmd\fontdimen s |10|, |11|, and |65| aren't actually dimensions, they're percentage values given in units of |sp|.
% \cs{@@_fontdimen_to_percent:nn} takes a font dimension number and outputs the decimal value of the associated parameter.
-% \cs{@@_fontdimen_to_scale:nn} returns a dimension correspond to the current
+% \cs{@@_fontdimen_pc_to_pt:nn} returns a dimension correspond to the current
% font size relative proportion based on that percentage.
% \begin{macrocode}
-\cs_new:Nn \@@_fontdimen_to_percent:nN
+\cs_set:Nn \@@_fontdimen_to_percent:nN
{
- \fp_eval:n { \dim_to_decimal:n { 65536 \fontdimen #1 #2 } / 100 }
+ \fp_eval:n { \dim_to_decimal_in_sp:n { \fontdimen #1 #2 } / 100 }
}
-\cs_new:Nn \@@_fontdimen_to_scale:nN
+\cs_new:Nn \@@_fontdimen_pc_to_pt:nN
{
- \fp_eval:n { \@@_fontdimen_to_percent:nN {#1} #2 * \f at size }
+ \fp_eval:n { \dim_to_decimal_in_sp:n { \fontdimen #1 #2 } / 100 * \f at size }
}
% \end{macrocode}
% \end{macro}
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx 2019-03-05 22:33:18 UTC (rev 50244)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx 2019-03-05 22:33:41 UTC (rev 50245)
@@ -127,10 +127,13 @@
% Set the math sizes according to the recommended font parameters.
% \begin{macrocode}
\tl_new:N \g_@@_main_font_cmd_tl
-\cs_new:Nn \@@_sf_size: { \@@_fontdimen_to_scale:nN {10} \g_@@_trial_font }
-\cs_new:Nn \@@_ssf_size: { \@@_fontdimen_to_scale:nN {11} \g_@@_trial_font }
+\cs_new:Nn \@@_sf_size: { \@@_fontdimen_pc_to_pt:nN {10} \g_@@_trial_font }
+\cs_new:Nn \@@_ssf_size: { \@@_fontdimen_pc_to_pt:nN {11} \g_@@_trial_font }
\@@_cs_new:Nn \@@_declare_math_sizes:
{
+ \fp_gset:Nn \g_@@_size_tfsf_fp { (\f at size + \@@_sf_size: )/2 }
+ \fp_gset:Nn \g_@@_size_sfssf_fp { (\@@_sf_size: + \@@_ssf_size:)/2 }
+
\dim_compare:nF { \fontdimen 10 \g_@@_trial_font == 0pt }
{
\DeclareMathSizes { \f at size } { \f at size } { \@@_sf_size: } { \@@_ssf_size: }
@@ -175,9 +178,6 @@
% \begin{macrocode}
\@@_cs_new:Nn \@@_fontspec_select_font:
{
- \fp_gset:Nn \g_@@_size_tfsf_fp { (\f at size + \@@_sf_size: )/2 }
- \fp_gset:Nn \g_@@_size_sfssf_fp { (\@@_sf_size: + \@@_ssf_size:)/2 }
-
\tl_set:Nx \l_@@_font_keyval_tl
{
%<LU> Renderer = Basic,
@@ -282,6 +282,8 @@
%
% \begin{macro}{\@@_setup_legacy_fam_two:}
% \TeX\ won't load the same font twice at the same scale, so we need to magnify this one by an imperceptable amount.
+% Note that for extreme font sizes, this scaling value might need to be adjusted.
+% 1.0001 should be enough for reasonable use cases however.
% \begin{macrocode}
\@@_cs_new:Nn \@@_setup_legacy_fam_two:
{
@@ -288,7 +290,7 @@
\fontspec_set_family:Nxn \l_@@_fam_two_tl
{
\l_@@_font_keyval_tl,
- ScaleAgain = 1.00001,
+ ScaleAgain = 1.0001,
FontAdjustment =
{
\@@_copy_fontdimen:nnN { 8} {43} \g_@@_main_font_cmd_tl
@@ -329,7 +331,7 @@
\fontspec_set_family:Nxn \l_@@_fam_three_tl
{
\l_@@_font_keyval_tl,
- ScaleAgain = 0.99999,
+ ScaleAgain = 0.9999,
FontAdjustment = {
\@@_copy_fontdimen:nnN { 8} {48} \g_@@_main_font_cmd_tl
\@@_copy_fontdimen:nnN { 9} {28} \g_@@_main_font_cmd_tl
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx 2019-03-05 22:33:18 UTC (rev 50244)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx 2019-03-05 22:33:41 UTC (rev 50245)
@@ -60,7 +60,7 @@
%<base>\ProvidesExplPackage{unicode-math}
%<package&XE>\ProvidesExplPackage{unicode-math-xetex}
%<package&LU>\ProvidesExplPackage{unicode-math-luatex}
-%<base|package> {2019/02/15} {0.8n} {Unicode maths in XeLaTeX and LuaLaTeX}
+%<base|package> {2019/03/04} {0.8o} {Unicode maths in XeLaTeX and LuaLaTeX}
% \end{macrocode}
%
% Here the version and date are setup for typesetting the documentation.
@@ -67,8 +67,8 @@
% \begin{macrocode}
%<*dtx>
\date{
- \def\filedate{2019/02/15}
- \def\fileversion{0.8n}
+ \def\filedate{2019/03/04}
+ \def\fileversion{0.8o}
\filedate \qquad \fileversion
}
%</dtx>
Modified: trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty 2019-03-05 22:33:18 UTC (rev 50244)
+++ trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty 2019-03-05 22:33:41 UTC (rev 50245)
@@ -43,7 +43,7 @@
%%^^A%% Metadata for the package code, including files and versioning
\ProvidesExplPackage{unicode-math-luatex}
- {2019/02/15} {0.8n} {Unicode maths in XeLaTeX and LuaLaTeX}
+ {2019/03/04} {0.8o} {Unicode maths in XeLaTeX and LuaLaTeX}
%%^^A%% um-code-opening.dtx -- part of UNICODE-MATH <wspr.io/unicode-math>
%%^^A%% Assorted initialisation tasks, including some low-level function definitions.
@@ -1267,10 +1267,13 @@
\cs_set_eq:NN \__um_make_mathactive:nNN \__um_make_mathactive_noparse:nNN
}
\tl_new:N \g__um_main_font_cmd_tl
-\cs_new:Nn \__um_sf_size: { \__um_fontdimen_to_scale:nN {10} \g__um_trial_font }
-\cs_new:Nn \__um_ssf_size: { \__um_fontdimen_to_scale:nN {11} \g__um_trial_font }
+\cs_new:Nn \__um_sf_size: { \__um_fontdimen_pc_to_pt:nN {10} \g__um_trial_font }
+\cs_new:Nn \__um_ssf_size: { \__um_fontdimen_pc_to_pt:nN {11} \g__um_trial_font }
\__um_cs_new:Nn \__um_declare_math_sizes:
{
+ \fp_gset:Nn \g__um_size_tfsf_fp { (\f at size + \__um_sf_size: )/2 }
+ \fp_gset:Nn \g__um_size_sfssf_fp { (\__um_sf_size: + \__um_ssf_size:)/2 }
+
\dim_compare:nF { \fontdimen 10 \g__um_trial_font == 0pt }
{
\DeclareMathSizes { \f at size } { \f at size } { \__um_sf_size: } { \__um_ssf_size: }
@@ -1303,9 +1306,6 @@
}
\__um_cs_new:Nn \__um_fontspec_select_font:
{
- \fp_gset:Nn \g__um_size_tfsf_fp { (\f at size + \__um_sf_size: )/2 }
- \fp_gset:Nn \g__um_size_sfssf_fp { (\__um_sf_size: + \__um_ssf_size:)/2 }
-
\tl_set:Nx \l__um_font_keyval_tl
{
Renderer = Basic,
@@ -1388,7 +1388,7 @@
\fontspec_set_family:Nxn \l__um_fam_two_tl
{
\l__um_font_keyval_tl,
- ScaleAgain = 1.00001,
+ ScaleAgain = 1.0001,
FontAdjustment =
{
\__um_copy_fontdimen:nnN { 8} {43} \g__um_main_font_cmd_tl
@@ -1423,7 +1423,7 @@
\fontspec_set_family:Nxn \l__um_fam_three_tl
{
\l__um_font_keyval_tl,
- ScaleAgain = 0.99999,
+ ScaleAgain = 0.9999,
FontAdjustment = {
\__um_copy_fontdimen:nnN { 8} {48} \g__um_main_font_cmd_tl
\__um_copy_fontdimen:nnN { 9} {28} \g__um_main_font_cmd_tl
@@ -1884,13 +1884,13 @@
\__um_font_param:nn { underbar_rule } { 57 }
\__um_font_param:nn { underbar_vgap } { 56 }
\__um_font_param:n { connector_overlap_min }
-\cs_new:Nn \__um_fontdimen_to_percent:nN
+\cs_set:Nn \__um_fontdimen_to_percent:nN
{
- \fp_eval:n { \dim_to_decimal:n { 65536 \fontdimen #1 #2 } / 100 }
+ \fp_eval:n { \dim_to_decimal_in_sp:n { \fontdimen #1 #2 } / 100 }
}
-\cs_new:Nn \__um_fontdimen_to_scale:nN
+\cs_new:Nn \__um_fontdimen_pc_to_pt:nN
{
- \fp_eval:n { \__um_fontdimen_to_percent:nN {#1} #2 * \f at size }
+ \fp_eval:n { \dim_to_decimal_in_sp:n { \fontdimen #1 #2 } / 100 * \f at size }
}
\cs_new:Nn \__um_mathstyle_scale:NnnN
{
Modified: trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-xetex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-xetex.sty 2019-03-05 22:33:18 UTC (rev 50244)
+++ trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-xetex.sty 2019-03-05 22:33:41 UTC (rev 50245)
@@ -43,7 +43,7 @@
%%^^A%% Metadata for the package code, including files and versioning
\ProvidesExplPackage{unicode-math-xetex}
- {2019/02/15} {0.8n} {Unicode maths in XeLaTeX and LuaLaTeX}
+ {2019/03/04} {0.8o} {Unicode maths in XeLaTeX and LuaLaTeX}
%%^^A%% um-code-opening.dtx -- part of UNICODE-MATH <wspr.io/unicode-math>
%%^^A%% Assorted initialisation tasks, including some low-level function definitions.
@@ -1257,10 +1257,13 @@
\cs_set_eq:NN \__um_make_mathactive:nNN \__um_make_mathactive_noparse:nNN
}
\tl_new:N \g__um_main_font_cmd_tl
-\cs_new:Nn \__um_sf_size: { \__um_fontdimen_to_scale:nN {10} \g__um_trial_font }
-\cs_new:Nn \__um_ssf_size: { \__um_fontdimen_to_scale:nN {11} \g__um_trial_font }
+\cs_new:Nn \__um_sf_size: { \__um_fontdimen_pc_to_pt:nN {10} \g__um_trial_font }
+\cs_new:Nn \__um_ssf_size: { \__um_fontdimen_pc_to_pt:nN {11} \g__um_trial_font }
\__um_cs_new:Nn \__um_declare_math_sizes:
{
+ \fp_gset:Nn \g__um_size_tfsf_fp { (\f at size + \__um_sf_size: )/2 }
+ \fp_gset:Nn \g__um_size_sfssf_fp { (\__um_sf_size: + \__um_ssf_size:)/2 }
+
\dim_compare:nF { \fontdimen 10 \g__um_trial_font == 0pt }
{
\DeclareMathSizes { \f at size } { \f at size } { \__um_sf_size: } { \__um_ssf_size: }
@@ -1291,9 +1294,6 @@
}
\__um_cs_new:Nn \__um_fontspec_select_font:
{
- \fp_gset:Nn \g__um_size_tfsf_fp { (\f at size + \__um_sf_size: )/2 }
- \fp_gset:Nn \g__um_size_sfssf_fp { (\__um_sf_size: + \__um_ssf_size:)/2 }
-
\tl_set:Nx \l__um_font_keyval_tl
{
BoldItalicFont = {}, ItalicFont = {}, SmallCapsFont = {},
@@ -1353,7 +1353,7 @@
\fontspec_set_family:Nxn \l__um_fam_two_tl
{
\l__um_font_keyval_tl,
- ScaleAgain = 1.00001,
+ ScaleAgain = 1.0001,
FontAdjustment =
{
\__um_copy_fontdimen:nnN { 8} {43} \g__um_main_font_cmd_tl
@@ -1388,7 +1388,7 @@
\fontspec_set_family:Nxn \l__um_fam_three_tl
{
\l__um_font_keyval_tl,
- ScaleAgain = 0.99999,
+ ScaleAgain = 0.9999,
FontAdjustment = {
\__um_copy_fontdimen:nnN { 8} {48} \g__um_main_font_cmd_tl
\__um_copy_fontdimen:nnN { 9} {28} \g__um_main_font_cmd_tl
@@ -1813,13 +1813,13 @@
\__um_font_param:nn { underbar_rule } { 57 }
\__um_font_param:nn { underbar_vgap } { 56 }
\__um_font_param:n { connector_overlap_min }
-\cs_new:Nn \__um_fontdimen_to_percent:nN
+\cs_set:Nn \__um_fontdimen_to_percent:nN
{
- \fp_eval:n { \dim_to_decimal:n { 65536 \fontdimen #1 #2 } / 100 }
+ \fp_eval:n { \dim_to_decimal_in_sp:n { \fontdimen #1 #2 } / 100 }
}
-\cs_new:Nn \__um_fontdimen_to_scale:nN
+\cs_new:Nn \__um_fontdimen_pc_to_pt:nN
{
- \fp_eval:n { \__um_fontdimen_to_percent:nN {#1} #2 * \f at size }
+ \fp_eval:n { \dim_to_decimal_in_sp:n { \fontdimen #1 #2 } / 100 * \f at size }
}
\cs_new:Nn \__um_mathstyle_scale:NnnN
{
Modified: trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty 2019-03-05 22:33:18 UTC (rev 50244)
+++ trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty 2019-03-05 22:33:41 UTC (rev 50245)
@@ -24,7 +24,7 @@
\RequirePackage{expl3}
\ProvidesExplPackage{unicode-math}
- {2019/02/15} {0.8n} {Unicode maths in XeLaTeX and LuaLaTeX}
+ {2019/03/04} {0.8o} {Unicode maths in XeLaTeX and LuaLaTeX}
\sys_if_engine_luatex:T { \RequirePackageWithOptions{unicode-math-luatex} }
\sys_if_engine_xetex:T { \RequirePackageWithOptions{unicode-math-xetex} }
\sys_if_engine_pdftex:T
More information about the tex-live-commits
mailing list