texlive[67919] Master/texmf-dist: unicode-math (13aug23)
commits+karl at tug.org
commits+karl at tug.org
Sun Aug 13 21:58:06 CEST 2023
Revision: 67919
http://tug.org/svn/texlive?view=revision&revision=67919
Author: karl
Date: 2023-08-13 21:58:06 +0200 (Sun, 13 Aug 2023)
Log Message:
-----------
unicode-math (13aug23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/unicode-math/CHANGES.md
trunk/Master/texmf-dist/doc/latex/unicode-math/MANIFEST.md
trunk/Master/texmf-dist/doc/latex/unicode-math/README.md
trunk/Master/texmf-dist/doc/latex/unicode-math/um-doc-main.tex
trunk/Master/texmf-dist/doc/latex/unicode-math/um-doc-style.tex
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.ltx
trunk/Master/texmf-dist/doc/latex/unicode-math/unimath-symbols.pdf
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-alphabets.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-epilogue.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-fontopt.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-mathtext.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-opening.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-pkgopt.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-primes.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-setchar.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-sym-commands.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-usv.dtx
trunk/Master/texmf-dist/source/latex/unicode-math/um-code-variables.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-table.tex
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 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/doc/latex/unicode-math/CHANGES.md 2023-08-13 19:58:06 UTC (rev 67919)
@@ -1,6 +1,15 @@
CHANGE HISTORY
==============
+## v0.8r (2023/08/13)
+
+ * Revise definitions of `\\setminus` and `\\smallsetminus` (#181, #583) — long overdue.
+ Note that there are compatibility considerations with this change.
+ * Add `\\diagup` and `\\diagdown` (#604).
+ * Make `\\operator at font` protected to allow operators (e.g., `\\cos`) in section headings (etc). (#550)
+ * Allow `\\symcal` to handle lowercase Latin (#589).
+ * Add additional fonts to the symbol listing document (#597).
+
## v0.8q (2020/01/31)
* Update to adapt to / support new features in the upcoming 2e kernel.
@@ -156,7 +165,7 @@
## v0.8d (2017/01/25)
* `vargreek-shape=TeX` and `vargreek-shape=unicode` package options dropped; for consistency and compatibility, `\phi` and `\epsilon` should and will now behave the same as in `TeX`.
- * On that note, when using control sequences such as `\mbfitsansvarphi` (and so on), there were a few faulty definitions. The new behaviour is to consistenyl define the `varphi` and `varepsilon` ones as those with the "curly" designs.
+ * On that note, when using control sequences such as `\mbfitsansvarphi` (and so on), there were a few faulty definitions. The new behaviour is to consistently define the `varphi` and `varepsilon` ones as those with the "curly" designs.
* Add `\wideoverbar`, `\widebreve`, `\widecheck`.
* Add `\mathsection`, `\mathparagraph`.
* Remove `\mupvarbeta`, `upold(Kk)oppa`, `\up(Ss)tigma`, `\up(Kk)oppa`, `\up(Ss)ampi` — none of these are maths symbols.
Modified: trunk/Master/texmf-dist/doc/latex/unicode-math/MANIFEST.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/unicode-math/MANIFEST.md 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/doc/latex/unicode-math/MANIFEST.md 2023-08-13 19:58:06 UTC (rev 67919)
@@ -18,27 +18,27 @@
| File | Flag | Description |
| --- | --- | --- |
- | unicode-math.dtx | ‡ | Metadata for the package code, including files and versioning |
- | um-code-opening.dtx | ‡ | Assorted initialisation tasks, including some low-level function definitions. |
- | um-code-variables.dtx | ‡ | Declaration of all code-level variables used in the package. |
+ | um-code-alphabets.dtx | ‡ | Definitions for setting up the "math symbol alphabets". |
+ | um-code-amsmath.dtx | ‡ | Compatibility with amsmath. |
| um-code-api.dtx | ‡ | The (underdeveloped) API to interface with the package internals. |
- | um-code-ui.dtx | ‡ | The xparse user interface top-level definitions. |
- | um-code-pkgopt.dtx | ‡ | Package options. |
- | um-code-msg.dtx | ‡ | Definitions of error, warning, and log messages. |
- | um-code-usv.dtx | ‡ | Mapping of mathematical unicode slots for alphabets. |
- | um-code-setchar.dtx | ‡ | General assignment of maths symbols. |
- | um-code-mathtext.dtx | ‡ | The "math text" commands such as `\mathbf` and co. |
- | um-code-main.dtx | ‡ | Definition of `\setmainfont`. |
+ | um-code-compat.dtx | ‡ | Compatibility with 3rd party packages. |
+ | um-code-epilogue.dtx | ‡ | Assorted definitions to close up. |
| um-code-fontopt.dtx | ‡ | Keyval for `\setmathfont` |
| um-code-fontparam.dtx | ‡ | Cross-platform interface for font parameters |
+ | um-code-main.dtx | ‡ | Definition of `\setmainfont`. |
| um-code-mathmap.dtx | ‡ | Setup of symbol alphabets. |
- | um-code-sym-commands.dtx | ‡ | Definition of "math symbol alphabet" commands such as `\symbf` and co. |
- | um-code-alphabets.dtx | ‡ | Definitions for setting up the "math symbol alphabets". |
+ | um-code-mathtext.dtx | ‡ | The "math text" commands such as `\mathbf` and co. |
+ | um-code-msg.dtx | ‡ | Definitions of error, warning, and log messages. |
+ | um-code-opening.dtx | ‡ | Assorted initialisation tasks, including some low-level function definitions. |
+ | um-code-pkgopt.dtx | ‡ | Package options. |
| um-code-primes.dtx | ‡ | The definitions needed for the input of primes. |
+ | um-code-setchar.dtx | ‡ | General assignment of maths symbols. |
| um-code-sscript.dtx | ‡ | Setup for active chars needed to process subscript/superscript input chars. |
- | um-code-compat.dtx | ‡ | Compatibility with 3rd party packages. |
- | um-code-amsmath.dtx | ‡ | Compatibility with amsmath. |
- | um-code-epilogue.dtx | ‡ | Assorted definitions to close up. |
+ | um-code-sym-commands.dtx | ‡ | Definition of "math symbol alphabet" commands such as `\symbf` and co. |
+ | um-code-ui.dtx | ‡ | The xparse user interface top-level definitions. |
+ | um-code-usv.dtx | ‡ | Mapping of mathematical unicode slots for alphabets. |
+ | um-code-variables.dtx | ‡ | Declaration of all code-level variables used in the package. |
+ | unicode-math.dtx | ‡ | Metadata for the package code, including files and versioning |
| unicode-math.ins | ‡ | Docstrip installer. |
| unicode-math-table.tex | ‡ | Source file of the math symbols. |
@@ -58,12 +58,12 @@
These files form part of the documentation but are not typeset. Generally they will be
additional input files for the typeset documentation files listed above.
- 1. um-doc-style.tex ‡
+ 1. um-doc-legacyfontdimen.tex ‡
2. um-doc-main.tex ‡
- 3. um-doc-stixextract.tex ‡
+ 3. um-doc-mathfontdimen.tex ‡
4. um-doc-nfsssummary.tex ‡
- 5. um-doc-legacyfontdimen.tex ‡
- 6. um-doc-mathfontdimen.tex ‡
+ 5. um-doc-stixextract.tex ‡
+ 6. um-doc-style.tex ‡
### Text files
@@ -72,7 +72,8 @@
1. CHANGES.md ‡
2. MANIFEST.md ‡
3. README.md ‡
- 4. LICENSE
+ 4. RELEASE_CHECKLIST.md ‡
+ 5. LICENSE
### Derived files
@@ -101,10 +102,13 @@
### Test files
-These files form the test suite for the package. The listed `.lvt` files are the individual unit tests, with matching `.tlg` (not shown, for brevity) are the stored output for ensuring changes to the package produce the same output.
+These files form the test suite for the package. `.lvt` or `.lte` files are the individual
+unit tests, and `.tlg` are the stored output for ensuring changes to the package produce
+the same output. These output files are sometimes shared and sometime specific for
+different engines (pdfTeX, XeTeX, LuaTeX, etc.).
- 1. Bbbit.lvt
- 2. aaa-loading.lvt
+ 1. aaa-loading.lvt
+ 2. aaa-sym.lvt
3. active-frac.lvt
4. active-sscripts-amsmath.lvt
5. active-sscripts.lvt
@@ -120,30 +124,133 @@
15. boldstyle-literal.lvt
16. boldstyle-tex.lvt
17. boldstyle-upright.lvt
-18. fontname-log.lvt
-19. hyphen.lvt
-20. input-fullwidth.lvt
-21. lmdefault-mathrm-it-bf.lvt
-22. mathit-symit-var.lvt
-23. mathit-symit.lvt
-24. mathsizes.lvt
-25. mathstyle-french.lvt
-26. mathstyle-iso.lvt
-27. mathstyle-literal.lvt
-28. mathstyle-tex.lvt
-29. mathstyle-upright.lvt
-30. nabla.lvt
-31. not.lvt
-32. operatorname.lvt
-33. partial.lvt
-34. range-char-cmd.lvt
-35. range-class.lvt
-36. range-up-num.lvt
-37. setmathsf.lvt
-38. sqrt-amsmath-exec.lvt
-39. sqrt-amsmath-output.lvt
-40. sqrt-exec.lvt
-41. sqrt-output.lvt
+18. cramped-style.lvt
+19. fontname-log.lvt
+20. hyphen.lvt
+21. input-fullwidth.lvt
+22. lmdefault-mathrm-it-bf.lvt
+23. mathit-symit-var.lvt
+24. mathit-symit.lvt
+25. mathoperator-mathbf.lvt
+26. mathrm-mathcal-nest.lvt
+27. mathrm-nobraces.lvt
+28. mathsizes.lvt
+29. mathstyle-french.lvt
+30. mathstyle-iso.lvt
+31. mathstyle-literal.lvt
+32. mathstyle-tex.lvt
+33. mathstyle-upright.lvt
+34. nabla.lvt
+35. nesting.lvt
+36. not.lvt
+37. operatorname.lvt
+38. partial.lvt
+39. radical-cuberoot-output.lvt
+40. range-char-cmd.lvt
+41. range-class.lvt
+42. range-nabla-partial.lvt
+43. range-up-num.lvt
+44. setmathfontface.lvt
+45. setmathsf.lvt
+46. sqrt-amsmath-output.lvt
+47. style-Bbbit.lvt
+48. url.lvt
+49. aaa-loading.luatex.tlg
+50. aaa-loading.xetex.tlg
+51. aaa-sym.luatex.tlg
+52. aaa-sym.xetex.tlg
+53. active-frac.luatex.tlg
+54. active-frac.xetex.tlg
+55. active-sscripts-amsmath.luatex.tlg
+56. active-sscripts-amsmath.xetex.tlg
+57. active-sscripts.luatex.tlg
+58. active-sscripts.xetex.tlg
+59. alph-range-calscr.luatex.tlg
+60. alph-range-calscr.xetex.tlg
+61. alph-range-fallback.luatex.tlg
+62. alph-range-fallback.xetex.tlg
+63. alph-range-mapping.luatex.tlg
+64. alph-range-mapping.xetex.tlg
+65. alph-range-sym-alph.luatex.tlg
+66. alph-range-sym-alph.xetex.tlg
+67. alph-range-sym-range.luatex.tlg
+68. alph-range-sym-range.xetex.tlg
+69. alph-sym.luatex.tlg
+70. alph-sym.xetex.tlg
+71. ascii-catcodes.luatex.tlg
+72. ascii-catcodes.xetex.tlg
+73. boldstyle-french.luatex.tlg
+74. boldstyle-french.xetex.tlg
+75. boldstyle-iso.luatex.tlg
+76. boldstyle-iso.xetex.tlg
+77. boldstyle-literal.luatex.tlg
+78. boldstyle-literal.xetex.tlg
+79. boldstyle-tex.luatex.tlg
+80. boldstyle-tex.xetex.tlg
+81. boldstyle-upright.luatex.tlg
+82. boldstyle-upright.xetex.tlg
+83. cramped-style.luatex.tlg
+84. cramped-style.xetex.tlg
+85. fontname-log.luatex.tlg
+86. fontname-log.xetex.tlg
+87. hyphen.luatex.tlg
+88. hyphen.xetex.tlg
+89. input-fullwidth.luatex.tlg
+90. input-fullwidth.xetex.tlg
+91. lmdefault-mathrm-it-bf.luatex.tlg
+92. lmdefault-mathrm-it-bf.xetex.tlg
+93. mathit-symit-var.luatex.tlg
+94. mathit-symit-var.xetex.tlg
+95. mathit-symit.luatex.tlg
+96. mathit-symit.xetex.tlg
+97. mathoperator-mathbf.luatex.tlg
+98. mathoperator-mathbf.xetex.tlg
+99. mathrm-mathcal-nest.luatex.tlg
+100. mathrm-mathcal-nest.xetex.tlg
+101. mathrm-nobraces.luatex.tlg
+102. mathrm-nobraces.xetex.tlg
+103. mathsizes.luatex.tlg
+104. mathsizes.xetex.tlg
+105. mathstyle-french.luatex.tlg
+106. mathstyle-french.xetex.tlg
+107. mathstyle-iso.luatex.tlg
+108. mathstyle-iso.xetex.tlg
+109. mathstyle-literal.luatex.tlg
+110. mathstyle-literal.xetex.tlg
+111. mathstyle-tex.luatex.tlg
+112. mathstyle-tex.xetex.tlg
+113. mathstyle-upright.luatex.tlg
+114. mathstyle-upright.xetex.tlg
+115. nabla.luatex.tlg
+116. nabla.xetex.tlg
+117. nesting.luatex.tlg
+118. nesting.xetex.tlg
+119. not.luatex.tlg
+120. not.xetex.tlg
+121. operatorname.luatex.tlg
+122. operatorname.xetex.tlg
+123. partial.luatex.tlg
+124. partial.xetex.tlg
+125. radical-cuberoot-output.luatex.tlg
+126. radical-cuberoot-output.xetex.tlg
+127. range-char-cmd.luatex.tlg
+128. range-char-cmd.xetex.tlg
+129. range-class.luatex.tlg
+130. range-class.xetex.tlg
+131. range-nabla-partial.luatex.tlg
+132. range-nabla-partial.xetex.tlg
+133. range-up-num.luatex.tlg
+134. range-up-num.xetex.tlg
+135. setmathfontface.luatex.tlg
+136. setmathfontface.xetex.tlg
+137. setmathsf.luatex.tlg
+138. setmathsf.xetex.tlg
+139. sqrt-amsmath-output.luatex.tlg
+140. sqrt-amsmath-output.xetex.tlg
+141. style-Bbbit.luatex.tlg
+142. style-Bbbit.xetex.tlg
+143. url.luatex.tlg
+144. url.xetex.tlg
## TDS manifest
@@ -194,20 +301,21 @@
1. CHANGES.md
2. MANIFEST.md
3. README.md
- 4. um-doc-legacyfontdimen.tex
- 5. um-doc-main.tex
- 6. um-doc-mathfontdimen.tex
- 7. um-doc-nfsssummary.tex
- 8. um-doc-stixextract.tex
- 9. um-doc-style.tex
-10. unicode-math-code.ltx
-11. unicode-math-code.pdf
-12. unicode-math.ltx
-13. unicode-math.pdf
-14. unimath-example.ltx
-15. unimath-example.pdf
-16. unimath-symbols.ltx
-17. unimath-symbols.pdf
+ 4. RELEASE_CHECKLIST.md
+ 5. um-doc-legacyfontdimen.tex
+ 6. um-doc-main.tex
+ 7. um-doc-mathfontdimen.tex
+ 8. um-doc-nfsssummary.tex
+ 9. um-doc-stixextract.tex
+10. um-doc-style.tex
+11. unicode-math-code.ltx
+12. unicode-math-code.pdf
+13. unicode-math.ltx
+14. unicode-math.pdf
+15. unimath-example.ltx
+16. unimath-example.pdf
+17. unimath-symbols.ltx
+18. unimath-symbols.pdf
## CTAN manifest
@@ -219,40 +327,41 @@
1. CHANGES.md
2. MANIFEST.md
3. README.md
- 4. um-code-alphabets.dtx
- 5. um-code-amsmath.dtx
- 6. um-code-api.dtx
- 7. um-code-compat.dtx
- 8. um-code-epilogue.dtx
- 9. um-code-fontopt.dtx
-10. um-code-fontparam.dtx
-11. um-code-main.dtx
-12. um-code-mathmap.dtx
-13. um-code-mathtext.dtx
-14. um-code-msg.dtx
-15. um-code-opening.dtx
-16. um-code-pkgopt.dtx
-17. um-code-primes.dtx
-18. um-code-setchar.dtx
-19. um-code-sscript.dtx
-20. um-code-sym-commands.dtx
-21. um-code-ui.dtx
-22. um-code-usv.dtx
-23. um-code-variables.dtx
-24. um-doc-legacyfontdimen.tex
-25. um-doc-main.tex
-26. um-doc-mathfontdimen.tex
-27. um-doc-nfsssummary.tex
-28. um-doc-stixextract.tex
-29. um-doc-style.tex
-30. unicode-math-code.ltx
-31. unicode-math-code.pdf
-32. unicode-math-table.tex
-33. unicode-math.dtx
-34. unicode-math.ins
-35. unicode-math.ltx
-36. unicode-math.pdf
-37. unimath-example.ltx
-38. unimath-example.pdf
-39. unimath-symbols.ltx
-40. unimath-symbols.pdf
+ 4. RELEASE_CHECKLIST.md
+ 5. um-code-alphabets.dtx
+ 6. um-code-amsmath.dtx
+ 7. um-code-api.dtx
+ 8. um-code-compat.dtx
+ 9. um-code-epilogue.dtx
+10. um-code-fontopt.dtx
+11. um-code-fontparam.dtx
+12. um-code-main.dtx
+13. um-code-mathmap.dtx
+14. um-code-mathtext.dtx
+15. um-code-msg.dtx
+16. um-code-opening.dtx
+17. um-code-pkgopt.dtx
+18. um-code-primes.dtx
+19. um-code-setchar.dtx
+20. um-code-sscript.dtx
+21. um-code-sym-commands.dtx
+22. um-code-ui.dtx
+23. um-code-usv.dtx
+24. um-code-variables.dtx
+25. um-doc-legacyfontdimen.tex
+26. um-doc-main.tex
+27. um-doc-mathfontdimen.tex
+28. um-doc-nfsssummary.tex
+29. um-doc-stixextract.tex
+30. um-doc-style.tex
+31. unicode-math-code.ltx
+32. unicode-math-code.pdf
+33. unicode-math-table.tex
+34. unicode-math.dtx
+35. unicode-math.ins
+36. unicode-math.ltx
+37. unicode-math.pdf
+38. unimath-example.ltx
+39. unimath-example.pdf
+40. unimath-symbols.ltx
+41. unimath-symbols.pdf
Modified: trunk/Master/texmf-dist/doc/latex/unicode-math/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/unicode-math/README.md 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/doc/latex/unicode-math/README.md 2023-08-13 19:58:06 UTC (rev 67919)
@@ -26,7 +26,7 @@
- [STIX][STIX] (STIpub), and
- [XITS Math][XM] (Khaled Hosny),
- [Libertinus Math][LIB] (Philipp H. Poll and Khaled Hosny).
- - [Fire Math][FIRA] (Xiangdong Zeng).
+ - [Fira Math][FIRA] (Xiangdong Zeng).
These fonts are available under open source licences
(the [GUST Font License][GFL] and [Open Font Licence][OFL]).
Modified: trunk/Master/texmf-dist/doc/latex/unicode-math/um-doc-main.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/unicode-math/um-doc-main.tex 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/doc/latex/unicode-math/um-doc-main.tex 2023-08-13 19:58:06 UTC (rev 67919)
@@ -23,7 +23,7 @@
Finally, while the STIX fonts may be used with this package, accessing
their alphabets in their `private user area' is not yet supported.
-(Of these additional alphabets there is a separate caligraphic design
+(Of these additional alphabets there is a separate calligraphic design
distinct to the script design already included.)
Better support for the STIX fonts is planned for an upcoming revision of the
package after any problems have been ironed out with the initial version.
@@ -65,9 +65,10 @@
\section{Getting started}
-Load \pkg{unicode-math} as a regular \LaTeX\ package. It should be loaded
-after any other maths or font-related package in case it needs to overwrite
-their definitions. Here's an example using the filename syntax to load the \TeX\ Gyre Pagella Math font: (this works for both \XeLaTeX\ and \LuaLaTeX)
+Load \pkg{unicode-math} as a regular \LaTeX\ package.
+It should be loaded after any other maths or font-related package in case it needs to overwrite their definitions.
+It requires \pkg{amsmath}, which it will automatically load if the user hasn't already done so.
+Here's an example using the filename syntax to load the \TeX\ Gyre Pagella Math font: (this works for both \XeLaTeX\ and \LuaLaTeX)
\begin{Verbatim}
\usepackage{amsmath}
\usepackage{unicode-math}
@@ -78,10 +79,7 @@
you can only switch to a different OpenType maths font using the \cs{setmathfont} command.
If you do not load an OpenType maths font before |\begin{document}|, Latin Modern Math will be loaded automatically.
-Note that \pkg{amsmath} should be loaded before \pkg{unicode-math} to avoid conflicts, and
-it will be loaded automatically if not requested earlier in the preamble.
-
\subsection{New commands}
\LaTeX, since the first version of \LaTeXe, changed the math group
selection from, say, |{\bf x}| to |\mathbf{x}|. It introduced commands
@@ -685,7 +683,7 @@
Script & Upright & Normal & \cs{symscr} & \Y & & \\
& & Bold & \cs{symbfscr} & \Y & & \\
Fraktur & Upright & Normal & \cs{symfrak} & \Y & & \\
- & & Bold & \cs{symbffrac} & \Y & & \\
+ & & Bold & \cs{symbffrak} & \Y & & \\
\bottomrule
\end{tabular}
\end{table}
@@ -692,7 +690,7 @@
\subsubsection{Scope of the functionality of the \cs{sym..} commands}
-The \cs{sym..} commands are designed to affect only the follow sets of input letters: numerals ($0$--$9$), Latin ($a$--$z$, $A$--$Z$), Greek ($\alpha$--$\omega$, $\Alpha$--$\Omega$,), and the \cs{partial} and \cs{nabla} symbols ($\partial$, $\nabla$).
+The \cs{sym..} commands are designed to affect only the following sets of input letters: numerals ($0$--$9$), Latin ($a$--$z$, $A$--$Z$), Greek ($\alpha$--$\omega$, $\Alpha$--$\Omega$,), and the \cs{partial} and \cs{nabla} symbols ($\partial$, $\nabla$).
These are the only symbols for which Unicode defines separate codepoints with varying mathematical style.
There is currently no scope for including other symbols in the \cs{sym..} commands, such as writing |\symbf{\int}| for a bold integral symbol.
@@ -715,27 +713,29 @@
with the \cs{mathbbit} style switch, but note that only those five letters
will give the expected output.
-\subsubsection{Caligraphic vs.\ Script variants}
+\subsubsection{Calligraphic vs.\ Script variants}
The Unicode maths encoding contains a style for `Script' letters,
-and while by default \cs{mathcal} and \cs{mathscr}
+and while by default \cs{symcal} and \cs{symscr}
are synonyms, there are some situations when a
-separate `Caligraphic' style is needed as well.
+separate `Calligraphic' style is needed as well.
-If a font contains alternate glyphs for a separate caligraphic style,
-they can be selected explicitly as shown below.
-This feature is currently only supported by the XITS~Math font, where
-the caligraphic letters are accessed with the same glyph slots as the
-script letters but with the first stylistic set feature (|ss01|) applied.
-An example is shown below.
+If a font contains alternate glyphs for a separate calligraphic style,
+they can be selected explicitly. For example the STIX~Two~Math font
+uses the the first stylistic set feature (|ss01|) to map the script
+letters to the calligraphic letters.
+\begin{Verbatim}
+\setmathfont{STIXTwoMath-Regular.otf}
+\setmathfont{STIXTwoMath-Regular.otf}[range={cal, bfcal}, StylisticSet=1]
+\end{Verbatim}
+With the above we can now write
\begin{quote}
-\setmathfont{XITSMath-Regular.otf}
-\setmathfont{XITSMath-Regular.otf}[range=cal,StylisticSet=1]
-The Script style (\cs{mathscr}) in XITS Math is: $\symscr{ABCXYZ}$\par
-The Caligraphic style (\cs{mathcal}) in XITS Math is: $\symcal{ABCXYZ}$
+\setmathfont{STIXTwoMath-Regular.otf}
+\setmathfont{STIXTwoMath-Regular.otf}[range={cal, bfcal}, StylisticSet=1]
+|$\symscr{ABCDabcd}$| to get $\symscr{ABCDabcd}$ \\
+|$\symcal{ABCDabcd}$| to get $\symcal{ABCDabcd}$
\end{quote}
-
\subsection{Miscellanea}
\subsubsection{Nabla}
@@ -915,9 +915,6 @@
To preserve input compatibility, we remap the \ascii\ input character `\texttt{:}' to \unichar{2236}.
Typing a literal \unichar{2236} char will result in the same output.
-If \pkg{amsmath} is loaded, then the definition of \cs{colon} is inherited from there
-(it looks like a punctuation colon with additional space around it).
-Otherwise, \cs{colon} is made to output a colon with \cs{mathpunct} spacing.
The package option |colon=literal| forces \ascii\ input `|:|' to be printed as \cs{mathcolon} instead.
@@ -925,34 +922,36 @@
\subsubsection{Slashes and backslashes}
\seclabel{slash-delimiter}
-There are several slash-like symbols defined in Unicode. The complete list is shown in \tabref{slashes}.
+There are several slash-like symbols defined in Unicode.
+The complete list is shown in \tabref{slashes}. Unfortunately, font support for these characters/glyphs is rather inconsistent.
+Note that \cs{slash} internally uses the \cs{mathslash} mathematical character.
+The wrapper \cs{slash} is defined to work correctly in both text and maths mode, as well as in contexts where the slash is acting like a delimiter, such as \verb|\left< a \middle\slash b \right>|.
\begin{table}\centering
-\caption{Slashes and backslashes.}
+\topcaption{Slashes and backslashes.}
\tablabel{slashes}
-\begin{tabular}{@{}cl@{}cl@{}}
+\begin{tabular}{@{}cl@{}cll@{}}
\toprule
-Slot & Name & Glyph & Command \\
+Slot & Name & Glyph & Class & Command \\
\midrule
-\unichar{002F} & \textsc{solidus} & \umfont \char"002F & \cs{slash} \\
-\unichar{2044} & \textsc{fraction slash} & \umfont \char"2044 & \cs{fracslash} \\
-\unichar{2215} & \textsc{division slash} & \umfont \char"2215 & \cs{divslash} \\
-\unichar{29F8} & \textsc{big solidus} & \umfont \char"29F8 & \cs{xsol} \\
+\unichar{002F} & \textsc{solidus} & \umfont \char"002F & \cs{mathord} & \cs{slash} \\
+\unichar{27CB} & \textsc{rising diagonal} & \umfont \char"27CB & \cs{mathord} & \cs{diagup} \\
+\unichar{2044} & \textsc{fraction slash} & \umfont \char"2044 & \cs{mathbin} & \cs{fracslash} \\
+\unichar{2215} & \textsc{division slash} & \umfont \char"2215 & \cs{mathbin} & \cs{divslash} \\
+\unichar{29F8} & \textsc{big solidus} & \umfont \char"29F8 & \cs{mathop} & \cs{xsol} \\
\midrule
-\unichar{005C} & \textsc{reverse solidus} & \umfont \char"005C & \cs{backslash} \\
-\unichar{2216} & \textsc{set minus} & \umfont \char"2216 & \cs{smallsetminus} \\
-\unichar{29F5} & \textsc{reverse solidus operator}& \umfont \char"29F5 & \cs{setminus} \\
-\unichar{29F9} & \textsc{big reverse solidus} & \umfont \char"29F9 & \cs{xbsol} \\
+\unichar{005C} & \textsc{reverse solidus} & \umfont \char"005C & \cs{mathord} & \cs{backslash} \\
+\unichar{27CD} & \textsc{falling diagonal} & \umfont \char"27CD & \cs{mathord} & \cs{diagdown} \\
+\unichar{2216} & \textsc{set minus} & \umfont \char"2216 & \cs{mathbin} & \cs{setminus} \\
+ & \textsc{small set minus} & & \cs{mathbin} & \cs{smallsetminus} \\
+\unichar{29F5} & \textsc{reverse solidus operator}& \umfont \char"29F5 & \cs{mathbin} & \cs{reversesolidus} \\
+\unichar{29F9} & \textsc{big reverse solidus} & \umfont \char"29F9 & \cs{mathop} & \cs{xbsol} \\
\bottomrule
\end{tabular}
\end{table}
-In regular \LaTeX\ we can write \cs{left}\cs{slash}\dots\cs{right}\cs{backslash}
-and so on and obtain extensible delimiter-like symbols. Not all of the Unicode slashes
-are suitable for this (and do not have the font support to do it).
+\paragraph{Slashes}
-\paragraph{Slash}
-
Of \unichar{2044} {fraction slash}, TR25 says that it is:
\begin{quote}
\dots used to build up simple fractions in running text\dots
@@ -965,27 +964,33 @@
\unichar{29F8} {big solidus} is a `big operator' (like $\sum$).
-\paragraph{Backslash}
+\cs{diagup} and \cs{diagdown} are defined with math class \cs{mathord} for consistency with \pkg{amssymb}.
+This definition is inconsistent with MathML, which would use \cs{mathrel} instead.
+\paragraph{Backslashes}
+
+Of the five backslash characters shown in \tabref{slashes}, only \cs{backslash} and \cs{setminus} are defined consistently across all OpenType math fonts.
+(The two glyphs are typically identical, or close to it, with the main difference between them the spacing defined by their math class.)
+
The \unichar{005C} {reverse solidus} character \cs{backslash} is used for denoting
-double cosets: $A\backslash B$. (So I'm led to believe.)
-It may be used as a `stretchy' delimiter if supported by the font.
+double cosets: $A\backslash B$. It may be used as a `stretchy' delimiter if supported by the font.
-MathML uses \unichar{2216} {set minus} like this: $A\smallsetminus B$.\footnote{\S4.4.5.11 \url{http://www.w3.org/TR/MathML3/}}
-The \LaTeX\ command name \cs{smallsetminus} is used for backwards compatibility.
+The \unichar{2216} {set minus} character \cs{setminus} defines the relative complement or set difference between two sets: $A\setminus B$.
Presumably, \unichar{29F5} {reverse solidus operator} is intended to
-be used in a similar way, but it could also (perhaps?) be used to
+be used in a similar way, but it could also be used to
represent `inverse division': $\pi\approx7\mathbin{\backslash}22$.^^A
\footnote{This is valid syntax in the Octave and Matlab programming languages,
in which it means matrix inverse pre-multiplication. I.e., $A\mathbin{\backslash} B\equiv A^{-1}B$.}
-The \LaTeX\ name for this character is \cs{setminus}.
Finally, \unichar{29F9} {big reverse solidus} is a `big operator' (like $\sum$).
-\paragraph{How to use all of these things}
+\paragraph{Slashes as `delimiters'}
-Unfortunately, font support for the above characters/glyphs is rather inconsistent.
+In regular \LaTeX\ we can write \cs{left}\cs{slash}\dots\cs{right}\cs{backslash}
+and so on and obtain extensible delimiter-like symbols. Not all of the Unicode slashes
+are suitable for this (and do not have the font support to do it).
+
In Cambria Math, the only slash that grows (say when writing
\[
\left.\left[\begin{array}{cc} a & b \\ c & d\end{array}\right]\middle\slash
@@ -994,7 +999,7 @@
is the \textsc{fraction slash}, which we just established above is
sort of only supposed to be used in text.
-Of the above characters, the following are allowed to be used after
+Of the slashes, the following commands are the only ones defined to be able to be used as stretchable delimiters after
\cs{left}, \cs{middle}, and \cs{right}:
\begin{itemize}
\item \cs{fracslash};
@@ -1002,11 +1007,10 @@
\item \cs{backslash} (the only reverse slash).
\end{itemize}
-However, we assume that there is only \emph{one} stretchy slash
+However, for the purpose of implementing this markup, we assume that there is only \emph{one} stretchy slash
in the font; this is assumed by default to be \unichar{002F} {solidus}.
Writing \cs{left/} or \cs{left}\cs{slash} or \cs{left}\cs{fracslash}
will all result in the same stretchy delimiter being used.
-
The delimiter used can be changed with the |slash-delimiter| package option.
Allowed values are |ascii|, |frac|, and |div|, corresponding to the respective
Unicode slots.
@@ -1014,9 +1018,25 @@
For example: as mentioned above, Cambria Math's stretchy slash is
\unichar{2044} {fraction slash}. When using Cambria Math, then
\pkg{unicode-math} should be loaded with the |slash-delimiter=frac| option.
-(This should be a font option rather than a package option, but
-it will change soon.)
+(This should really be a font option rather than a package option, but this option should only be needed infrequently.)
+\paragraph{Set minus characters/glyphs}
+
+Standard \LaTeX\ plus \pkg{amssymb} defines two commands \cs{setminus} and \cs{smallsetminus}.
+This package now defines \cs{setminus} to correspond to the Unicode slot \unichar{2216}.
+Some fonts may provide smaller sized glyphs either through character variants, private use area encoding, or via one of the less-common backslash slots (covered above).
+Since there is currently no consistency in how modern OpenType fonts would access a smaller variant for `set minus', this package simply defines \cs{smallsetminus} to be a constructed glyph, composed of a rotated and shifted minus sign with appropriate \cs{mathbin} spacing.
+
+If variations to this setup are needed, users can redefine the commands to their liking; e.g.:
+\begin{verbatim}
+ \setmathfont{XITSMath-Regular.otf}
+ \AtBeginDocument{
+ \let\smallsetminus\setminus
+ \let\setminus\reversesolidus
+ }
+\end{verbatim}
+
+
\subsubsection{Behaviour of hyphens in mathematics}
\seclabel{hyphen}
@@ -1077,10 +1097,8 @@
For example, instead of writing `|\tfrac12 x|', you may consider it more readable to have
`|½x|' in the source instead.
-If the \cs{tfrac} command exists (i.e., if \pkg{amsmath} is loaded or
-you have specially defined \cs{tfrac} for this purpose), it will be used
-to typeset the fractions. If not, regular \cs{frac} will be used. The command
-to use (\cs{tfrac} or \cs{frac}) can be forced either way with the package
+By default, the \cs{tfrac} command will be used to typeset the fractions.
+The command to use (\cs{tfrac} or \cs{frac}) can be forced with the package
option |active-frac=small| or |active-frac=normalsize|, respectively.
\subsubsection{Circles}
Modified: trunk/Master/texmf-dist/doc/latex/unicode-math/um-doc-style.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/unicode-math/um-doc-style.tex 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/doc/latex/unicode-math/um-doc-style.tex 2023-08-13 19:58:06 UTC (rev 67919)
@@ -10,8 +10,8 @@
\usepackage[svgnames]{xcolor}
\usepackage[inline]{enumitem}
-\usepackage{amsmath,array,booktabs,calc,enumitem,fancyvrb,graphicx,ifthen,longtable,refstyle,topcapt,url,varioref,underscore}
-\usepackage[slash-delimiter=frac,nabla=literal]{unicode-math}
+\usepackage{refstyle,amsmath,array,booktabs,calc,enumitem,fancyvrb,graphicx,ifthen,longtable,topcapt,url,varioref,underscore}
+\usepackage[slash-delimiter=ascii,nabla=literal]{unicode-math}
\usepackage{metalogo,hologo}
\usepackage[it]{titlesec}
@@ -46,8 +46,8 @@
]
\setmathfont{texgyrepagella-math.otf}
-\setmathfont[version=xits]{XITSMath-Regular.otf}
-\newfontface\umfont{XITSMath-Regular.otf}
+\setmathfont[version=xits]{STIXTwoMath-Regular.otf}
+\newfontface\umfont{STIXTwoMath-Regular.otf}
\expandafter\def\csname ver at thumbpdf.sty\endcsname{}
\usepackage{hypdoc}
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.ltx
===================================================================
--- trunk/Master/texmf-dist/doc/latex/unicode-math/unimath-symbols.ltx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/doc/latex/unicode-math/unimath-symbols.ltx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -10,7 +10,7 @@
\documentclass[final]{article}
\makeatletter
-\usepackage{ragged2e,setspace,booktabs,catchfile,shortvrb,geometry,metalogo,textcomp,longtable,tabu,hyperref}
+\usepackage{ragged2e,setspace,booktabs,shortvrb,geometry,metalogo,textcomp,longtable,array,hyperref}
\geometry{margin=3cm}
\hypersetup{colorlinks,linkcolor=black}
@@ -52,21 +52,32 @@
\defmathfont{lm}{latinmodern-math.otf}{CC6666}{L}
\defmathfont{xits}{XITSMath-Regular.otf}{6666CC}{X}
-\defmathfont{stix}{STIX2Math.otf}{66CC66}{S}
+\defmathfont{stix}{STIXTwoMath-Regular.otf}{66CC66}{S}
\defmathfont{pagella}{texgyrepagella-math.otf}{AA6666}{P}
\defmathfont{dejavu}{texgyredejavu-math.otf}{AACC66}{D}
\defmathfont{fira}{FiraMath-Regular.otf}{AA66CC}{F}
+\defmathfont{ncm}{NewCMMath-Book.otf}{3366AA}{N}
+\defmathfont{gnh}{GFSNeohellenicMath.otf}{666633}{H}
+\defmathfont{erm}{Erewhon-Math.otf}{66AA66}{E}
+\defmathfont{xc}{XCharter-Math.otf}{6633AA}{C}
+\defmathfont{con}{Concrete-Math.otf}{66AA33}{R}
\def\INPUT{\input{unicode-math-table.tex}}
+\def\pwidth{100pt}
\def\TABLE{%
\par\noindent
-\begin{longtabu}[l]{@{}l *{\Nfonts}{c} lX[l]@{}}
+\setlength\tabcolsep{3pt}%
+\setlength\LTleft{-40pt}%
+\setlength\LTright{-40pt plus 1fill}%
+\begin{longtable}{@{}l *{\Nfonts}{@{\,}c} lp{\pwidth}@{}}
\toprule
- \textsc{usv} & \Llm & \Lxits & \Lstix & \Lpagella & \Ldejavu & \Lfira & Macro & Description \\
+ \textsc{usv} &
+\Llm & \Lxits & \Lstix & \Lpagella & \Ldejavu & \Lfira & \Lncm & \Lgnh & \Lerm & \Lxc &\Lcon
+ & Macro & Description \\
\midrule \endhead
\INPUT\\
\bottomrule
-\end{longtabu}
+\end{longtable}
}
\makeatletter
\def\USV#1{\footnotesize\scshape\MakeLowercase{u+\@gobble#1}}
@@ -73,9 +84,7 @@
\makeatother
\def\CMD#1{\footnotesize\cmd#1}
\def\DESC#1{%
- \begin{spacing}{0.5}
\RaggedRight\scriptsize #1%
- \end{spacing}
}
\newcommand\SHOW[1]{%
@@ -95,6 +104,11 @@
\SYMB{#2}{pagella}{#1} &
\SYMB{#2}{dejavu}{#1} &
\SYMB{#2}{fira}{#1} &
+ \SYMB{#2}{ncm}{#1} &
+ \SYMB{#2}{gnh}{#1} &
+ \SYMB{#2}{erm}{#1} &
+ \SYMB{#2}{xc}{#1} &
+ \SYMB{#2}{con}{#1} &
\CMD{#2}
\tl_if_in:NnT \PLAIN {#2}
{
@@ -172,6 +186,11 @@
\item[\Lpagella] \mathversion{pagella} $\mathup{TeX\ Gyre\ Pagella\ Math}$ (\ref{count:pagella})
\item[\Ldejavu] \mathversion{dejavu} $\mathup{DejaVu\ Math\ TeX\ Gyre}$ (\ref{count:dejavu})
\item[\Lfira] \mathversion{fira} $\mathup{Fira\ Math}$ (\ref{count:fira})
+\item[\Lncm] \mathversion{ncm} $\mathup{NCM\ Math}$ (\ref{count:ncm})
+\item[\Lgnh] \mathversion{gnh} $\mathup{GFS Neohellenic Math}$ (\ref{count:gnh})
+\item[\Lerm] \mathversion{erm} $\mathup{Erewhon Math}$ (\ref{count:erm})
+\item[\Lxc] \mathversion{xc} $\mathup{XCharter Math}$ (\ref{count:xc})
+\item[\Lcon] \mathversion{con} $\mathup{Concrete Math}$ (\ref{count:con})
\end{itemize}
Symbols defined in Plain \TeX\ are indicated with {\color[gray]{0.6} \textsuperscript{\sffamily (p)}} after their macro name.
\LaTeX\ follows Plain \TeX, but defines a handful more, indicated with {\color[gray]{0.6} \textsuperscript{\sffamily (l)}}.
@@ -287,15 +306,18 @@
% first read in all \mathalpha symbols into a variable:
\ExplSyntaxOn
+\file_get:nnN {unicode-math-table.tex}
+ {\char_set_catcode_space:N \ } \ALPHA
+
\cs_set:Npn \UnicodeMathSymbol #1#2#3#4 {
\str_if_eq:nnT {\mathalpha} {#3} {
\exp_not:n { \UnicodeMathSymbol {#1}{#2}{#3}{#4} }
}
}
-\CatchFileEdef
- \ALPHA{unicode-math-table.tex}
- {\char_set_catcode_space:N \ }
+\tl_set:Nx \ALPHA {\ALPHA}
+
+
% now each time we print an alphabet we remove the slot;
% this ensures we won't miss anything
@@ -318,11 +340,13 @@
\exp_not:n { \UnicodeMathSymbol {##1}{##2}{##3}{##4} }
}
}
- \edef\ALPHA{\ALPHA}
+ \tl_set:Nx \ALPHA {\ALPHA}
}
\ExplSyntaxOff
+\def\pwidth{200pt}
+
\subsection{Normal weight}
\subsubsection{Upright Greek, uppercase}
@@ -445,8 +469,11 @@
\def\UnicodeMathSymbol#1#2#3#4{\PRINTLINE{#1}{#2}{#4}}
\TABLE
+
\FINISH
+\mbox{}
+
\end{document}
\endinput
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-alphabets.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-alphabets.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-alphabets.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -228,7 +228,7 @@
}
% \end{macrocode}
%
-% \subsection{Script and caligraphic: scr and cal}
+% \subsection{Script and calligraphic: scr and cal}
%
% \begin{macrocode}
\@@_new_alphabet_config:nnn {scr} {Latin}
@@ -267,6 +267,13 @@
\@@_set_mathalphabet_pos:nnnn {cal} {M} {up,it} {#1}
\@@_set_mathalphabet_pos:nnnn {cal} {R} {up,it} {#1}
}
+\@@_new_alphabet_config:nnn {cal} {latin}
+ {
+ \@@_set_mathalphabet_latin:nnn {cal} {up,it} {#1}
+ \@@_set_mathalphabet_pos:nnnn {cal} {e} {up,it} {#1}
+ \@@_set_mathalphabet_pos:nnnn {cal} {g} {up,it} {#1}
+ \@@_set_mathalphabet_pos:nnnn {cal} {o} {up,it} {#1}
+ }
% \end{macrocode}
%
% \subsection{Fractur or fraktur or blackletter: frak}
@@ -668,6 +675,10 @@
{
\@@_set_mathalphabet_Latin:nnn {bfcal} {up,it}{#1}
}
+\@@_new_alphabet_config:nnn {bfcal} {latin}
+ {
+ \@@_set_mathalphabet_latin:nnn {bfcal} {up,it}{#1}
+ }
% \end{macrocode}
%
% \subsection{Bold upright sans serif: bfsfup}
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-epilogue.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-epilogue.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-epilogue.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -41,63 +41,8 @@
%
%
%
-% \subsection{Unicode radicals}
%
-% Make sure \cs{Uroot} is defined in the case where the \LaTeX{}
-% kernel doesn't make it available with its native name.
%
-% \begin{macro}{\@@_redefine_radical:}
-% \begin{macrocode}
-\AtBeginDocument{ \@ifpackageloaded { amsmath } { } { \@@_redefine_radical: } }
-% \end{macrocode}
-%
-% \begin{macro}{\r@@t}
-% \darg{A mathstyle (for \cmd\mathpalette)}
-% \darg{Leading superscript for the sqrt sign}
-% A re-implementation of \LaTeX's hard-coded n-root sign using the appropriate \cmd\fontdimen s.
-% \begin{macrocode}
-%<*XE>
-\cs_new:Nn \@@_redefine_radical:
- {
- \cs_set_nopar:Npn \r@@@@t ##1 ##2
- {
- \hbox_set:Nn \l_tmpa_box
- {
- \c_math_toggle_token \m at th
- ##1 \sqrtsign { ##2 }
- \c_math_toggle_token
- }
- \@@_mathstyle_scale:NnnN ##1 { \kern } { \fontdimen 63 \g_@@_sqrt_font_cmd_tl } \g_@@_sqrt_font_cmd_tl
- \box_move_up:nn
- {
- (\box_ht:N \l_tmpa_box - \box_dp:N \l_tmpa_box) * \number \fontdimen 65 \g_@@_sqrt_font_cmd_tl / 100
- }
- { \box_use:N \rootbox }
- \@@_mathstyle_scale:NnnN ##1 { \kern } { \fontdimen 64 \g_@@_sqrt_font_cmd_tl } \g_@@_sqrt_font_cmd_tl
- \box_use_drop:N \l_tmpa_box
- }
- }
-%</XE>
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\root}
-% Redefine this macro for \LuaTeX, which provides us a nice primitive to use.
-% \begin{macrocode}
-%<*LU>
-\cs_new:Nn \@@_redefine_radical:
- {
- \cs_set:Npn \root ##1 \of ##2
- {
- \Uroot \c_@@_radical_sqrt_tl { ##1 } { ##2 }
- }
- }
-%</LU>
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-%
% \subsubsection{Active fractions}
%
% Active fractions can be set up independently of any maths font definition;
@@ -197,21 +142,10 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\colon}
-% Define \cs{colon} as a mathpunct `|:|'.
-% This is wrong: it should be \unichar{003A} {colon} instead!
-% We hope no-one will notice.
+% \begin{macro}{\smallsetminus}
% \begin{macrocode}
-\@ifpackageloaded{amsmath}
- {
- % define their own colon, perhaps I should just steal it. (It does look much better.)
- }
- {
- \cs_set_protected:Npn \colon
- {
- \bool_if:NTF \g_@@_literal_colon_bool {:} { \mathpunct{:} }
- }
- }
+\cs_set_protected:Npn \smallsetminus { \mathbin{ \mathpalette \@@_smallsetminus: \relax} }
+\cs_set:Npn \__um_smallsetminus: #1 { \rotatebox{135}{ \smash{ \raisebox{-\height}{$#1\minus$} } }}
% \end{macrocode}
% \end{macro}
%
@@ -219,8 +153,8 @@
% \begin{macro}{\Digamma}
% I might end up just changing these in the table.
% \begin{macrocode}
-\protected\def\digamma{\updigamma}
-\protected\def\Digamma{\upDigamma}
+\cs_set_protected:Npn \digamma {\updigamma}
+\cs_set_protected:Npn \Digamma {\upDigamma}
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -383,13 +317,7 @@
\@@_undeclare_symbol:N \bracevert
% \end{macrocode}
%
-% \section{A secret hook}
-% This will be executed after most if not all of the standard unicode-math setup.
% \begin{macrocode}
-\AtBeginDocument{\g_@@_secret_hook_tl}
-% \end{macrocode}
-%
-% \begin{macrocode}
%</package>
% \end{macrocode}
%
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-fontopt.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-fontopt.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-fontopt.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -34,7 +34,7 @@
% \seclabel{rangeproc}
%
% Locally redefined all math symbol commands to their slot number prefixed by a quark.
-% Similary for the math classes.
+% Similarly for the math classes.
% \begin{macrocode}
\keys_define:nn {unicode-math}
{
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 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -153,7 +153,7 @@
%<LU> Renderer = Basic,
BoldItalicFont = {}, ItalicFont = {}, SmallCapsFont = {},
Script = Math,
-%<LU> FontAdjustment = { \@@_luatex_copy_fontdimens: },
+%<LU> RawFeature = {mathfontdimen=xetex},
\l_@@_unknown_keys_clist
}
@@ -199,7 +199,7 @@
\l_@@_sscript_features_tl
}
} ,
-%<LU> FontAdjustment = { \@@_luatex_copy_fontdimens: },
+%<LU> RawFeature = {mathfontdimen=xetex},
\l_@@_unknown_keys_clist
}
@@ -225,38 +225,6 @@
\tl_gset:Nn \g_@@_prime_font_cmd_tl { \l_@@_font }
% \end{macrocode}
%
-% \begin{macro}{\@@_luatex_copy_fontdimens:}
-% This performs a once-off copy of the LuaTeX math params into XeTeX-like fontdimens.
-% While the list is somewhat comprehensive, these are really only for backwards compatibility
-% and to allow a little shared code. They shouldn't be relied upon, since LuaTeX users
-% might change the math params, which wouldn't be reflected in the fontdimens.
-% \begin{macrocode}
-%<*LU>
-\@@_cs_new:Nn \@@_luatex_copy_fontdimens:
- {
- \@@_fontdimen_from_param:nn {10} {ScriptPercentScaleDown}
- \@@_fontdimen_from_param:nn {11} {ScriptScriptPercentScaleDown}
- \@@_fontdimen_from_param:nn {15} {AxisHeight}
- \@@_fontdimen_from_param:nn {18} {SubscriptShiftDown}
- \@@_fontdimen_from_param:nn {20} {SubscriptBaselineDropMin}
- \@@_fontdimen_from_param:nn {21} {SuperscriptShiftUp}
- \@@_fontdimen_from_param:nn {22} {SuperscriptShiftUpCramped}
- \@@_fontdimen_from_param:nn {24} {SuperscriptBaselineDropMax}
- \@@_fontdimen_from_param:nn {28} {UpperLimitGapMin}
- \@@_fontdimen_from_param:nn {29} {UpperLimitBaselineRiseMin}
- \@@_fontdimen_from_param:nn {30} {LowerLimitGapMin}
- \@@_fontdimen_from_param:nn {31} {LowerLimitBaselineDropMin}
- \@@_fontdimen_from_param:nn {32} {StackTopShiftUp}
- \@@_fontdimen_from_param:nn {42} {FractionNumeratorShiftUp}
- \@@_fontdimen_from_param:nn {43} {FractionNumeratorDisplayStyleShiftUp}
- \@@_fontdimen_from_param:nn {44} {FractionDenominatorShiftDown}
- \@@_fontdimen_from_param:nn {45} {FractionDenominatorDisplayStyleShiftDown}
- \@@_fontdimen_from_param:nn {48} {FractionRuleThickness}
- }
-%</LU>
-% \end{macrocode}
-% \end{macro}
-%
% \begin{macro}{\@@_setup_math_fam:}
% \begin{macrocode}
\@@_cs_new:Nn \@@_setup_math_fam:
@@ -290,6 +258,8 @@
\fontspec_set_family:Nxn \l_@@_fam_two_tl
{
\l_@@_font_keyval_tl,
+%<LU> RawFeature = {mathfontdimen=tex2},
+%<*XE>
ScaleAgain = 1.0001,
FontAdjustment =
{
@@ -309,6 +279,7 @@
\@@_zero_fontdimen:n {20} % delim1 = FractionDelimiterDisplaySize
\@@_zero_fontdimen:n {21} % delim2 = FractionDelimiterSize
}
+%</XE>
} {\l_@@_fontname_tl}
\SetSymbolFont{symbols}{\l_@@_mversion_tl}
@@ -331,6 +302,8 @@
\fontspec_set_family:Nxn \l_@@_fam_three_tl
{
\l_@@_font_keyval_tl,
+%<LU> RawFeature = {mathfontdimen=tex3},
+%<*XE>
ScaleAgain = 0.9999,
FontAdjustment = {
\@@_copy_fontdimen:nnN { 8} {48} \g_@@_main_font_cmd_tl
@@ -340,6 +313,7 @@
\@@_copy_fontdimen:nnN {12} {31} \g_@@_main_font_cmd_tl
\@@_zero_fontdimen:n {13}
}
+%</XE>
} {\l_@@_fontname_tl}
\SetSymbolFont{largesymbols}{\l_@@_mversion_tl}
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-mathtext.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-mathtext.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-mathtext.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -38,7 +38,7 @@
\SetMathAlphabet #1 {\l_@@_mversion_tl} {\g_fontspec_encoding_tl} {\l_@@_tmpa_tl} {\mddefault} {\shapedefault}
% integrate with fontspec's \setmathrm etc:
- \tl_case:Nn #1
+ \token_case_meaning:Nn #1
{
\mathrm { \cs_gset_eq:NN \g__fontspec_mathrm_tl \l_@@_tmpa_tl }
\mathsf { \cs_gset_eq:NN \g__fontspec_mathsf_tl \l_@@_tmpa_tl }
@@ -95,7 +95,7 @@
% Reimplement that here to avoid \cs{bgroup}/\cs{egroup}.
% \begin{macro}{\operator at font}
% \begin{macrocode}
-\cs_set:Npn \operator at font
+\cs_set_protected:Npn \operator at font
{
\@@_switch_to:n {literal}
\@@_fontswitch:n { \g_@@_operator_mathfont_tl }
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -13,11 +13,6 @@
% \end{macrocode}
%
% \begin{macrocode}
-\@@_msg_new:nn {no-tfrac}
-{
- Small fraction command \protect\tfrac\ not defined.\\
- Load amsmath or define it manually before loading unicode-math.
-}
\@@_msg_new:nn {default-math-font}
{
Defining the default maths font as '\l_@@_fontname_tl'.
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-opening.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-opening.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-opening.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -31,10 +31,6 @@
\@ifpackageloaded {#1} {#2} {}
}
}
-\RequirePackage{xparse,l3keys2e}
-\RequirePackage{fontspec}
-\RequirePackage{fix-cm}
-%<LU>\RequirePackage{lualatex-math}
% \end{macrocode}
%
% \subsection{\pkg{expl3} variants}
@@ -228,23 +224,6 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\@@_fontdimen_from_param:Nnn}
-% This function extracts the math font dimen \verb|#3| from the font \verb|#1|
-% and sets fontdimen \verb|#2| of the same font to that value.
-%
-% Use \XeTeX's fontdimen approach because it's tidy. We don't need bells and whistles here.
-% \begin{macrocode}
-%<*LU>
-\cs_new_protected:Nn \@@_fontdimen_from_param:nn
- {
- \fontdimen #1 \font =
- \lua_now:n { fontspec.mathfontdimen(font.current(),"#2") }
- \scan_stop:
- }
-%</LU>
-% \end{macrocode}
-% \end{macro}
-%
%^^A \begin{function}[EXP, added = 2019-01-19]{\@@_int_if_zero_p:n, \@@_int_if_zero:nTF}
%^^A \begin{syntax}
%^^A \cs{int_if_zero_p:n} \Arg{intexpr}
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-pkgopt.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-pkgopt.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-pkgopt.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -249,7 +249,6 @@
}
% \end{macrocode}
%
-%
% \paragraph{Active fraction style}
% \begin{macrocode}
\@@_keys_choices:nn {active-frac}
@@ -256,12 +255,7 @@
{
{small}
{
- \cs_if_exist:NTF \tfrac
- { \bool_set_true:N \l_@@_smallfrac_bool }
- {
- \@@_warning:n {no-tfrac}
- \bool_set_false:N \l_@@_smallfrac_bool
- }
+ \bool_set_true:N \l_@@_smallfrac_bool
\use:c {@@_setup_active_frac:}
}
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-primes.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-primes.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-primes.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -358,6 +358,8 @@
\cs_set_eq:NN ^^^^2037 \@@_scan_sup_backtrprime:
}
\group_end:
+
+\cs_set_eq:NN \active at math@prime \@@_scan_sup_prime:
% \end{macrocode}
%
%
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-setchar.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-setchar.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-setchar.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -87,7 +87,7 @@
}
{ \char_set_catcode_other:n {#4} }
- \tl_case:Nn #3
+ \token_case_meaning:Nn #3
{
\mathord { \@@_set_mathcode:nnn {#4} {#3} {#1} }
\mathalpha { \@@_set_mathcode:nnn {#4} {#3} {#1} }
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-sym-commands.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-sym-commands.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-sym-commands.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -113,8 +113,8 @@
\@@_default_mathalph:nnn {bb } {latin,Latin,num,misc} {bb }
\@@_default_mathalph:nnn {bbit } {misc} {bbit }
\@@_default_mathalph:nnn {scr } {latin,Latin} {scr }
-\@@_default_mathalph:nnn {cal } {Latin} {scr }
-\@@_default_mathalph:nnn {bfcal } {Latin} {bfscr }
+\@@_default_mathalph:nnn {cal } {latin,Latin} {scr }
+\@@_default_mathalph:nnn {bfcal } {latin,Latin} {bfscr }
\@@_default_mathalph:nnn {frak } {latin,Latin} {frak }
\@@_default_mathalph:nnn {tt } {latin,Latin,num} {tt }
\@@_default_mathalph:nnn {sfup } {latin,Latin,num} {sfup }
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-usv.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-usv.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-usv.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -46,6 +46,7 @@
\usv_set:nnn {scr} {Latin} {"1D49C}
\usv_set:nnn {cal} {Latin} {"1D49C}
\usv_set:nnn {scr} {latin} {"1D4B6}
+\usv_set:nnn {cal} {latin} {"1D4B6}
\usv_set:nnn {frak} {Latin} {"1D504}
\usv_set:nnn {frak} {latin} {"1D51E}
\usv_set:nnn {sf} {num} {"1D7E2}
@@ -79,6 +80,7 @@
\usv_set:nnn {bfscr} {Latin} {"1D4D0}
\usv_set:nnn {bfcal} {Latin} {"1D4D0}
\usv_set:nnn {bfscr} {latin} {"1D4EA}
+\usv_set:nnn {bfcal} {latin} {"1D4EA}
\usv_set:nnn {bfsf} {num} {"1D7EC}
\usv_set:nnn {bfsfup} {num} {"1D7EC}
\usv_set:nnn {bfsfit} {num} {"1D7EC}
@@ -246,6 +248,7 @@
\usv_set:nnn {bb} {h} {"1D559}
\usv_set:nnn {tt} {h} {"1D691}
\usv_set:nnn {scr} {h} {"1D4BD}
+\usv_set:nnn {cal} {h} {"1D4BD}
\usv_set:nnn {frak} {h} {"1D525}
\usv_set:nnn {bfup} {h} {"1D421}
\usv_set:nnn {bfit} {h} {"1D489}
@@ -253,6 +256,7 @@
\usv_set:nnn {sfit} {h} {"1D629}
\usv_set:nnn {bffrak} {h} {"1D58D}
\usv_set:nnn {bfscr} {h} {"1D4F1}
+\usv_set:nnn {bfcal} {h} {"1D4F1}
\usv_set:nnn {bfsfup} {h} {"1D5F5}
\usv_set:nnn {bfsfit} {h} {"1D65D}
% \end{macrocode}
@@ -309,7 +313,7 @@
\usv_set:nnn {scr} {g} {"210A}
\usv_set:nnn {scr} {o} {"2134}
% \end{macrocode}
-% Caligraphic:
+% Calligraphic:
% \begin{macrocode}
\usv_set:nnn {cal} {B} {"212C}
\usv_set:nnn {cal} {E} {"2130}
@@ -319,6 +323,9 @@
\usv_set:nnn {cal} {L} {"2112}
\usv_set:nnn {cal} {M} {"2133}
\usv_set:nnn {cal} {R} {"211B}
+\usv_set:nnn {cal} {e} {"212F}
+\usv_set:nnn {cal} {g} {"210A}
+\usv_set:nnn {cal} {o} {"2134}
% \end{macrocode}
% Fractur:
% \begin{macrocode}
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/um-code-variables.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/um-code-variables.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/um-code-variables.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -70,10 +70,6 @@
%
% \subsection{tl}
%
-% \begin{macrocode}
-\tl_if_exist:NF \g_@@_secret_hook_tl { \tl_new:N \g_@@_secret_hook_tl }
-% \end{macrocode}
-%
% For displaying in warning messages, etc.:
% \begin{macrocode}
\tl_const:Nn \c_@@_math_alphabet_name_latin_tl {Latin,~lowercase}
Modified: trunk/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx 2023-08-13 19:58:06 UTC (rev 67919)
@@ -60,7 +60,7 @@
%<base>\ProvidesExplPackage{unicode-math}
%<package&XE>\ProvidesExplPackage{unicode-math-xetex}
%<package&LU>\ProvidesExplPackage{unicode-math-luatex}
-%<base|package> {2020/01/31} {0.8q} {Unicode maths in XeLaTeX and LuaLaTeX}
+%<base|package> {2023/08/13} {0.8r} {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{2020/01/31}
- \def\fileversion{0.8q}
+ \def\filedate{2023/08/13}
+ \def\fileversion{0.8r}
\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 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty 2023-08-13 19:58:06 UTC (rev 67919)
@@ -43,7 +43,7 @@
%%^^A%% Metadata for the package code, including files and versioning
\ProvidesExplPackage{unicode-math-luatex}
- {2020/01/31} {0.8q} {Unicode maths in XeLaTeX and LuaLaTeX}
+ {2023/08/13} {0.8r} {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.
@@ -61,10 +61,6 @@
\@ifpackageloaded {#1} {#2} {}
}
}
-\RequirePackage{xparse,l3keys2e}
-\RequirePackage{fontspec}
-\RequirePackage{fix-cm}
-\RequirePackage{lualatex-math}
\cs_set_protected_nopar:Npn \exp_last_unbraced:NNx { \::N \::x_unbraced \::: }
\cs_generate_variant:Nn \fontspec_set_family:Nnn {Nx,Nxx}
\cs_generate_variant:Nn \prop_get:NnNTF {cx}
@@ -146,12 +142,6 @@
{
\fontdimen #1 \font = 0pt\relax
}
-\cs_new_protected:Nn \__um_fontdimen_from_param:nn
- {
- \fontdimen #1 \font =
- \lua_now:n { fontspec.mathfontdimen(font.current(),"#2") }
- \scan_stop:
- }
\prg_new_conditional:Nnn \__um_int_if_zero:n {p,TF,T,F}
{
\int_compare:nNnTF {#1} = 0 {\prg_return_true:} {\prg_return_false:}
@@ -240,7 +230,6 @@
\int_new:N \g__um_fam_int
\int_new:N \g__um_fonts_used_int
\int_new:N \l__um_primecount_int
-\tl_if_exist:NF \g__um_secret_hook_tl { \tl_new:N \g__um_secret_hook_tl }
\tl_const:Nn \c__um_math_alphabet_name_latin_tl {Latin,~lowercase}
\tl_const:Nn \c__um_math_alphabet_name_Latin_tl {Latin,~uppercase}
\tl_const:Nn \c__um_math_alphabet_name_greek_tl {Greek,~lowercase}
@@ -541,12 +530,7 @@
{
{small}
{
- \cs_if_exist:NTF \tfrac
- { \bool_set_true:N \l__um_smallfrac_bool }
- {
- \__um_warning:n {no-tfrac}
- \bool_set_false:N \l__um_smallfrac_bool
- }
+ \bool_set_true:N \l__um_smallfrac_bool
\use:c {__um_setup_active_frac:}
}
@@ -581,11 +565,6 @@
%%^^A%% Definitions of error, warning, and log messages.
\char_set_catcode_space:n {32}
-\__um_msg_new:nn {no-tfrac}
-{
- Small fraction command \protect\tfrac\ not defined.\\
- Load amsmath or define it manually before loading unicode-math.
-}
\__um_msg_new:nn {default-math-font}
{
Defining the default maths font as '\l__um_fontname_tl'.
@@ -728,6 +707,7 @@
\usv_set:nnn {scr} {Latin} {"1D49C}
\usv_set:nnn {cal} {Latin} {"1D49C}
\usv_set:nnn {scr} {latin} {"1D4B6}
+\usv_set:nnn {cal} {latin} {"1D4B6}
\usv_set:nnn {frak} {Latin} {"1D504}
\usv_set:nnn {frak} {latin} {"1D51E}
\usv_set:nnn {sf} {num} {"1D7E2}
@@ -758,6 +738,7 @@
\usv_set:nnn {bfscr} {Latin} {"1D4D0}
\usv_set:nnn {bfcal} {Latin} {"1D4D0}
\usv_set:nnn {bfscr} {latin} {"1D4EA}
+\usv_set:nnn {bfcal} {latin} {"1D4EA}
\usv_set:nnn {bfsf} {num} {"1D7EC}
\usv_set:nnn {bfsfup} {num} {"1D7EC}
\usv_set:nnn {bfsfit} {num} {"1D7EC}
@@ -880,6 +861,7 @@
\usv_set:nnn {bb} {h} {"1D559}
\usv_set:nnn {tt} {h} {"1D691}
\usv_set:nnn {scr} {h} {"1D4BD}
+\usv_set:nnn {cal} {h} {"1D4BD}
\usv_set:nnn {frak} {h} {"1D525}
\usv_set:nnn {bfup} {h} {"1D421}
\usv_set:nnn {bfit} {h} {"1D489}
@@ -887,6 +869,7 @@
\usv_set:nnn {sfit} {h} {"1D629}
\usv_set:nnn {bffrak} {h} {"1D58D}
\usv_set:nnn {bfscr} {h} {"1D4F1}
+\usv_set:nnn {bfcal} {h} {"1D4F1}
\usv_set:nnn {bfsfup} {h} {"1D5F5}
\usv_set:nnn {bfsfit} {h} {"1D65D}
\usv_set:nnn {up} {dotlessi} {"00131}
@@ -938,6 +921,9 @@
\usv_set:nnn {cal} {L} {"2112}
\usv_set:nnn {cal} {M} {"2133}
\usv_set:nnn {cal} {R} {"211B}
+\usv_set:nnn {cal} {e} {"212F}
+\usv_set:nnn {cal} {g} {"210A}
+\usv_set:nnn {cal} {o} {"2134}
\usv_set:nnn {frak} {C} {"212D}
\usv_set:nnn {frak} {H} {"210C}
\usv_set:nnn {frak} {I} {"2111}
@@ -983,7 +969,7 @@
}
{ \char_set_catcode_other:n {#4} }
- \tl_case:Nn #3
+ \token_case_meaning:Nn #3
{
\mathord { \__um_set_mathcode:nnn {#4} {#3} {#1} }
\mathalpha { \__um_set_mathcode:nnn {#4} {#3} {#1} }
@@ -1114,7 +1100,7 @@
\SetMathAlphabet #1 {\l__um_mversion_tl} {\g_fontspec_encoding_tl} {\l__um_tmpa_tl} {\mddefault} {\shapedefault}
% integrate with fontspec's \setmathrm etc:
- \tl_case:Nn #1
+ \token_case_meaning:Nn #1
{
\mathrm { \cs_gset_eq:NN \g__fontspec_mathrm_tl \l__um_tmpa_tl }
\mathsf { \cs_gset_eq:NN \g__fontspec_mathsf_tl \l__um_tmpa_tl }
@@ -1129,7 +1115,7 @@
\__um_mathgroup_set:n {#2}
\math at egroup
}
-\cs_set:Npn \operator at font
+\cs_set_protected:Npn \operator at font
{
\__um_switch_to:n {literal}
\__um_fontswitch:n { \g__um_operator_mathfont_tl }
@@ -1306,7 +1292,7 @@
Renderer = Basic,
BoldItalicFont = {}, ItalicFont = {}, SmallCapsFont = {},
Script = Math,
- FontAdjustment = { \__um_luatex_copy_fontdimens: },
+ RawFeature = {mathfontdimen=xetex},
\l__um_unknown_keys_clist
}
@@ -1347,7 +1333,7 @@
\l__um_sscript_features_tl
}
} ,
- FontAdjustment = { \__um_luatex_copy_fontdimens: },
+ RawFeature = {mathfontdimen=xetex},
\l__um_unknown_keys_clist
}
@@ -1367,27 +1353,6 @@
\tl_gset:Nn \g__um_main_font_cmd_tl { \l__um_font }
\tl_gset:Nn \g__um_sqrt_font_cmd_tl { \l__um_font }
\tl_gset:Nn \g__um_prime_font_cmd_tl { \l__um_font }
-\__um_cs_new:Nn \__um_luatex_copy_fontdimens:
- {
- \__um_fontdimen_from_param:nn {10} {ScriptPercentScaleDown}
- \__um_fontdimen_from_param:nn {11} {ScriptScriptPercentScaleDown}
- \__um_fontdimen_from_param:nn {15} {AxisHeight}
- \__um_fontdimen_from_param:nn {18} {SubscriptShiftDown}
- \__um_fontdimen_from_param:nn {20} {SubscriptBaselineDropMin}
- \__um_fontdimen_from_param:nn {21} {SuperscriptShiftUp}
- \__um_fontdimen_from_param:nn {22} {SuperscriptShiftUpCramped}
- \__um_fontdimen_from_param:nn {24} {SuperscriptBaselineDropMax}
- \__um_fontdimen_from_param:nn {28} {UpperLimitGapMin}
- \__um_fontdimen_from_param:nn {29} {UpperLimitBaselineRiseMin}
- \__um_fontdimen_from_param:nn {30} {LowerLimitGapMin}
- \__um_fontdimen_from_param:nn {31} {LowerLimitBaselineDropMin}
- \__um_fontdimen_from_param:nn {32} {StackTopShiftUp}
- \__um_fontdimen_from_param:nn {42} {FractionNumeratorShiftUp}
- \__um_fontdimen_from_param:nn {43} {FractionNumeratorDisplayStyleShiftUp}
- \__um_fontdimen_from_param:nn {44} {FractionDenominatorShiftDown}
- \__um_fontdimen_from_param:nn {45} {FractionDenominatorDisplayStyleShiftDown}
- \__um_fontdimen_from_param:nn {48} {FractionRuleThickness}
- }
\__um_cs_new:Nn \__um_setup_math_fam:
{
\cs_if_exist:cF { sym \l__um_symfont_label_tl }
@@ -1408,25 +1373,7 @@
\fontspec_set_family:Nxn \l__um_fam_two_tl
{
\l__um_font_keyval_tl,
- ScaleAgain = 1.0001,
- FontAdjustment =
- {
- \__um_copy_fontdimen:nnN { 8} {43} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN { 9} {42} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {10} {32} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {11} {45} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {12} {44} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {13} {21} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {14} {21} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {15} {22} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {16} {18} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {17} {18} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {18} {24} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {19} {20} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {22} {15} \g__um_main_font_cmd_tl
- \__um_zero_fontdimen:n {20} % delim1 = FractionDelimiterDisplaySize
- \__um_zero_fontdimen:n {21} % delim2 = FractionDelimiterSize
- }
+ RawFeature = {mathfontdimen=tex2},
} {\l__um_fontname_tl}
\SetSymbolFont{symbols}{\l__um_mversion_tl}
@@ -1443,15 +1390,7 @@
\fontspec_set_family:Nxn \l__um_fam_three_tl
{
\l__um_font_keyval_tl,
- 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
- \__um_copy_fontdimen:nnN {10} {30} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {11} {29} \g__um_main_font_cmd_tl
- \__um_copy_fontdimen:nnN {12} {31} \g__um_main_font_cmd_tl
- \__um_zero_fontdimen:n {13}
- }
+ RawFeature = {mathfontdimen=tex3},
} {\l__um_fontname_tl}
\SetSymbolFont{largesymbols}{\l__um_mversion_tl}
@@ -2318,8 +2257,8 @@
\__um_default_mathalph:nnn {bb } {latin,Latin,num,misc} {bb }
\__um_default_mathalph:nnn {bbit } {misc} {bbit }
\__um_default_mathalph:nnn {scr } {latin,Latin} {scr }
-\__um_default_mathalph:nnn {cal } {Latin} {scr }
-\__um_default_mathalph:nnn {bfcal } {Latin} {bfscr }
+\__um_default_mathalph:nnn {cal } {latin,Latin} {scr }
+\__um_default_mathalph:nnn {bfcal } {latin,Latin} {bfscr }
\__um_default_mathalph:nnn {frak } {latin,Latin} {frak }
\__um_default_mathalph:nnn {tt } {latin,Latin,num} {tt }
\__um_default_mathalph:nnn {sfup } {latin,Latin,num} {sfup }
@@ -2606,6 +2545,13 @@
\__um_set_mathalphabet_pos:nnnn {cal} {M} {up,it} {#1}
\__um_set_mathalphabet_pos:nnnn {cal} {R} {up,it} {#1}
}
+\__um_new_alphabet_config:nnn {cal} {latin}
+ {
+ \__um_set_mathalphabet_latin:nnn {cal} {up,it} {#1}
+ \__um_set_mathalphabet_pos:nnnn {cal} {e} {up,it} {#1}
+ \__um_set_mathalphabet_pos:nnnn {cal} {g} {up,it} {#1}
+ \__um_set_mathalphabet_pos:nnnn {cal} {o} {up,it} {#1}
+ }
\__um_new_alphabet_config:nnn {frak} {Latin}
{
\__um_set_mathalphabet_Latin:nnn {frak} {up,it} {#1}
@@ -2971,6 +2917,10 @@
{
\__um_set_mathalphabet_Latin:nnn {bfcal} {up,it}{#1}
}
+\__um_new_alphabet_config:nnn {bfcal} {latin}
+ {
+ \__um_set_mathalphabet_latin:nnn {bfcal} {up,it}{#1}
+ }
\__um_new_alphabet_config:nnn {bfsfup} {num}
{
\__um_set_mathalphabet_numbers:nnn {bfsf} {up}{#1}
@@ -3487,6 +3437,8 @@
}
\group_end:
+\cs_set_eq:NN \active at math@prime \__um_scan_sup_prime:
+
%%^^A%% um-code-sscript.dtx -- part of UNICODE-MATH <wspr.io/unicode-math>
%%^^A%% Setup for active chars needed to process subscript/superscript input chars.
@@ -3781,14 +3733,6 @@
\tl_set:cx {it ##1} { \exp_not:N \symit \exp_not:c { ##1 } }
}
}
-\AtBeginDocument{ \@ifpackageloaded { amsmath } { } { \__um_redefine_radical: } }
-\cs_new:Nn \__um_redefine_radical:
- {
- \cs_set:Npn \root ##1 \of ##2
- {
- \Uroot \c__um_radical_sqrt_tl { ##1 } { ##2 }
- }
- }
\cs_new:Nn \__um_which_frac:nn
{
\bool_if:NTF \l__um_smallfrac_bool {\tfrac} {\frac} {#1} {#2}
@@ -3848,18 +3792,10 @@
{
\mode_if_math:TF \mathunderbar \latexe_underbar:n
}
-\@ifpackageloaded{amsmath}
- {
- % define their own colon, perhaps I should just steal it. (It does look much better.)
- }
- {
- \cs_set_protected:Npn \colon
- {
- \bool_if:NTF \g__um_literal_colon_bool {:} { \mathpunct{:} }
- }
- }
-\protected\def\digamma{\updigamma}
-\protected\def\Digamma{\upDigamma}
+\cs_set_protected:Npn \smallsetminus { \mathbin{ \mathpalette \__um_smallsetminus: \relax} }
+\cs_set:Npn \__um_smallsetminus: #1 { \rotatebox{135}{ \smash{ \raisebox{-\height}{$#1\minus$} } }}
+\cs_set_protected:Npn \digamma {\updigamma}
+\cs_set_protected:Npn \Digamma {\upDigamma}
\cs_set_protected:Npn \| {\Vert}
\cs_set_protected:Npn \mathellipsis {\mathinner{\unicodeellipsis}}
\cs_set_protected:Npn \cdots {\mathinner{\unicodecdots}}
@@ -3933,6 +3869,5 @@
\__um_undeclare_symbol:N \arrowvert
\__um_undeclare_symbol:N \Arrowvert
\__um_undeclare_symbol:N \bracevert
-\AtBeginDocument{\g__um_secret_hook_tl}
\endinput
Modified: trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-table.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-table.tex 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-table.tex 2023-08-13 19:58:06 UTC (rev 67919)
@@ -344,7 +344,7 @@
\UnicodeMathSymbol{"02213}{\mp }{\mathbin}{minus-or-plus sign}%
\UnicodeMathSymbol{"02214}{\dotplus }{\mathbin}{plus sign, dot above}%
\UnicodeMathSymbol{"02215}{\divslash }{\mathbin}{division slash}%
-\UnicodeMathSymbol{"02216}{\smallsetminus }{\mathbin}{small set minus (cf. reverse solidus)}%
+\UnicodeMathSymbol{"02216}{\setminus }{\mathbin}{set minus (cf. reverse solidus)}%
\UnicodeMathSymbol{"02217}{\ast }{\mathbin}{centered asterisk}%
\UnicodeMathSymbol{"02218}{\vysmwhtcircle }{\mathbin}{composite function (small circle)}%
\UnicodeMathSymbol{"02219}{\vysmblkcircle }{\mathbin}{bullet operator}%
@@ -822,7 +822,9 @@
\UnicodeMathSymbol{"027C7}{\veedot }{\mathbin}{or with dot inside}%
\UnicodeMathSymbol{"027C8}{\bsolhsub }{\mathrel}{reverse solidus preceding subset}%
\UnicodeMathSymbol{"027C9}{\suphsol }{\mathrel}{superset preceding solidus}%
+\UnicodeMathSymbol{"027CB}{\diagup }{\mathord}{mathematical rising diagonal}%
\UnicodeMathSymbol{"027CC}{\longdivision }{\mathopen}{long division}%
+\UnicodeMathSymbol{"027CD}{\diagdown }{\mathord}{mathematical falling diagonal}%
\UnicodeMathSymbol{"027D0}{\diamondcdot }{\mathord}{white diamond with centred dot}%
\UnicodeMathSymbol{"027D1}{\wedgedot }{\mathbin}{and with dot}%
\UnicodeMathSymbol{"027D2}{\upin }{\mathrel}{element of opening upwards}%
@@ -1116,7 +1118,7 @@
\UnicodeMathSymbol{"029F2}{\errbarcircle }{\mathord}{error-barred white circle}%
\UnicodeMathSymbol{"029F3}{\errbarblackcircle }{\mathord}{error-barred black circle}%
\UnicodeMathSymbol{"029F4}{\ruledelayed }{\mathrel}{rule-delayed}%
-\UnicodeMathSymbol{"029F5}{\setminus }{\mathbin}{reverse solidus operator}%
+\UnicodeMathSymbol{"029F5}{\reversesolidus }{\mathbin}{reverse solidus}%
\UnicodeMathSymbol{"029F6}{\dsol }{\mathbin}{solidus with overbar}%
\UnicodeMathSymbol{"029F7}{\rsolbar }{\mathbin}{reverse solidus with horizontal stroke}%
\UnicodeMathSymbol{"029F8}{\xsol }{\mathop}{big solidus}%
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 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math-xetex.sty 2023-08-13 19:58:06 UTC (rev 67919)
@@ -43,7 +43,7 @@
%%^^A%% Metadata for the package code, including files and versioning
\ProvidesExplPackage{unicode-math-xetex}
- {2020/01/31} {0.8q} {Unicode maths in XeLaTeX and LuaLaTeX}
+ {2023/08/13} {0.8r} {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.
@@ -60,9 +60,6 @@
\@ifpackageloaded {#1} {#2} {}
}
}
-\RequirePackage{xparse,l3keys2e}
-\RequirePackage{fontspec}
-\RequirePackage{fix-cm}
\cs_set_protected_nopar:Npn \exp_last_unbraced:NNx { \::N \::x_unbraced \::: }
\cs_generate_variant:Nn \fontspec_set_family:Nnn {Nx,Nxx}
\cs_generate_variant:Nn \prop_get:NnNTF {cx}
@@ -232,7 +229,6 @@
\int_new:N \g__um_fam_int
\int_new:N \g__um_fonts_used_int
\int_new:N \l__um_primecount_int
-\tl_if_exist:NF \g__um_secret_hook_tl { \tl_new:N \g__um_secret_hook_tl }
\tl_const:Nn \c__um_math_alphabet_name_latin_tl {Latin,~lowercase}
\tl_const:Nn \c__um_math_alphabet_name_Latin_tl {Latin,~uppercase}
\tl_const:Nn \c__um_math_alphabet_name_greek_tl {Greek,~lowercase}
@@ -532,12 +528,7 @@
{
{small}
{
- \cs_if_exist:NTF \tfrac
- { \bool_set_true:N \l__um_smallfrac_bool }
- {
- \__um_warning:n {no-tfrac}
- \bool_set_false:N \l__um_smallfrac_bool
- }
+ \bool_set_true:N \l__um_smallfrac_bool
\use:c {__um_setup_active_frac:}
}
@@ -572,11 +563,6 @@
%%^^A%% Definitions of error, warning, and log messages.
\char_set_catcode_space:n {32}
-\__um_msg_new:nn {no-tfrac}
-{
- Small fraction command \protect\tfrac\ not defined.\\
- Load amsmath or define it manually before loading unicode-math.
-}
\__um_msg_new:nn {default-math-font}
{
Defining the default maths font as '\l__um_fontname_tl'.
@@ -719,6 +705,7 @@
\usv_set:nnn {scr} {Latin} {"1D49C}
\usv_set:nnn {cal} {Latin} {"1D49C}
\usv_set:nnn {scr} {latin} {"1D4B6}
+\usv_set:nnn {cal} {latin} {"1D4B6}
\usv_set:nnn {frak} {Latin} {"1D504}
\usv_set:nnn {frak} {latin} {"1D51E}
\usv_set:nnn {sf} {num} {"1D7E2}
@@ -749,6 +736,7 @@
\usv_set:nnn {bfscr} {Latin} {"1D4D0}
\usv_set:nnn {bfcal} {Latin} {"1D4D0}
\usv_set:nnn {bfscr} {latin} {"1D4EA}
+\usv_set:nnn {bfcal} {latin} {"1D4EA}
\usv_set:nnn {bfsf} {num} {"1D7EC}
\usv_set:nnn {bfsfup} {num} {"1D7EC}
\usv_set:nnn {bfsfit} {num} {"1D7EC}
@@ -871,6 +859,7 @@
\usv_set:nnn {bb} {h} {"1D559}
\usv_set:nnn {tt} {h} {"1D691}
\usv_set:nnn {scr} {h} {"1D4BD}
+\usv_set:nnn {cal} {h} {"1D4BD}
\usv_set:nnn {frak} {h} {"1D525}
\usv_set:nnn {bfup} {h} {"1D421}
\usv_set:nnn {bfit} {h} {"1D489}
@@ -878,6 +867,7 @@
\usv_set:nnn {sfit} {h} {"1D629}
\usv_set:nnn {bffrak} {h} {"1D58D}
\usv_set:nnn {bfscr} {h} {"1D4F1}
+\usv_set:nnn {bfcal} {h} {"1D4F1}
\usv_set:nnn {bfsfup} {h} {"1D5F5}
\usv_set:nnn {bfsfit} {h} {"1D65D}
\usv_set:nnn {up} {dotlessi} {"00131}
@@ -929,6 +919,9 @@
\usv_set:nnn {cal} {L} {"2112}
\usv_set:nnn {cal} {M} {"2133}
\usv_set:nnn {cal} {R} {"211B}
+\usv_set:nnn {cal} {e} {"212F}
+\usv_set:nnn {cal} {g} {"210A}
+\usv_set:nnn {cal} {o} {"2134}
\usv_set:nnn {frak} {C} {"212D}
\usv_set:nnn {frak} {H} {"210C}
\usv_set:nnn {frak} {I} {"2111}
@@ -974,7 +967,7 @@
}
{ \char_set_catcode_other:n {#4} }
- \tl_case:Nn #3
+ \token_case_meaning:Nn #3
{
\mathord { \__um_set_mathcode:nnn {#4} {#3} {#1} }
\mathalpha { \__um_set_mathcode:nnn {#4} {#3} {#1} }
@@ -1105,7 +1098,7 @@
\SetMathAlphabet #1 {\l__um_mversion_tl} {\g_fontspec_encoding_tl} {\l__um_tmpa_tl} {\mddefault} {\shapedefault}
% integrate with fontspec's \setmathrm etc:
- \tl_case:Nn #1
+ \token_case_meaning:Nn #1
{
\mathrm { \cs_gset_eq:NN \g__fontspec_mathrm_tl \l__um_tmpa_tl }
\mathsf { \cs_gset_eq:NN \g__fontspec_mathsf_tl \l__um_tmpa_tl }
@@ -1120,7 +1113,7 @@
\__um_mathgroup_set:n {#2}
\math at egroup
}
-\cs_set:Npn \operator at font
+\cs_set_protected:Npn \operator at font
{
\__um_switch_to:n {literal}
\__um_fontswitch:n { \g__um_operator_mathfont_tl }
@@ -2246,8 +2239,8 @@
\__um_default_mathalph:nnn {bb } {latin,Latin,num,misc} {bb }
\__um_default_mathalph:nnn {bbit } {misc} {bbit }
\__um_default_mathalph:nnn {scr } {latin,Latin} {scr }
-\__um_default_mathalph:nnn {cal } {Latin} {scr }
-\__um_default_mathalph:nnn {bfcal } {Latin} {bfscr }
+\__um_default_mathalph:nnn {cal } {latin,Latin} {scr }
+\__um_default_mathalph:nnn {bfcal } {latin,Latin} {bfscr }
\__um_default_mathalph:nnn {frak } {latin,Latin} {frak }
\__um_default_mathalph:nnn {tt } {latin,Latin,num} {tt }
\__um_default_mathalph:nnn {sfup } {latin,Latin,num} {sfup }
@@ -2534,6 +2527,13 @@
\__um_set_mathalphabet_pos:nnnn {cal} {M} {up,it} {#1}
\__um_set_mathalphabet_pos:nnnn {cal} {R} {up,it} {#1}
}
+\__um_new_alphabet_config:nnn {cal} {latin}
+ {
+ \__um_set_mathalphabet_latin:nnn {cal} {up,it} {#1}
+ \__um_set_mathalphabet_pos:nnnn {cal} {e} {up,it} {#1}
+ \__um_set_mathalphabet_pos:nnnn {cal} {g} {up,it} {#1}
+ \__um_set_mathalphabet_pos:nnnn {cal} {o} {up,it} {#1}
+ }
\__um_new_alphabet_config:nnn {frak} {Latin}
{
\__um_set_mathalphabet_Latin:nnn {frak} {up,it} {#1}
@@ -2899,6 +2899,10 @@
{
\__um_set_mathalphabet_Latin:nnn {bfcal} {up,it}{#1}
}
+\__um_new_alphabet_config:nnn {bfcal} {latin}
+ {
+ \__um_set_mathalphabet_latin:nnn {bfcal} {up,it}{#1}
+ }
\__um_new_alphabet_config:nnn {bfsfup} {num}
{
\__um_set_mathalphabet_numbers:nnn {bfsf} {up}{#1}
@@ -3415,6 +3419,8 @@
}
\group_end:
+\cs_set_eq:NN \active at math@prime \__um_scan_sup_prime:
+
%%^^A%% um-code-sscript.dtx -- part of UNICODE-MATH <wspr.io/unicode-math>
%%^^A%% Setup for active chars needed to process subscript/superscript input chars.
@@ -3736,27 +3742,6 @@
\tl_set:cx {it ##1} { \exp_not:N \symit \exp_not:c { ##1 } }
}
}
-\AtBeginDocument{ \@ifpackageloaded { amsmath } { } { \__um_redefine_radical: } }
-\cs_new:Nn \__um_redefine_radical:
- {
- \cs_set_nopar:Npn \r@@t ##1 ##2
- {
- \hbox_set:Nn \l_tmpa_box
- {
- \c_math_toggle_token \m at th
- ##1 \sqrtsign { ##2 }
- \c_math_toggle_token
- }
- \__um_mathstyle_scale:NnnN ##1 { \kern } { \fontdimen 63 \g__um_sqrt_font_cmd_tl } \g__um_sqrt_font_cmd_tl
- \box_move_up:nn
- {
- (\box_ht:N \l_tmpa_box - \box_dp:N \l_tmpa_box) * \number \fontdimen 65 \g__um_sqrt_font_cmd_tl / 100
- }
- { \box_use:N \rootbox }
- \__um_mathstyle_scale:NnnN ##1 { \kern } { \fontdimen 64 \g__um_sqrt_font_cmd_tl } \g__um_sqrt_font_cmd_tl
- \box_use_drop:N \l_tmpa_box
- }
- }
\cs_new:Nn \__um_which_frac:nn
{
\bool_if:NTF \l__um_smallfrac_bool {\tfrac} {\frac} {#1} {#2}
@@ -3816,18 +3801,10 @@
{
\mode_if_math:TF \mathunderbar \latexe_underbar:n
}
-\@ifpackageloaded{amsmath}
- {
- % define their own colon, perhaps I should just steal it. (It does look much better.)
- }
- {
- \cs_set_protected:Npn \colon
- {
- \bool_if:NTF \g__um_literal_colon_bool {:} { \mathpunct{:} }
- }
- }
-\protected\def\digamma{\updigamma}
-\protected\def\Digamma{\upDigamma}
+\cs_set_protected:Npn \smallsetminus { \mathbin{ \mathpalette \__um_smallsetminus: \relax} }
+\cs_set:Npn \__um_smallsetminus: #1 { \rotatebox{135}{ \smash{ \raisebox{-\height}{$#1\minus$} } }}
+\cs_set_protected:Npn \digamma {\updigamma}
+\cs_set_protected:Npn \Digamma {\upDigamma}
\cs_set_protected:Npn \| {\Vert}
\cs_set_protected:Npn \mathellipsis {\mathinner{\unicodeellipsis}}
\cs_set_protected:Npn \cdots {\mathinner{\unicodecdots}}
@@ -3901,6 +3878,5 @@
\__um_undeclare_symbol:N \arrowvert
\__um_undeclare_symbol:N \Arrowvert
\__um_undeclare_symbol:N \bracevert
-\AtBeginDocument{\g__um_secret_hook_tl}
\endinput
Modified: trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty 2023-08-13 19:57:44 UTC (rev 67918)
+++ trunk/Master/texmf-dist/tex/latex/unicode-math/unicode-math.sty 2023-08-13 19:58:06 UTC (rev 67919)
@@ -24,7 +24,7 @@
\RequirePackage{expl3}
\ProvidesExplPackage{unicode-math}
- {2020/01/31} {0.8q} {Unicode maths in XeLaTeX and LuaLaTeX}
+ {2023/08/13} {0.8r} {Unicode maths in XeLaTeX and LuaLaTeX}
\sys_if_engine_luatex:T
{
\RequirePackageWithOptions{unicode-math-luatex}
More information about the tex-live-commits
mailing list.