texlive[64930] Master/texmf-dist: mathastext (4nov22)

commits+karl at tug.org commits+karl at tug.org
Fri Nov 4 20:58:07 CET 2022


Revision: 64930
          http://tug.org/svn/texlive?view=revision&revision=64930
Author:   karl
Date:     2022-11-04 20:58:07 +0100 (Fri, 04 Nov 2022)
Log Message:
-----------
mathastext (4nov22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/mathastext/ChangeLog.md
    trunk/Master/texmf-dist/doc/latex/mathastext/README.md
    trunk/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf
    trunk/Master/texmf-dist/doc/latex/mathastext/mathastext.tex
    trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex
    trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestmathversions.tex
    trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodelinux.tex
    trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodemacos.tex
    trunk/Master/texmf-dist/source/latex/mathastext/mathastext.dtx
    trunk/Master/texmf-dist/tex/latex/mathastext/mathastext.sty

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/mathastext/INSTALL.txt
    trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.pdf

Modified: trunk/Master/texmf-dist/doc/latex/mathastext/ChangeLog.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathastext/ChangeLog.md	2022-11-04 19:57:37 UTC (rev 64929)
+++ trunk/Master/texmf-dist/doc/latex/mathastext/ChangeLog.md	2022-11-04 19:58:07 UTC (rev 64930)
@@ -1,6 +1,60 @@
 MATHASTEXT CHANGE LOG
 =====================
 
+1.3y \[2022/11/04\]
+----
+
+(the 1.3x had an annoying documentation bug, and had already
+been pushed to CTAN, hence the version increase to 1.3y)
+
+* mathastext now requires the `\expanded` primitive (which is
+  available with all major engines since TeXLive 2019).
+
+* Revisit parts of the documentation (mainly
+  the Examples, and the section on Greek letters) and shuffle
+  the other parts to surely improve things. Mention
+  the [mathfont](https://ctan.org/pkg/mathfont)
+  and [frenchmath](https://ctan.org/pkg/frenchmath) packages.
+
+* Add the `ncccomma` option which loads the
+  [ncccomma](https://ctan.org/pkg/ncccomma)
+  package to allow the comma as decimal separator.
+
+* Add the `binarysemicolon` option to let the semi-colon
+  be of type `\mathbin`, not `\mathpunct`.
+
+* Add the `frenchmath*` option which does all three of
+  `frenchmath`, `ncccomma` and `binarysemicolon`.
+
+* Under the `LGRgreek` and `LGRgreeks` options only:
+
+  - make available upright and italic Greek letters in math mode
+    via `\alphaup`, `\alphait`, ...  control sequences, in
+    addition to those not using such postfixed-names.
+
+  - add `\mathgreekup` and `\mathgreekit` math alphabets.
+
+  - add `\MTgreekupdefault` and `\MTgreekitdefault`.  The former
+    replaces `\updefault` which was used in some places and since
+    LaTeX 2020-02-02 caused systematic Font Warnings about the
+    substitution of `up` by `n`.
+
+  These new features required an extensive internal refactoring
+  which is expected to not induce changes to most existing
+  documents.  But it may induce changes to those using some
+  unusual configuration in the preamble, as made possible via the
+  package macros; this can apply only to documents authored by
+  those few people who actually read the documentation.  For full
+  details make sure to read the PDF documentation about this
+  change.
+
+* Fix "`\Digamma` under `LGRgreek` option uses the shape for
+  lowercase not uppercase Greek".
+
+* Fix some incongruities in log messages related to Greek
+  letters and emitted during math version creation in the
+  preamble.
+
 1.3w \[2019/11/16\]
 ----
 
@@ -342,7 +396,7 @@
 
 * the amsmath `\resetMathstrut@`, which is incompatible with a
   mathematically active parenthesis ( is now modified only if
-  necessary (i.e. only when `\MTnonlettersobeymathxx` is issued) and
+  necessary (i.e.\@ only when `\MTnonlettersobeymathxx` is issued) and
   is restored to its original value if not needed anymore (i.e.
   after `\MTnonlettersdonotobeymathxx`, as for example when
   switching to the normal version under option subdued).

Deleted: trunk/Master/texmf-dist/doc/latex/mathastext/INSTALL.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathastext/INSTALL.txt	2022-11-04 19:57:37 UTC (rev 64929)
+++ trunk/Master/texmf-dist/doc/latex/mathastext/INSTALL.txt	2022-11-04 19:58:07 UTC (rev 64930)
@@ -1,38 +0,0 @@
-The simplest for most users is to use the manager script of the TeX
-installation to either install or upgrade mathastext to its current
-version.
-
-Else, download mathastext.dtx and follow these instructions:
-
-- Run tex or etex on mathastext.dtx to generate the package style
-  file mathastext.sty as well as additional files:
-
-  mathastext.tex, README.md, ChangeLog.md, and some test files.
-
-- Move the style file mathastext.sty to a location where TeX can
-  find it. In a TDS compliant hierarchy this will be
-
-      <TDS>:tex/latex/mathastext/mathastext.sty
-
-For the documentation:
-
-- Follow the above steps, then run latex thrice on mathastext.tex
-  then dvipdfmx on mathastext.dvi. The file mathastext.tex can be
-  customized to change the font size or set other options therein.
-  The produced file mathastext.pdf will by default include the
-  commented source code.
-
-It is also possible to run pdflatex (thrice) directly on mathastext.dtx.
-In that case mathastext.pdf is produced without the commented source code.
-
-One can NOT use lualatex or xelatex to compile the documentation.
-
-The test files
-
-    mathastexttestmathversions.tex
-    mathastexttestunicodemacos.tex
-    mathastexttestunicodelinux.tex
-    mathastexttestalphabets.tex
-
-illustrate some features of the package and are an addendum to the
-main documentation mathastext.pdf.

Modified: trunk/Master/texmf-dist/doc/latex/mathastext/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathastext/README.md	2022-11-04 19:57:37 UTC (rev 64929)
+++ trunk/Master/texmf-dist/doc/latex/mathastext/README.md	2022-11-04 19:58:07 UTC (rev 64930)
@@ -12,9 +12,9 @@
 
 The Author of this Work is Jean-Francois Burnol
 
-Copyright (C) 2011-2019 Jean-Francois Burnol (`jfbu at free dot fr`)
+Copyright (C) 2011-2019, 2022 Jean-Francois Burnol (`jfbu at free dot fr`)
 
-      Source: mathastext.dtx 1.3w 2019/11/16
+      Source: mathastext.dtx 1.3y 2022/11/04
 
 
 DESCRIPTION
@@ -82,119 +82,57 @@
 RECENT CHANGES
 ==============
 
-1.3w \[2019/11/16\]
+1.3y \[2022/11/04\]
 ----
 
-* LaTeX 2019-10-01 release (up to patch level 3 inclusive)
-  together with `amsmath` conspired `:-)` to break `mathastext`,
-  in connexion with math accents. This has been fixed upstream,
-  but I am releasing nevertheless a hot fix to this
-  [issue](https://github.com/latex3/latex2e/issues/216)
-  (this is compatible with future LaTeX releases).
+(the 1.3x had an annoying documentation bug, and had already
+been pushed to CTAN, hence the version increase to 1.3y)
 
-* Fix: the `\hbar` is originally a robust command but
-  becomes a `\mathchardef` token if (e.g.) `amsfonts` is
-  loaded and then with recent LaTeX `\hbar<space>` is
-  made undefined and `mathastext` definition of it
-  remained without effect. The `\mathastext` own `\hbar`
-  is now defined `\protected`.
+* mathastext now requires the `\expanded` primitive (which is
+  available with all major engines since TeXLive 2019).
 
-* Fix: option `noendash` (or `symboldelimiters` which implies
-  it) caused (since `1.3u`) a bug under Unicode engines when
-  setting up the minus sign.
+* Revisit parts of the documentation (mainly
+  the Examples, and the section on Greek letters) and shuffle
+  the other parts to surely improve things. Mention
+  the [mathfont](https://ctan.org/pkg/mathfont)
+  and [frenchmath](https://ctan.org/pkg/frenchmath) packages.
 
-* Version names declared via the optional argument of
-  `\Mathastext` or as first argument of `\MTDeclareVersion`
-  must not be `normal` or `bold`. Enforce that! (this was
-  marked as a bug to fix since `2012/10/24`...)
+* Add the `ncccomma` option which loads the
+  [ncccomma](https://ctan.org/pkg/ncccomma)
+  package to allow the comma as decimal separator.
 
-1.3v \[2019/09/19\]
-----
+* Add the `binarysemicolon` option to let the semi-colon
+  be of type `\mathbin`, not `\mathpunct`.
 
-* LaTeX 2019-10-01 release has made more math macros robust.
-  This applies in particular to the math accents and to the
-  `\hbar`. This required for mathastext to adapt. Also
-  `\leftarrowfill` and `\rightarrowfill` are now defined
-  robust by the kernel, hence mathastext does the same. These
-  changes are dropped if mathastext detects an older LaTeX
-  format.
+* Add the `frenchmath*` option which does all three of
+  `frenchmath`, `ncccomma` and `binarysemicolon`.
 
-* These LaTeX kernel changes motivated an examination of some
-  redefinitions done (optionally) by mathastext:
-  - The user math alphabet macros got redefined as expanding
-    to some other (robust) math alphabet macros, but were not
-    robust in the strict sense. This does cause some issues
-    for moving arguments in the context of multiple math
-    versions, hence it was a bug. The special behaviour of the
-    math alphabet commands (they redefine themselves and other
-    macros on first use) makes is somewhat problematic for
-    mathastext to keep them updated across math versions and
-    at the same time strictly LaTeX2e robust. Thus mathastext
-    now requires the e-TeX primitive `\protected` and uses it
-    for the definitions of the user level math alphabet
-    macros.
-  - There are a number of `\mathchardef` tokens which (under
-    certain options and/or configuration via the package user
-    interface), mathastext redefines as macros. These macros
-    cause no issue in moving arguments (they are not
-    "fragile"), still it is probably better if they expand
-    only at the time of typesetting. To this effect they are
-    now also `\protected`: `\exists`, `\forall`, `\colon`,
-    `\setminus`, `\mid`, `\prod`, `\sum`, `\imath`, `\jmath`.
-  - The macro `\vert` (which expands to a `\delimiter`) is now
-    defined robust by LaTeX. Its mathastext redefinition is a
-    `\protected` one rather.
-  - The `\{` and `\}` (which get redefined only under
-    `\MTexplicitbracesobeymathxx` regime) are now strictly
-    robust in the LaTeX2e sense (formerly they were `\let` to
-    some robust macros, and this did not make them strictly
-    LaTeX2e-robust entities).
+* Under the `LGRgreek` and `LGRgreeks` options only:
 
-* The various changes in mathastext described in the previous item
-  apply independently of the LaTeX release version. The
-  LaTeX format itself requires the e-TeX extensions since 2015.
+  - make available upright and italic Greek letters in math mode
+    via `\alphaup`, `\alphait`, ...  control sequences, in
+    addition to those not using such postfixed-names.
 
-1.3u (2019/08/20)
----
+  - add `\mathgreekup` and `\mathgreekit` math alphabets.
 
-* new feature: the initial release dealt with only one font, and
-  although shortly thereafter the 1.11 version added support for
-  extended math versions, it was documented that some font-dependent
-  set-up (minus as endash, dotless i and j, hbar, math accents) was
-  done only once. This release makes the relevant characters font
-  encoding savvy in each mathastext-extended math version. Thus,
-  they should render correctly even with multiple math versions
-  using fonts with varying encodings.
+  - add `\MTgreekupdefault` and `\MTgreekitdefault`.  The former
+    replaces `\updefault` which was used in some places and since
+    LaTeX 2020-02-02 caused systematic Font Warnings about the
+    substitution of `up` by `n`.
 
-  This reinforces importance of using `\MTversion` and not the
-  LaTeX `\mathversion` when switching to a new math version (which
-  got declared via the package interface). The implementation is
-  compatible with Unicode engines and mixed usage of `TU` encoding
-  (OpenType fonts) with traditional 8bits TeX font encodings. For
-  all engines, all used (8bits) encodings must have been passed as
-  options to the `fontenc` package.
+  These new features required an extensive internal refactoring
+  which is expected to not induce changes to most existing
+  documents.  But it may induce changes to those using some
+  unusual configuration in the preamble, as made possible via the
+  package macros; this can apply only to documents authored by
+  those few people who actually read the documentation.  For full
+  details make sure to read the PDF documentation about this
+  change.
 
-  Thanks to Falk Hanisch for feature request and code suggestions.
+* Fix "`\Digamma` under `LGRgreek` option uses the shape for
+  lowercase not uppercase Greek".
 
-* new option `unimathaccents`: this adds to option `mathaccents`
-  the demand to use the text font accents for OpenType fonts in math
-  mode via the `\Umathaccent` primitive. Indeed, as my testing
-  showed that this gave non-satisfactory results both with XeTeX
-  and LuaTeX regarding the horizontal placement of the accents,
-  the main option `mathaccents` acts only on 8bits encoded fonts.
+* Fix some incongruities in log messages related to Greek
+  letters and emitted during math version creation in the
+  preamble.
 
-* bugfix: the `\Mathastext` without optional argument forgot to
-  repeat some font-encoding dependent initialization set-up done
-  originally during package loading.
-
-* bugfix: under the `subdued` option macros `\MTmathactiveletters`
-  or `\MTnonlettersobeymathxx` now act like no-ops if
-  issued explicitly while in the `normal` or `bold` math version.
-  Formerly, this was not the case and could cause bugs such as a
-  disappearing minus sign in math mode.
-
-* bugfix: the letter `h` used in the `\hbar` obeyed the extra
-  skips as set-up by `\MTsetmathskips`, badly interfering with the
-  horizontal positioning of the bar accent. They are now ignored
-  (as well as the added italic correction).
-

Modified: trunk/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/mathastext/mathastext.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathastext/mathastext.tex	2022-11-04 19:57:37 UTC (rev 64929)
+++ trunk/Master/texmf-dist/doc/latex/mathastext/mathastext.tex	2022-11-04 19:58:07 UTC (rev 64930)
@@ -1,11 +1,11 @@
-\def\MSTpkgdate    {2019/11/16}
-\def\MSTpkgversion {1.3w}
+\def\MSTpkgdate    {2022/11/04}
+\def\MSTpkgversion {1.3y}
 %%----------------------------------------------------------------
 %% Package: mathastext
 %% Info:    Use the text font in math mode (JFB)
-%% Version: 1.3w 2019/11/16
+%% Version: 1.3y 2022/11/04
 %% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt)
-%% Copyright (C) 2011-2019 Jean-Francois Burnol <jfbu at free dot fr>
+%% Copyright (C) 2011-2019, 2022 Jean-Francois Burnol <jfbu at free dot fr>
 %% Examples of use of mathastext:
 %%        http://jf.burnol.free.fr/mathastext.html
 %%        http://jf.burnol.free.fr/showcase.html
@@ -23,7 +23,7 @@
 \ProvidesFile{mathastext.tex}%
 [\MSTpkgdate\space v\MSTpkgversion\space
        driver file for mathastext documentation (JFB)]%
-\PassOptionsToClass{a4paper,fontsize=11pt}{scrdoc}
+\PassOptionsToClass{a4paper,fontsize=11pt}{scrartcl}
 \chardef\Withdvipdfmx 1 % replace 1<space> by 0<space> for using latex/pdflatex
 \chardef\NoSourceCode 0 % replace 0<space> by 1<space> for no source code
 \input mathastext.dtx

Deleted: trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex	2022-11-04 19:57:37 UTC (rev 64929)
+++ trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex	2022-11-04 19:58:07 UTC (rev 64930)
@@ -1,11 +1,11 @@
 \def\testfileincipit{Test file to accompany \texttt{mathastext}
-version \texttt{1.3w} of \texttt{2019/11/16}}
+version \texttt{1.3y} of \texttt{2022/11/04}}
 %%----------------------------------------------------------------
 %% Package: mathastext
 %% Info:    Use the text font in math mode (JFB)
-%% Version: 1.3w 2019/11/16
+%% Version: 1.3y 2022/11/04
 %% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt)
-%% Copyright (C) 2011-2019 Jean-Francois Burnol <jfbu at free dot fr>
+%% Copyright (C) 2011-2019, 2022 Jean-Francois Burnol <jfbu at free dot fr>
 %% Examples of use of mathastext:
 %%        http://jf.burnol.free.fr/mathastext.html
 %%        http://jf.burnol.free.fr/showcase.html

Modified: trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestmathversions.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestmathversions.tex	2022-11-04 19:57:37 UTC (rev 64929)
+++ trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestmathversions.tex	2022-11-04 19:58:07 UTC (rev 64930)
@@ -1,11 +1,11 @@
 \def\testfileincipit{Test file to accompany \texttt{mathastext}
-version \texttt{1.3w} of \texttt{2019/11/16}}
+version \texttt{1.3y} of \texttt{2022/11/04}}
 %%----------------------------------------------------------------
 %% Package: mathastext
 %% Info:    Use the text font in math mode (JFB)
-%% Version: 1.3w 2019/11/16
+%% Version: 1.3y 2022/11/04
 %% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt)
-%% Copyright (C) 2011-2019 Jean-Francois Burnol <jfbu at free dot fr>
+%% Copyright (C) 2011-2019, 2022 Jean-Francois Burnol <jfbu at free dot fr>
 %% Examples of use of mathastext:
 %%        http://jf.burnol.free.fr/mathastext.html
 %%        http://jf.burnol.free.fr/showcase.html

Modified: trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodelinux.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodelinux.tex	2022-11-04 19:57:37 UTC (rev 64929)
+++ trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodelinux.tex	2022-11-04 19:58:07 UTC (rev 64930)
@@ -1,11 +1,11 @@
 \def\testfileincipit{Test file to accompany \texttt{mathastext}
-version \texttt{1.3w} of \texttt{2019/11/16}}
+version \texttt{1.3y} of \texttt{2022/11/04}}
 %%----------------------------------------------------------------
 %% Package: mathastext
 %% Info:    Use the text font in math mode (JFB)
-%% Version: 1.3w 2019/11/16
+%% Version: 1.3y 2022/11/04
 %% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt)
-%% Copyright (C) 2011-2019 Jean-Francois Burnol <jfbu at free dot fr>
+%% Copyright (C) 2011-2019, 2022 Jean-Francois Burnol <jfbu at free dot fr>
 %% Examples of use of mathastext:
 %%        http://jf.burnol.free.fr/mathastext.html
 %%        http://jf.burnol.free.fr/showcase.html

Modified: trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodemacos.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodemacos.tex	2022-11-04 19:57:37 UTC (rev 64929)
+++ trunk/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodemacos.tex	2022-11-04 19:58:07 UTC (rev 64930)
@@ -1,11 +1,11 @@
 \def\testfileincipit{Test file to accompany \texttt{mathastext}
-version \texttt{1.3w} of \texttt{2019/11/16}}
+version \texttt{1.3y} of \texttt{2022/11/04}}
 %%----------------------------------------------------------------
 %% Package: mathastext
 %% Info:    Use the text font in math mode (JFB)
-%% Version: 1.3w 2019/11/16
+%% Version: 1.3y 2022/11/04
 %% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt)
-%% Copyright (C) 2011-2019 Jean-Francois Burnol <jfbu at free dot fr>
+%% Copyright (C) 2011-2019, 2022 Jean-Francois Burnol <jfbu at free dot fr>
 %% Examples of use of mathastext:
 %%        http://jf.burnol.free.fr/mathastext.html
 %%        http://jf.burnol.free.fr/showcase.html
@@ -83,6 +83,11 @@
 for text fonts under \LuaLaTeX, which may be related with this specific issue
 here).
 
+Update (tested 2022/10/29, with 1.3x and up-to-date TL2022): it appears that
+most, perhaps even all, of the remarks in the preceding note are now obsolete
+as I do not see obvious differences between outputs from \XeLaTeX{} versus
+\LuaLaTeX{} but I did not seriously compare, only quickly done.
+
 \newcommand\TEST[1]{\MTversion{#1}\def\tmpa{#1}%
   \def\tmpb{normal}\def\tmpc{bold}%
   \ifx\tmpa\tmpb\else\ifx\tmpa\tmpc\else \MTnonlettersobeymathxx

Modified: trunk/Master/texmf-dist/source/latex/mathastext/mathastext.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/mathastext/mathastext.dtx	2022-11-04 19:57:37 UTC (rev 64929)
+++ trunk/Master/texmf-dist/source/latex/mathastext/mathastext.dtx	2022-11-04 19:58:07 UTC (rev 64930)
@@ -1,13 +1,18 @@
 % -*- coding: iso-latin-1; time-stamp-format: "%02d-%02m-%:y at %02H:%02M:%02S %Z" -*-
 % N.B.: this dtx file does NOT use \DocInput, it only uses docstrip.
-% The LaTeX source of the documentation is NOT prefixed with percent characters.
+% The LaTeX source of the documentation is NOT prefixed with %'s.
 %<*dtx>
-\def\dtxtimestamp {Time-stamp: <16-11-2019 at 21:27:02 CET>}%
-\def\docdate{2019/11/16}
+\def\dtxtimestamp {Time-stamp: <04-11-2022 at 12:36:29 CET>}
+\def\docdate{2022/11/04}
+% To extract run etex on this file, then to build documentation run
+% latexmk on mathastext.tex then dvipdfmx on the dvi.
+% For more information see http://jf.burnol.free.fr/v13/INSTALL.txt
+% The encoding is deliberately an 8bit one, do not convert to utf-8
+% due to usage of \xA7 (<A7>) as an active character.
 %</dtx>
 %<*drv>
-\def\MSTpkgdate    {2019/11/16}
-\def\MSTpkgversion {1.3w}
+\def\MSTpkgdate    {2022/11/04}
+\def\MSTpkgversion {1.3y}
 %</drv>
 %<*dtx>
 \iffalse % meta-comment
@@ -27,18 +32,12 @@
 
 The Author of this Work is Jean-Francois Burnol
 
-Copyright (C) 2011-2019 Jean-Francois Burnol (`jfbu at free dot fr`)
+Copyright (C) 2011-2019, 2022 Jean-Francois Burnol (`jfbu at free dot fr`)
 
-      Source: mathastext.dtx 1.3w 2019/11/16
+      Source: mathastext.dtx 1.3y 2022/11/04
 
 %</readme>
 %<*dtx>
-Generating the documentation from source:
-
-1a) tex (or etex) mathastext.dtx to extract generated files
-1b) then latex mathastext.tex (thrice) and dvipdfmx mathastext.dvi
-2) alternative to 1a)+1b): pdflatex mathastext.dtx. The documentation does
-not include the documented source code then, in contrast to 1a)+1b) method
 \fi % end of meta-comment
 %</dtx>
 %<*!readme&!changelog>
@@ -45,9 +44,9 @@
 %%----------------------------------------------------------------
 %% Package: mathastext
 %% Info:    Use the text font in math mode (JFB)
-%% Version: 1.3w 2019/11/16
+%% Version: 1.3y 2022/11/04
 %% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt)
-%% Copyright (C) 2011-2019 Jean-Francois Burnol <jfbu at free dot fr>
+%% Copyright (C) 2011-2019, 2022 Jean-Francois Burnol <jfbu at free dot fr>
 %% Examples of use of mathastext:
 %%        http://jf.burnol.free.fr/mathastext.html
 %%        http://jf.burnol.free.fr/showcase.html
@@ -67,7 +66,7 @@
         \chardef\Withdvipdfmx 0 % 0 = pdflatex or latex+dvips
         \chardef\NoSourceCode 1 % 
         \NeedsTeXFormat{LaTeX2e}%
-        \PassOptionsToClass{a4paper,fontsize=11pt}{scrdoc}% 
+        \PassOptionsToClass{a4paper,fontsize=11pt}{scrartcl}%
       \else % latex run is on mathastext.tex, 
         \chardef\extractfiles 2 % no extractions
       \fi
@@ -193,129 +192,69 @@
 RECENT CHANGES
 ==============
 
-1.3w \[2019/11/16\]
+%</readme>
+%<*changelog>
+MATHASTEXT CHANGE LOG
+=====================
+
+%</changelog>
+%<*readme|changelog>
+1.3y \[2022/11/04\]
 ----
 
-* LaTeX 2019-10-01 release (up to patch level 3 inclusive)
-  together with `amsmath` conspired `:-)` to break `mathastext`,
-  in connexion with math accents. This has been fixed upstream,
-  but I am releasing nevertheless a hot fix to this
-  [issue](https://github.com/latex3/latex2e/issues/216)
-  (this is compatible with future LaTeX releases).
+(the 1.3x had an annoying documentation bug, and had already
+been pushed to CTAN, hence the version increase to 1.3y)
 
-* Fix: the `\hbar` is originally a robust command but
-  becomes a `\mathchardef` token if (e.g.) `amsfonts` is
-  loaded and then with recent LaTeX `\hbar<space>` is
-  made undefined and `mathastext` definition of it
-  remained without effect. The `\mathastext` own `\hbar`
-  is now defined `\protected`.
+* mathastext now requires the `\expanded` primitive (which is
+  available with all major engines since TeXLive 2019).
 
-* Fix: option `noendash` (or `symboldelimiters` which implies
-  it) caused (since `1.3u`) a bug under Unicode engines when
-  setting up the minus sign.
+* Revisit parts of the documentation (mainly
+  the Examples, and the section on Greek letters) and shuffle
+  the other parts to surely improve things. Mention
+  the [mathfont](https://ctan.org/pkg/mathfont)
+  and [frenchmath](https://ctan.org/pkg/frenchmath) packages.
 
-* Version names declared via the optional argument of
-  `\Mathastext` or as first argument of `\MTDeclareVersion`
-  must not be `normal` or `bold`. Enforce that! (this was
-  marked as a bug to fix since `2012/10/24`...)
+* Add the `ncccomma` option which loads the
+  [ncccomma](https://ctan.org/pkg/ncccomma)
+  package to allow the comma as decimal separator.
 
+* Add the `binarysemicolon` option to let the semi-colon
+  be of type `\mathbin`, not `\mathpunct`.
 
-1.3v \[2019/09/19\]
-----
+* Add the `frenchmath*` option which does all three of
+  `frenchmath`, `ncccomma` and `binarysemicolon`.
 
-* LaTeX 2019-10-01 release has made more math macros robust.
-  This applies in particular to the math accents and to the
-  `\hbar`. This required for mathastext to adapt. Also
-  `\leftarrowfill` and `\rightarrowfill` are now defined
-  robust by the kernel, hence mathastext does the same. These
-  changes are dropped if mathastext detects an older LaTeX
-  format.
+* Under the `LGRgreek` and `LGRgreeks` options only:
 
-* These LaTeX kernel changes motivated an examination of some
-  redefinitions done (optionally) by mathastext:
-  - The user math alphabet macros got redefined as expanding
-    to some other (robust) math alphabet macros, but were not
-    robust in the strict sense. This does cause some issues
-    for moving arguments in the context of multiple math
-    versions, hence it was a bug. The special behaviour of the
-    math alphabet commands (they redefine themselves and other
-    macros on first use) makes is somewhat problematic for
-    mathastext to keep them updated across math versions and
-    at the same time strictly LaTeX2e robust. Thus mathastext
-    now requires the e-TeX primitive `\protected` and uses it
-    for the definitions of the user level math alphabet
-    macros.
-  - There are a number of `\mathchardef` tokens which (under
-    certain options and/or configuration via the package user
-    interface), mathastext redefines as macros. These macros
-    cause no issue in moving arguments (they are not
-    "fragile"), still it is probably better if they expand
-    only at the time of typesetting. To this effect they are
-    now also `\protected`: `\exists`, `\forall`, `\colon`,
-    `\setminus`, `\mid`, `\prod`, `\sum`, `\imath`, `\jmath`.
-  - The macro `\vert` (which expands to a `\delimiter`) is now
-    defined robust by LaTeX. Its mathastext redefinition is a
-    `\protected` one rather.
-  - The `\{` and `\}` (which get redefined only under
-    `\MTexplicitbracesobeymathxx` regime) are now strictly
-    robust in the LaTeX2e sense (formerly they were `\let` to
-    some robust macros, and this did not make them strictly
-    LaTeX2e-robust entities).
+  - make available upright and italic Greek letters in math mode
+    via `\alphaup`, `\alphait`, ...  control sequences, in
+    addition to those not using such postfixed-names.
 
-* The various changes in mathastext described in the previous item
-  apply independently of the LaTeX release version. The
-  LaTeX format itself requires the e-TeX extensions since 2015.
+  - add `\mathgreekup` and `\mathgreekit` math alphabets.
 
+  - add `\MTgreekupdefault` and `\MTgreekitdefault`.  The former
+    replaces `\updefault` which was used in some places and since
+    LaTeX 2020-02-02 caused systematic Font Warnings about the
+    substitution of `up` by `n`.
 
-1.3u (2019/08/20)
----
+  These new features required an extensive internal refactoring
+  which is expected to not induce changes to most existing
+  documents.  But it may induce changes to those using some
+  unusual configuration in the preamble, as made possible via the
+  package macros; this can apply only to documents authored by
+  those few people who actually read the documentation.  For full
+  details make sure to read the PDF documentation about this
+  change.
 
-* new feature: the initial release dealt with only one font, and
-  although shortly thereafter the 1.11 version added support for
-  extended math versions, it was documented that some font-dependent
-  set-up (minus as endash, dotless i and j, hbar, math accents) was
-  done only once. This release makes the relevant characters font
-  encoding savvy in each mathastext-extended math version. Thus,
-  they should render correctly even with multiple math versions
-  using fonts with varying encodings.
+* Fix "`\Digamma` under `LGRgreek` option uses the shape for
+  lowercase not uppercase Greek".
 
-  This reinforces importance of using `\MTversion` and not the
-  LaTeX `\mathversion` when switching to a new math version (which
-  got declared via the package interface). The implementation is
-  compatible with Unicode engines and mixed usage of `TU` encoding
-  (OpenType fonts) with traditional 8bits TeX font encodings. For
-  all engines, all used (8bits) encodings must have been passed as
-  options to the `fontenc` package.
+* Fix some incongruities in log messages related to Greek
+  letters and emitted during math version creation in the
+  preamble.
 
-  Thanks to Falk Hanisch for feature request and code suggestions.
-
-* new option `unimathaccents`: this adds to option `mathaccents`
-  the demand to use the text font accents for OpenType fonts in math
-  mode via the `\Umathaccent` primitive. Indeed, as my testing
-  showed that this gave non-satisfactory results both with XeTeX
-  and LuaTeX regarding the horizontal placement of the accents,
-  the main option `mathaccents` acts only on 8bits encoded fonts.
-  
-* bugfix: the `\Mathastext` without optional argument forgot to
-  repeat some font-encoding dependent initialization set-up done
-  originally during package loading.
-
-* bugfix: under the `subdued` option macros `\MTmathactiveletters`
-  or `\MTnonlettersobeymathxx` now act like no-ops if
-  issued explicitly while in the `normal` or `bold` math version.
-  Formerly, this was not the case and could cause bugs such as a
-  disappearing minus sign in math mode.
-
-* bugfix: the letter `h` used in the `\hbar` obeyed the extra
-  skips as set-up by `\MTsetmathskips`, badly interfering with the
-  horizontal positioning of the bar accent. They are now ignored
-  (as well as the added italic correction).
-
-%</readme>
+%</readme|changelog>
 %<*changelog>
-MATHASTEXT CHANGE LOG
-=====================
-
 1.3w \[2019/11/16\]
 ----
 
@@ -676,7 +615,7 @@
 
 * the amsmath `\resetMathstrut@`, which is incompatible with a
   mathematically active parenthesis ( is now modified only if
-  necessary (i.e. only when `\MTnonlettersobeymathxx` is issued) and
+  necessary (i.e.\@ only when `\MTnonlettersobeymathxx` is issued) and
   is restored to its original value if not needed anymore (i.e.
   after `\MTnonlettersdonotobeymathxx`, as for example when
   switching to the normal version under option subdued).
@@ -967,7 +906,7 @@
 \ProvidesFile{mathastext.tex}%
 [\MSTpkgdate\space v\MSTpkgversion\space 
        driver file for mathastext documentation (JFB)]%
-\PassOptionsToClass{a4paper,fontsize=11pt}{scrdoc}
+\PassOptionsToClass{a4paper,fontsize=11pt}{scrartcl}
 \chardef\Withdvipdfmx 1 % replace 1<space> by 0<space> for using latex/pdflatex
 \chardef\NoSourceCode 0 % replace 0<space> by 1<space> for no source code
 \input mathastext.dtx
@@ -1078,6 +1017,11 @@
 for text fonts under \LuaLaTeX, which may be related with this specific issue
 here).
 
+Update (tested 2022/10/29, with 1.3x and up-to-date TL2022): it appears that
+most, perhaps even all, of the remarks in the preceding note are now obsolete
+as I do not see obvious differences between outputs from \XeLaTeX{} versus
+\LuaLaTeX{} but I did not seriously compare, only quickly done.
+
 \newcommand\TEST[1]{\MTversion{#1}\def\tmpa{#1}%
   \def\tmpb{normal}\def\tmpc{bold}%
   \ifx\tmpa\tmpb\else\ifx\tmpa\tmpc\else \MTnonlettersobeymathxx
@@ -1469,7 +1413,93 @@
 %<*dtx>
 ^^Afi^^Aendgroup % end of big \iffalse block including generated files
 % customization should be done in mathastext.tex, not here.
-\documentclass[abstract]{scrdoc}
+\documentclass[abstract]{scrartcl}
+\makeatletter
+%%% START OF CUSTOM doc.sty LOADING (May 21, 2022 in xint.dtx)
+%%% (October 29, 2022 here, comments trimmed)
+% Let's load the doc=V2 version to avoid having to work around
+% hypdoc loading interfering with my use of hyperref.
+\ifdefined\IfFormatAtLeastTF
+  \IfFormatAtLeastTF{2022/06/01}%
+  {%
+    \IfFileExists{doc-2021-06-01.sty}%
+     {\usepackage{doc}[=v2]}%
+% Why on earth do I lose my time doing this?
+     {\GenericError
+          {(mathastext build doc)\@spaces}%
+          {mathastext build error: %
+      Your LaTeX installation seems to be broken, format is\MessageBreak
+      2022-06-01 or later but `doc' package in its `v2' version\MessageBreak
+      seems to not be available. \space Will try with `doc' but if\MessageBreak
+      its `v3' is used there will be an option clash error\MessageBreak
+      regarding hyperref.}%
+          {}%
+          {Please make sure `doc' package matches your LaTeX format.}%
+      \usepackage{doc}%
+     }%
+  }%
+  {\usepackage{doc}}%
+\else
+\usepackage{doc}
+\fi
+% Let's emulate here the little I appear to need from ltxdoc.cls and
+% srcdoc.cls.
+%
+\AtBeginDocument{\MakeShortVerb{\|}}
+\DeclareFontShape{OT1}{cmtt}{bx}{n}{<-> ssub * cmtt/m/n}{}
+\DeclareFontFamily{OMS}{cmtt}{\skewchar\font 48}  % '60
+\DeclareFontShape{OMS}{cmtt}{m}{n}{<-> ssub * cmsy/m/n}{}
+\DeclareFontShape{OMS}{cmtt}{bx}{n}{<-> ssub * cmsy/b/n}{}
+\DeclareFontShape{OT1}{cmss}{m}{it}{<->ssub*cmss/m/sl}{}
+\ifnum\NoSourceCode=1
+  \OnlyDescription
+\fi
+\CodelineNumbered
+\EnableCrossrefs
+% \setcounter{StandardModuleDepth}{1} % we don't use this mechanism currently
+\def\cmd#1{\cs{\expandafter\cmd at to@cs\string#1}}
+\def\cmd at to@cs#1#2{\char\number`#2\relax}
+% Here I am loading doc=v2 but formerly I was using ltxdoc via scrdoc
+% which I dropped at release 1.4l (2022-05-29) and without much
+% thinking I had kept this.
+\DeclareRobustCommand\cs[1]{\texttt{\bslash#1}}
+% As I may have the * active, or macro names with _ or ^, I should
+% add \detokenize.  But see below for a redefinition anyhow.
+%
+% More urgent is that I am also using hyperref and this definition gives wrong
+% bookmarks if \cs is used in section titles.  As I had very very few usags of
+% \cs in the whole of xint.dtx, it took me a while to realize the problem
+% here.  Turns out that doc=v3 by default loads hypdoc which includes this
+% configuation for hyperref compatibility:
+\AtBeginDocument{%
+\pdfstringdefDisableCommands{\def\cs#1{\textbackslash\detokenize{#1}}}%
+}%
+% As I have not loaded hyperref yet I must delay it to AtBeginDocument.
+\providecommand\marg[1]{%
+  {\ttfamily\char`\{}\meta{#1}{\ttfamily\char`\}}}
+\providecommand\oarg[1]{%
+  {\ttfamily[}\meta{#1}{\ttfamily]}}
+\providecommand\parg[1]{%
+  {\ttfamily(}\meta{#1}{\ttfamily)}}
+% \@addtoreset{CodelineNo}{part}% No need for this here
+% \def\partname{File}% \partname is "fixed" somewhere further down anyhow
+% No need for this, anyhow I don't build the indices
+%
+% There is very little we seem to need from the scrdoc extras: page geometry
+% is set by geometry package and a4paper option from xint.tex file.  So it
+% seems I only need the hologo loading:
+\usepackage{hologo}
+\DeclareRobustCommand*{\eTeX}{\hologo{eTeX}}%
+\DeclareRobustCommand*{\pdfLaTeX}{\hologo{pdfLaTeX}}%
+\DeclareRobustCommand*{\LuaTeX}{\hologo{LuaTeX}}%
+\DeclareRobustCommand*{\LuaLaTeX}{\hologo{LuaLaTeX}}%
+\DeclareRobustCommand*{\XeTeX}{\hologo{XeTeX}}%
+\DeclareRobustCommand*{\XeLaTeX}{\hologo{XeLaTeX}}%
+%
+\makeatother
+%%% end of ltxdoc+srcdoc emulation from June 2022 xint.dtx,
+%%% copied over almost verbatim to mathastext.dtx on 2022/10/29.
+
 \ifnum\NoSourceCode=1 \OnlyDescription\fi
 \makeatletter
 \ifnum\Withdvipdfmx=1
@@ -1480,7 +1510,7 @@
    \PassOptionsToPackage{dvipdfm}{geometry}
    \PassOptionsToPackage{bookmarks=true}{hyperref}
    \PassOptionsToPackage{dvipdfmx-outline-open}{hyperref}
-   \PassOptionsToPackage{dvipdfmx-outline-open}{bookmark}
+%   \PassOptionsToPackage{dvipdfmx-outline-open}{bookmark}
    %
    \def\pgfsysdriver{pgfsys-dvipdfm.def}
 \else
@@ -1491,7 +1521,12 @@
 \usepackage[latin1]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{amsmath}\allowdisplaybreaks
-\usepackage{lmodern}
+\usepackage{mlmodern}
+\DeclareEncodingSubset{TS1}{mlmtt}{0}
+% cf https://github.com/latex3/latex2e/issues/905
+% How to **quickly** know whether 0 is ok ?
+% Not willing to waste half an hour, more probably
+% an hour on this (already done, almost).
 \usepackage{enumitem}
 
 \DeclareSymbolFont{largesymbols}{OMX}{txex}{m}{n}
@@ -1506,7 +1541,7 @@
 \definecolor{DarkMagenta}{RGB}{139,0,139} 
 \definecolor{joli}{RGB}{225,95,0}
 \usepackage{xspace}
-\usepackage{metalogo}
+%\usepackage{metalogo}% on utilise dej\xE0 hologo
 \usepackage{framed}
 
 \usepackage[hscale=0.66]{geometry}
@@ -1529,32 +1564,8 @@
 
 \usepackage{bookmark}
 
-% ---- \centeredeline: OUR OWN LITTLE MACRO FOR CENTERING LINES (fait
-% initialement pour la documentation de mes autres paquetages etoc et xint)
+\usepackage{centeredline}
 
-% 7 mars 2013
-% This macro allows to conveniently center a line inside a paragraph and still
-% use therein \verb or other commands changing catcodes.
-% A proposito, the \LaTeX \centerline uses \hsize and not \linewidth ! 
-% (which in my humble opinion is bad)
-
-% \ignorespaces ajout\xE9 le 9 juin. Cela m'aurait \xE9vit\xE9 des dizaines de % lorsque
-% plusieurs \centeredline se suivent (car on reste en mode horizontal si on y
-% est au d\xE9but).
-
-\makeatletter
-\newcommand*\centeredline {%
-      \ifhmode \\\relax
-        \def\centeredline@{\hss\egroup\hskip\z at skip\ignorespaces }%
-      \else 
-        \def\centeredline@{\hss\egroup }%
-      \fi
-      \afterassignment\@centeredline
-      \let\next=}
-\def\@centeredline 
-    {\hbox to \linewidth \bgroup \hss \bgroup \aftergroup\centeredline@ }
-\makeatother
-
 \DeclareRobustCommand\cs[1]% j'utilisais avant 189, j'ai essay\xE9 23
         {{\ttfamily\hyphenchar\font=127 \char`\\#1}}
 \DeclareRobustCommand\csb[1]%
@@ -1581,40 +1592,78 @@
 
 \let\oldexists\exists\let\oldforall\forall
 
-\usepackage[italic,subdued,asterisk,defaultmathsizes,symbolmisc,symbolre,
-LGRgreek]{mathastext}
+\usepackage[subdued,%
+            asterisk,%
+            defaultmathsizes,%
+            symbolmisc,symbolre,%
+            LGRgreek]{mathastext}
 
-\Mathastext[italic]
-\MTlettershape{\updefault}
+% This version will use the mlmodern font which is current
+% last loaded font package in preamble
 \Mathastext[upright]
 
-\MTupgreek
+% The mlmodern font with letters in it shape
+\MTlettershape{it}
+\Mathastext[italic]
+
+\MTlettershape{n}% \updefault would create needless substitution and Font Warning
+\MTupgreek % le lettershape suffirait mais plus clair
 \MTgreekfont{cmtt}
-\MTDeclareVersion[n]{lmvtt}{T1}{lmvtt}{m}{n}
+\MTfamily{lmvtt}
+\Mathastext[lmvtt]
 
-\MTlettershape{\itdefault}
+\usepackage{newcent}% attention that it modifies all three of \rmdefault,
+                  % \sfdefault and \ttdefault
+\MTfamily{\rmdefault}
+\MTlettershape{it}
+\MTitgreek\MTupGreek
+\Mathastext[newcent]
 
-\usepackage{newcent}
-\Mathastext[newcent]
 \MTseries{b}
 \Mathastext[boldnewcent][bold]
 
+\usepackage{times}% attention that it modifies all three of \rmdefault,
+                  % \sfdefault and \ttdefault
+\MTfamily{\rmdefault}
+\MTlettershape{it}
 \MTseries{m}
+\MTgreekfont{txr}
 \MTitgreek\MTupGreek
-\MTgreekfont{txr}
-\usepackage{times}
 \Mathastext[times]
-\MTlettershape{\updefault}
+
+\MTlettershape{n}
+\MTupgreek
 \MTseries{bx}
 \Mathastext[timesbold][bold]
 
-\MTlettershape{\itdefault}
+\usepackage[scaled]{helvet}
+\MTfamily{\sfdefault}
+\MTlettershape{it}
 \MTseries{m}
-\usepackage[scaled]{helvet}
-\renewcommand\familydefault\sfdefault
+\MTitgreek
 \MTgreekfont{cmss}
 \Mathastext[helvet]
 
+\MTfamily{LibertinusSerif-TLF}
+\MTlettershape{n}
+\MTseries{m}
+\MTgreekfont{LibertinusSerif-TLF}
+\MTupgreek
+\Mathastext[libertinus]
+\MTseries{sb}
+% attention je veux pas courier quand je ferai \texttt avec cette version
+% donc
+\renewcommand{\ttdefault}{mlmtt}
+\Mathastext[libertinussemibold]
+
+\renewcommand\familydefault\sfdefault% attention that it is phv at this stage
+
+% pas n\xE9cessaire car je fais \MTversion{normal} apr\xE8s \begin{document}
+% \renewcommand\rmdefault{mlmr}%   counteract effect of various font packages
+%                              %   earlier
+% \renewcommand\sfdefault{mlmss}%
+% \renewcommand\ttdefault{mlmtt}%
+
 \usepackage{etoc}
 
 % - \xE0 partir de 1.3j: _tr\xE8s tr\xE8s_ peu satisfaisant mais pas envie d'y passer
@@ -1661,16 +1710,27 @@
 % mais bon, en fait je ne les utilise pas.
 
 \begin{document}
+% \makeatletter\show\mv at normal\makeatother
+% contient
+% \getanddefine at fonts
+% \symmtgreekup \LGR/mlmr/m/n \getanddefine at fonts \symmtgreekit \LGR/mlmr/m/it
+% 
+% donc au premier mode math\xE9matique (par \footnote je suppose)
+%
+% LaTeX Font Info:    Trying to load font information for LGR+mlmr on input line 
+% 1712.
+% LaTeX Font Info:    No file LGRmlmr.fd. on input line 1712.
+
 \MTversion{normal}
 \renewcommand\familydefault\sfdefault
 \pdfbookmark[1]{Title page}{TOP}
 
-\frenchspacing
+\nonfrenchspacing
 
 \begin{center}
   {\normalfont\LARGE The \mst  package}\\
 \textsc{\small Jean-Fran\xE7ois Burnol}\par
-  \footnotesize \ttfamily 
+  \footnotesize \ttfamily \frenchspacing
   jfbu (at) free (dot) fr\par
   \let\thefootnote\empty
   Package version: \MSTpkgversion\ (\MSTpkgdate)%
@@ -1744,11 +1804,16 @@
 
 \section{What \mst does}
 
-For changes see \autoref{sec:changelog}.
+If you have used the package before please make sure to check first
+\autoref{sec:changelog} where all changes across releases are recorded.
 
-\subsection{Examples}
+\subsection{Aim of this package and basic usage}
 
-\mst's basic aim is to have the same font for text and mathematics. With
+The initial ideology of \mst was to produce mathematical texts with
+a very uniform look, not separating math from text as strongly as
+is usually done. 
+
+\mst's basic aim is thus to have the same font for text and mathematics. With
 hundreds of free text fonts packaged for \LaTeX{} and only a handful of
 math ones, chances are your favorite text font does not mix so well with
 the available math ones; \mst may then help. Note that \mst was initially
@@ -1755,11 +1820,303 @@
 developed for the traditional \TeX{} fonts and engines, and that compatibility
 with Unicode engines and OpenType fonts is partial.
 
-Here is an example with
-Latin Modern typewriter proportional:
+% As soon as one tries out other fonts for text than the Computer Modern
+% ones one realizes how extremely ``thin'' are the default \TeX{} fonts
+% for mathematics: they definitely do not fit well visually with the
+% majority of text fonts. With \mst one can get one's (simple\dots{} or
+% not) mathematics typeset in a manner more compatible with the text,
+% without having to look for an especially designed font.
 
-{\advance\leftskip.1\linewidth\advance\rightskip.1\linewidth
- \MTversion{lmvtt}
+Here is a minimal example of what may go into
+the preamble:
+\begin{verbatim}
+\usepackage[T1]{fontenc}
+\usepackage{times}
+\usepackage[italic]{mathastext}
+\end{verbatim}
+The package records which font is set up for text, at the time it is
+loaded,
+%\footnote{alternatively it is possible to configure the text font after
+  % loading \mst, and then the command \cs{Mathastext} will accomplish the
+  % necessary changes to the font for letters, digits and a few extra ascii
+  % symbols in math mode.}
+and
+then arranges things in order for this text font to be used in math mode as
+well. So, with the preamble as above
+all letters, digits, and punctuation signs inside math mode will then be
+typeset in Times.\footnote{let's do as if we did not know the excellent
+  |txfonts| package which employs Times for text and has a very complete
+  math support, including many additional mathematical glyphs in
+  comparison to the CM fonts. \emph{This was written many years ago, nowadays,
+  \emph{\texttt{newtx}} is the successor of \emph{\texttt{txfonts}}.}}
+The exact list of characters concerned by
+\mst is a subset of the basic |ASCII| set:
+
+  \begin{framed}\centering\MTversion{timesbold}%
+    \begingroup\color{joli}%
+      $abcdefghijklmnopqrstuvwxyz$\par
+      $ABCDEFGHIJKLMNOPQRSTUVWXYZ$\par
+      $0123456789$\par
+      \DeleteShortVerb{\|}% global!
+      ${!}\,{?}\,{*}\,{,}\,{.}\,{:}\,{;}\,{+}\,{-}\,{=}\,{(}\,{)}\,
+       {[}\,{]}\,{/}\,{\#}\,{\$}\,{\%}\,{\&}\,{<}\,{>}\,{|}\,{\{}\,{\}}
+       \textrm{ \color{black}\mdseries and }{\backslash}$%
+   \endgroup\par\MakeShortVerb{\|}%
+  \end{framed}
+
+As one can see, this is a very limited list! Some possibilities exist
+regarding Greek letters and will be described later. 
+
+\subsection{Miscellanea}
+
+Please note that most of this section was written many years
+ago.  But it should still be valid!
+%
+\begin{description}
+\item[the en-dash as minus sign:] very often the -
+  character from the text font does not give a good
+  minus sign. So by default, the package uses the
+  en-dash sign \textendash{}. Use \xA7noendash\xA7 to
+  deactivate it. Starting with version |1.12| of the
+  package this `en-dash as minus' should work in all
+  encodings, including Unicode (if |fontspec| has been
+  loaded); see also |unicodeminus| for OpenType fonts.
+
+\item[amsmath:] \strut the behaviour of the
+  \cs{DeclareMathOperator}\RightNote{1.3n} command
+  of |amsmath| is modified by \mst for it to use the correct font.
+  Additionally, release |1.3n| of \mst at long last also handles an extra
+  operation done by |amsmath| for |'.:/-*| to be used in operator names
+  without the extra math spacing.%
+%
+\footnote{To the experts: there is a long story here that \cs{newmcodes@}
+  hardcodes the font, that it was not compatible with Unicode engines, that
+  during some time (2013-2016) \texttt{lualatex-math} fixed that and very
+  recently |amsopn.sty 2016/03/08 v2.02| also, so now \texttt{lualatex-math
+    1.6} does nothing as it is already fixed ``upstream'' in |amsopn.sty|, but
+  anyhow in both cases, this still hardcoded the font, so finally \mst does
+  the right thing from its point of view. See the code comments for more,
+  there is an issue here with \LuaLaTeX\ not applying the curly right quote
+  contrarily to \XeLaTeX.}
+%
+This customization is suppressed in \xA7subdued\xA7 mode for the |normal| and |bold|
+math versions.
+
+\item[hbar:] the default \LaTeX\ definition of \xA7\hbar\xA7 would in our context
+  make use of the |h| of the current math font (so for us, it is also the text
+  font, perhaps in italic shape), but with a bar accross the |h| from the
+  original default math font for letters (usually |cmmi|). We redefine
+  \cs{hbar} to use the text font macron accent (|\=|) as a mock math accent
+  (this takes into account the \xA7italic\xA7 option and is compatible with
+  subscripts and superscripts).
+
+  Since |1.12| \mst when dealing with a Unicode font sets the \cs{hbar}
+  to be the character from the font having hexadecimal codepoint |U+0127|.
+
+  Since |1.3u| the general 8bits font encoding is
+  supported\RightNote{1.3u} (see discussion of the |mathaccents| option
+  at end of this list for the shared limitations). Brief testing with
+  various usual \TeX\ fonts shows that the vertical positioning of
+  the bar isn't satisfying. It is planned to either add a parameter to
+  adjust it or to modify altogether the mode of construction of the |\hbar|.
+
+  Use \xA7nohbar\xA7 to tell \mst not do provide its own |\hbar|.
+
+
+\item[dotless i and j:] by default the package redefines \cs{imath} and
+  \cs{jmath} to give (in math mode) the dotless i and j (if it exists at
+  all) from the text font.%
+%
+\footnote{\RightNote{1.3t}Since \texttt{1.12} it also redefined \cs{i} and
+  \cs{j} for usability both in text and math modes, but this has been
+  dropped at \texttt{1.3t}. Breaking change!}
+
+\item[asterisk:] versions of \mst earlier than |1.2d [2013/01/02]|
+  did not do anything
+  with the \cs{ast} control sequence but did pick the asterisk
+  $*$ in the document text font, and this often was a rather
+  silly thing as the text asterisk is generally in a raised
+  position. Furthermore, the $*$ lost its status of a binary
+  operator and was treated as an `ordinary' symbol. An option
+  |noasterisk| turned this feature off. Starting with |1.2d|,
+  the |noasterisk| option is deprecated and the new default is
+  to do nothing. But when option \xA7asterisk\xA7 is received by the
+  package, then both \cs{ast} and $*$ are simultaneously
+  modified to use (as binary operators) the text asterisk,
+  slightly lowered. The amount of lowering\footnote{with the
+    option \texttt{symbolmisc}, the asterisk is picked from
+    the Symbol font, and the amount of lowering is
+    non-customizable; however if a math alphabet command is
+    used, the asterisk is then again from a text font and the
+    lowering will be as specified by \cs{MTlowerast}.} is
+  decided by the mandatory argument to the command
+  \csb{MTlowerast}\marg{dimen}. The package initially does
+  \cs{MTlowerast}|{.3\height}|. Doing \cs{MTlowerast}|{.5ex}| is
+  not a good idea as it does not scale properly in the script
+  and scriptscript styles. With an argument given as a
+  multiple of |\height|, the asterisk will behave as expected
+  in subscripts and subscripts of subscripts. But $*$ is now
+  `mathematically active'\thinspace\footnote{in a hopefully
+    safe way, for example {\ttfamily\$\string\label\{eq*1\}\$}
+    is ok.} and |$R^*$| or |$R^\ast$| \emph{must} be input as
+  |$R^{*}$| and |$R^{\ast}$|. Furthermore, they will obey the
+  math alphabet commands.
+
+\item[\XeTeX{} and \LuaLaTeX{}:] regarding the en-dash and the
+  dotless i and j, the package is now under the Unicode engines
+  compatible not only with the ``Unicode'' \LaTeX\ font encodings
+  EU1 (\XeTeX, old fontspec), EU2 (\LuaLaTeX, old fontspec), TU
+  (\XeTeX\ and \LuaLaTeX, modern fontspec), but also with
+  traditional 8bits-encodings declared as a |fontenc|
+  option.\RightNote{1.3u} Formerly, with a Unicode engine,
+  only OT1, T1 and LY1 were supported by \mst as the 8bit encoding
+  of the document text font, regarding the minus as en-dash and
+  the dotless i and j.
+
+ \item[fontspec:] one more note to users of
+\XeTeX{}/\LuaLaTeX{} with |fontspec|:\newline 
+\fbox{it has to be
+loaded {with the option} |no-math|}, 
+and \emph{before} \mst.
+
+\item[vec accent:] The default \cs{vec} accent is not
+  appropriate for upright letters, so  \mst
+  provides a \cs{fouriervec} which takes its glyph in a
+  Fourier font, and an Ersatz \cs{pmvec} 
+  which is reasonably good looking on upright letters
+  and works with the \cs{rightarrow} glyph. Contrarily
+  to version |1.0|, the default \cs{vec} is not
+  overwritten with \cs{fouriervec}. And contrarily to
+  version |1.1|, one now needs to pass the option
+  \xA7fouriervec\xA7 to have the math accent \cs{fouriervec}
+  defined by the package.%
+%
+\footnote{this costs a math family, as I never came back to this to try to
+  do otherwise.}
+
+
+\item[math alphabets:] 
+  \begin{itemize}
+  \item We define a new math alphabet command
+    \cs{mathnormalbold} which gives direct access to
+    the bold version of the \cs{mathnormal} alphabet
+    (rather than using either the \cs{bm} command from
+    the |bm| package or the \cs{boldsymbol} command
+    from the |amsbsy| package). As it does not
+    exist in the default \LaTeX{} math font set-up, this
+    alphabet is \emph{not} subjected to the {subdued option} action.
+  \item The other math alphabet changing commands
+    defined by the package are \cs{MathEulerBold},
+    \cs{MathEuler} and \cs{MathPSymbol}.
+  \item \cs{mathnormal}, \cs{mathrm}, \cs{mathbf},
+  \cs{mathit}, \cs{mathsf} and \cs{mathtt} are modified
+  to make reference to the document text fonts (this
+  can be disabled by suitable package options).
+\item \RLNote{new:}{1.3x}\xA7\mathgreekup\xA7 and \xA7\mathgreekit\xA7 are math alphabets
+  modifying the shape of Greek letters, only available under
+  \xA7LGRgreek\xA7 (or \xA7LGRgreeks\xA7) option.
+\item version |1.2| of \mst has extended the scope of the math
+  alphabets to apply to non-alphabetical characters and to
+  operator names. This respects the automatic white spaces
+  added by \TeX{} around math symbols.
+\item the\RightNote{1.3i}
+  extra skips around letters (see \autoref{sec:mathskips} and
+  \autoref{sec:ic}) are removed in the scope of the math alphabets.
+  \end{itemize}
+
+\item[math accents:] if option \xA7mathaccents\xA7 is used then \mst attempts to let
+  the math accents |\acute|, |\grave|, etc... use the suitable glyphs from the
+  text font. Prior to |1.3u| only |OT1|, |T1|, and |LY1| were supported (via
+  hardcoded slots). It should now work with any 8bits font
+  encoding\RightNote{1.3u} having been declared as an option to the
+  |fontenc| package (and of course providing the ten needed text accents which
+  will mock math accents).%
+  %
+  \footnote{The code will raise low-level \TeX\ errors if the user attempts to
+    use an 8bits font encoding whose \LaTeX\ definition file is lacking the
+    suitable uses of \cs{DeclareTextAccent} or if the low level \LaTeX\ macro
+    implementation of text accents changes significantly; in such cases please
+    report the problem to the author, so that it can be documented in future
+    releases!}
+
+  The |\vec| math accent is not handled here, as it is not available in the
+  usual 8bits font encodings. See the \xA7fouriervec\xA7 option or the \xA7\pmvec\xA7
+  command.
+
+  The math accents obey the \xA7subdued\xA7 option\RightNote{1.3u}
+  and will change in sync with the \mst-ified text font used in
+  each non subdued math version.
+
+  (Very) brief testing during |1.3u| development with \XeTeX\ and \LuaTeX\ let
+  the author conclude that usage with the \cs{Umathaccent} primitive of an
+  OpenType accent glyph slot (which in the text font is for usage as a
+  postpended combining character) gives definitely bad horizontal placements
+  for both engines (each in its own way). Thus, the redefinitions of accents
+  for a \mst declared math version with an OpenType font is by default
+  canceled.%
+%
+\footnote{I.e., the \cs{grave} etc... control sequences will, in math versions
+  with an OpenType \mst-ified font, expand to macros holding their initial
+  meanings, unmodified by \mst, which was in force at the
+  |\string\begin\string{document\string}|.}
+%
+  Use \xA7unimathaccents\xA7 to force usage of the OpenType font text
+  accents glyph slots with the \cs{Umathaccent} primitive. Expert users are
+  invited to check out the code and to contribute suggestions if some extras
+  can improve it.
+ 
+\item[varying font encodings:] the very first release of \mst dealt with only
+  one font; very soon thereafter it acquired the capacity to define multiple
+  math versions, each one using its own text font. But, as was documented at
+  this location formerly, various encoding dependent decisions were done once
+  and for all during package loading.
+
+  This meant in particular that the minus sign (using the text endash), the
+  dotless |i| and |j|, the |\hbar|, the math accents were all set up for only
+  one unique font encoding. It was thus recommended that all math versions
+  share the same font encoding.
+
+  The |1.3u| release has lifted this restriction.\RightNote{1.3u}
+\end{description}
+
+
+\subsection{Examples}
+\label{sec:examples}
+
+Here is another simple example:
+\begin{verbatim}
+\usepackage{libertinus-type1}
+\usepackage[italic,LGRgreek,defaultmathsizes]{mathastext}
+\end{verbatim}
+The \xA7LGRgreek\xA7 option is there to take advantage that the |libertinus-type1| package%
+%
+\footnote{Bob \textsc{Tennent}, \emph{Support for using Libertinus fonts with
+    \LaTeX/\pdfLaTeX}, \url{https://ctan.org/pkg/libertinus-type1}.}
+%
+also provides Greek letters in LGR encoding, which can thus be used by \mst in
+math mode.  And we do here as if we did not know about the existence of the
+|libertinust1math| package!%
+%
+\footnote{Michael \textsc{Sharpe}, \emph{A Type 1 font and \LaTeX\ support for Libertinus
+    Math}, \url{https://ctan.org/pkg/libertinust1math}.}
+%
+This would have been the obvious choice, but then one wouldn't need \mst and I
+couldn't even start this documentation.
+
+
+More sophisticated preambles will use multiple times the \xA7\Mathastext\xA7 command
+in the preamble with its optional argument \oarg{math\_version} in order to
+define \emph{math versions} corresponding to a given font configuration.
+These \mst-enriched math versions are then activated in the document body via
+the \xA7\MTversion\xA7\marg{math\_version} command, which modifies \emph{both} the text
+font and the math font.
+
+
+We now give some examples with a verbatim copy of the preamble code
+corresponding to them, as can be found in the source of this documentation.
+The detailed option and command descriptions will be given later.
+
+\def\DeepestMathematicsText{%
 Let $(X,Y)$ be two functions of a variable $a$. If they obey  the differential
 system  $(VI_{\nu,n})$: 
   \begin{align*} 
@@ -1783,73 +2140,133 @@
 parameters
 $(\alpha,\beta,\gamma,\delta) = (\frac{(\nu+n)^2}2,
 \frac{-(\nu+n+1)^2}2, \frac{n^2}2, \frac{1 - n^2}2)$.\par
+Test of uppercase Greek in math: $\Alpha\Beta\Gamma\Delta\Xi\Omega$.\par
 }
-Notice that the Latin (and Greek letters) are in upright shape. But perhaps we
-insist on obeying the standardized habits:
 
+First of all, the package was loaded using this:
+\begin{verbatim}
+\usepackage[subdued,%
+            asterisk,%
+            defaultmathsizes,%
+            symbolmisc,symbolre,%
+            LGRgreek]{mathastext}
+\end{verbatim}
+In the definitions of the \mst-enriched \emph{math versions} we keep commands
+which may have been redundant in the original preamble, because they were
+issued earlier for a previous math version definition.
 
+Let's start with Latin Modern typewriter proportional.  Its usage was
+configured in the preamble using this:
+\begin{verbatim}
+\MTlettershape{n}
+\MTupgreek
+\MTgreekfont{cmtt}
+\MTfamily{lmvtt}
+\Mathastext[lmvtt]
+\end{verbatim}
+Its usage is triggered using \centeredline{|\MTversion{lmvtt}|} in the
+document. Here is an example:
+
 {\advance\leftskip.1\linewidth\advance\rightskip.1\linewidth
-\MTversion{times}
-Let $(X,Y)$ be two functions of a variable $a$. If they obey  the differential
-system $(VI_{\nu,n})$: 
-  \begin{align*} 
-  a\frac{d}{da} X &= \nu
-  X - (1 - X^2)\frac{2n a}{1 - a^2}\frac{aX+Y}{1+a XY} \\  
-a\frac{d}{da} Y &= -(\nu+1) Y
- + (1 - Y^2)\frac{2n a}{1 - a^2}\frac{X+aY}{1+a XY} 
-  \end{align*}
-then the quantity $q = a \frac{aX+Y}{X+aY}$
-satisfies as function of $b= a^2$  the $P_{VI}$ differential equation:
-\begin{equation*}
-\begin{split}
-  \frac{d^2 q}{db^2} = \frac12\left\{\frac1q+\frac1{q-1}
-  +\frac1{q-b}\right\}\left(\frac{dq}{db}\right)^2 - \left\{\frac1b+\frac1{b-1}
-  +\frac1{q-b}\right\}\frac{dq}{db}\\+\frac{q(q-1)(q-b)}{b^2(b-1)^2}\left\{\alpha+\frac{\beta
-    b}{q^2} + \frac{\gamma (b-1)}{(q-1)^2}+\frac{\delta
-    b(b-1)}{(q-b)^2}\right\}
-\end{split}
-\end{equation*}
-with
-parameters
-$(\alpha,\beta,\gamma,\delta) = (\frac{(\nu+n)^2}2,
-\frac{-(\nu+n+1)^2}2, \frac{n^2}2, \frac{1 - n^2}2)$.\par
+ \MTversion{lmvtt}
+ \DeepestMathematicsText
 }
 
-  This was typeset using the Times font (available in any \TeX{}
-  distribution). Let us now be a bit more original and have our mathematics
-  with italic letters from the sans serif font Helvetica, while the letters in
-  text use New Century Schoolbook.
+Both the Latin and Greek letters are upright, in conformity to the
+way the |lmvtt| version was defined.
 
+\bigskip
 
+Now with the fonts from the |libertinus-type1| distribution%
+%
+\footnote{Bob \textsc{Tennent}, \emph{Support for using Libertinus fonts with
+    \LaTeX/\pdfLaTeX}, \url{https://ctan.org/pkg/libertinus-type1}.}.
+%
+The preamble code is:
+\begin{verbatim}
+\MTfamily{LibertinusSerif-TLF}
+\MTlettershape{n}
+\MTseries{m}
+\MTgreekfont{LibertinusSerif-TLF}
+\MTupgreek
+\Mathastext[libertinus]
+\MTseries{sb}
+\Mathastext[libertinussemibold]
+\end{verbatim}
+Its usage in the document body for the example below is triggered via
+\centeredline{|\MTversion[libertinus]{libertinussemibold}|} This syntax
+modifies the text fonts to be those which were defined to hold for the
+\mst-math version passed as optional argument, and sets the math fonts
+according to the mandatory argument.  Hence the math mode uses semibold font
+but the text font uses the normal weight.
+
 {\advance\leftskip.1\linewidth\advance\rightskip.1\linewidth
-\MTversion[newcent]{helvet}
-Let $(X,Y)$ be two functions of a variable $a$. If they obey  the differential
-system $(VI_{\nu,n})$: 
-  \begin{align*} 
-  a\frac{d}{da} X &= \nu
-  X - (1 - X^2)\frac{2n a}{1 - a^2}\frac{aX+Y}{1+a XY} \\  
-a\frac{d}{da} Y &= -(\nu+1) Y
- + (1 - Y^2)\frac{2n a}{1 - a^2}\frac{X+aY}{1+a XY} 
-  \end{align*}
-then the quantity $q = a \frac{aX+Y}{X+aY}$
-satisfies as function of $b= a^2$  the $P_{VI}$ differential equation:
-\begin{equation*}
-\begin{split}
-  \frac{d^2 q}{db^2} = \frac12\left\{\frac1q+\frac1{q-1}
-  +\frac1{q-b}\right\}\left(\frac{dq}{db}\right)^2 - \left\{\frac1b+\frac1{b-1}
-  +\frac1{q-b}\right\}\frac{dq}{db}\\+\frac{q(q-1)(q-b)}{b^2(b-1)^2}\left\{\alpha+\frac{\beta
-    b}{q^2} + \frac{\gamma (b-1)}{(q-1)^2}+\frac{\delta
-    b(b-1)}{(q-b)^2}\right\}
-\end{split}
-\end{equation*}
-with
-parameters
-$(\alpha,\beta,\gamma,\delta) = (\frac{(\nu+n)^2}2,
-\frac{-(\nu+n+1)^2}2, \frac{n^2}2, \frac{1 - n^2}2)$.\par
+ \MTversion[libertinus]{libertinussemibold}
+ \DeepestMathematicsText
 }
 
+\bigskip
+
+Now with a Times clone.  We will configure Latin letters to be in italic
+shape, and Greek letters to be italic for lowercase and upright for uppercase:
+\begin{verbatim}
+\usepackage{times}% it modifies the \{rm,sf,tt}default's
+\MTfamily{\rmdefault}
+\MTlettershape{it}
+\MTseries{m}
+\MTgreekfont{txr}
+\MTitgreek\MTupGreek
+\Mathastext[times]
+% \MTversion{times} will change not only math but also text, so it
+% will re-enact the \rmdefault, \sfdefault, \ttdefault from loading times.sty
+\end{verbatim}
+We now use this in the document body via
+\centeredline{|\MTversion{times}|}
+
+{\advance\leftskip.1\linewidth\advance\rightskip.1\linewidth
+ \MTversion{times}
+ \DeepestMathematicsText
+}
+
+\bigskip
+Let us be a bit more original and have our mathematics with italic letters
+from the sans serif font Helvetica, while the letters in text use New Century
+Schoolbook.  Also we want Greek letters (both lowercase and uppercase) to be
+in italic shape. The preamble code was:
+\begin{verbatim}
+\usepackage{newcent}% attention that it modifies all three of \rmdefault,
+                    % \sfdefault and \ttdefault
+\MTfamily{\rmdefault}
+\MTlettershape{it}
+% \MTitgreek\MTupGreek % our demo does not use newcent for math anyway
+\Mathastext[newcent]
+
+\usepackage[scaled]{helvet}
+\MTfamily{\sfdefault}
+\MTlettershape{it}  % redundant here
+\MTseries{m}
+\MTitgreek          % make both lowercase and uppercase Greek italic
+\MTgreekfont{cmss}
+\Mathastext[helvet]
+\end{verbatim}
+And the next demo is configured in the document body via
+\centeredline{|\MTversion[newcent]{helvet}|}
+
+{\advance\leftskip.1\linewidth\advance\rightskip.1\linewidth
+ \MTversion[newcent]{helvet}
+ \DeepestMathematicsText
+}
+
+\bigskip
 And after all that, we may wish to return to the default math typesetting (let's
-shorten the extract here in case the reader makes an indigestion \dots):
+shorten the extract here in case the reader makes an indigestion \dots).  This
+is easy because all previous usages were enclosed in braces |{...}| so as to
+limit the scope.  As \mst was loaded with option \xA7subdued\xA7 the default rendering
+(i.e.\@ in the \emph{normal} and \emph{bold} math versions) is (almost) as if
+the package was not loaded at all, and it simply matches the document font
+configuration.  Here it thus matches the
+\centeredline{|\usepackage{mlmodern}|} which was included in the document
+preamble prior to loading \mst.
 
 {\advance\leftskip.1\linewidth\advance\rightskip.1\linewidth
 Let $(X,Y)$ be two functions of a variable $a$. If they obey  the differential
@@ -1860,78 +2277,206 @@
 a\frac{d}{da} Y &= -(\nu+1) Y
  + (1 - Y^2)\frac{2n a}{1 - a^2}\frac{X+aY}{1+a XY} 
   \end{align*}
-then the quantity $q = a \frac{aX+Y}{X+aY}$
-satisfies as function of $b= a^2$  the $P_{VI}$ differential equation with
-parameters
-$(\alpha,\beta,\gamma,\delta) = (\frac{(\nu+n)^2}2,
-\frac{-(\nu+n+1)^2}2, \frac{n^2}2, \frac{1 - n^2}2)$.\par
+  then the quantity $q = a \frac{aX+Y}{X+aY}$ satisfies as function of $b=
+  a^2$ the $P_{VI}$ differential equation with parameters
+  $(\alpha,\beta,\gamma,\delta) = (\frac{(\nu+n)^2}2, \frac{-(\nu+n+1)^2}2,
+  \frac{n^2}2, \frac{1 - n^2}2)$.\par
+Test of uppercase Greek in math: $%\Alpha\Beta
+                                  \Gamma\Delta\Xi\Omega$ (no \string\Alpha, no
+                                  \string\Beta).\par
 }
 
-  \vskip\baselineskip Notice that the Greek letters also changed
-  according to the \emph{math version}: \mst has indeed some (limited)
-  capabilities to this effect, with its \xA7LGRgreek\xA7 option. This
-  document uses the |LGR| encoded fonts |cmtt|, |cmss|, and |txr|,
-  which are part of standard \TeX{}
-  distributions.\footnote{The first two are available (with no need to
-  load explicitly any package in the document) via the combination
-  |cbfonts| (|cbgreek-complete|) \& |babel|, and the |LGR| encoded |txr| font
+\bigskip
+
+If the scope of our earlier examples using \mst-enriched math versions
+had not been limited we would have issued \centeredline{|\MTversion{normal}|}
+to return to the normal (almost not influenced by \mst{}) math version.
+
+
+The Greek letters varied across our examples thanks to the \xA7LGRgreek\xA7 option
+which made the \xA7\MTgreekfont\xA7 command active for configuration of the math
+versions.%
+%
+\footnote{The document used the \texttt{cmtt}, \texttt{cmss}, \texttt{txr}, as well
+  as \texttt{LibertinusSerif-TLF} font families in \texttt{LGR} encoding.  The
+  first two are available (with no need to
+  load explicitly any package in the document) if the \LaTeX{} installation
+  provides the
+  |cbfonts| (or |cbgreek-complete|) \& |babel| packages, and the |LGR| encoded |txr| font
   (again no package loading is necessary) is part of the files of the
-  |txfontsb| package.}
+  |txfontsb| package.  For \texttt{LibertinusSerif-TLF}, the files of the
+  \texttt{libertinus-type1} package must be present.}
 
 % \href{http://mirrors.ctan.org/help/Catalogue/entries/cbgreek-complete.html}{cbfonts},
 % \href{http://mirrors.ctan.org/help/Catalogue/entries/txfontsb.html}{txfontsb}.
 
-\subsection{Overview}
+\emph{Since |1.3x| this documentation uses globally the |mlmodern|%
+%
+\footnote{Daniel Benjamin \textsc{Miller}, \emph{A blacker Type 1 version of Computer Modern, with multilingual
+    support}, \url{https://ctan.org/pkg/mlmodern}. I have added to the preamble
+  \centeredline{\texttt{\string\DeclareEncodingSubset\{TS1\}\{mlmtt\}\{0\}}}
+to circumvent some \LaTeX\ complaints about \texttt{\string\textasciigrave}
+(this is a widespread problem when not using default fonts)
+related to occurrences of the backtick character in verbatim displays.}
+ font
+  package
+and has added an example using the Libertinus font in type-1 format%
+%
+\footnote{Bob \textsc{Tennent}, \emph{Support for using Libertinus fonts with
+    \LaTeX/\pdfLaTeX}, \url{https://ctan.org/pkg/libertinus-type1}.}
+%
+although there is an existing accompanying math font%
+\footnote{Michael \textsc{Sharpe}, \emph{A Type 1 font and \LaTeX\ support for Libertinus
+    Math}, \url{https://ctan.org/pkg/libertinust1math}. Note that it is then highly
+advantageous to use \texttt{latex+dvipdfmx} and not \texttt{pdflatex} for
+reasons of PDF file size.}%
+.%
+}
 
-\subsubsection{Basic use}
+\subsection{Main options}
 
-The initial ideology of \mst was to produce mathematical texts with
-a very uniform look, not separating math from text as strongly as
-is usually done. 
+   \subsubsection{The \blueit{italic} option}
 
-As soon as one tries out other fonts for text than the Computer Modern
-ones one realizes how extremely ``thin'' are the default \TeX{} fonts
-for mathematics: they definitely do not fit well visually with the
-majority of text fonts. With \mst one can get one's (simple\dots{} or
-not) mathematics typeset in a manner more compatible with the text,
-without having to look for an especially designed font.
+In the initial version |1.0|, the Latin letters in
+mathematical mode assumed the exact same shape as in
+text mode, and this meant, generally speaking, that
+they would turn up upright. Doing this gives a very
+uniform look to the document, so that one has to make
+an effort and read it with attention, and this was
+one of the design goals of \mst.
 
-Here is a minimal example of what may go into
-the preamble:
-\begin{verbatim}
-\usepackage[T1]{fontenc}
-\usepackage{times}
-\usepackage[italic]{mathastext}
-\end{verbatim}
-The package records which font is set up for text, at the time it is
-loaded,\footnote{alternatively it is possible to configure the text font after
-  loading \mst, and then the command \cs{Mathastext} will accomplish the
-  necessary changes to the font for letters, digits and a few extra ascii
-  symbols in math mode.} and
-then arranges things in order for this text font to be used in math mode as
-well. So, with the preamble as above
-all letters, digits, and punctuation signs inside math mode will then be
-typeset in Times.\footnote{let's do as if we did not know the excellent
-  |txfonts| package which employs Times for text and has a very complete
-  math support, including many additional mathematical glyphs in
-  comparison to the CM fonts.} The exact list of characters concerned by
-\mst is a subset of the basic |ASCII| set:
+Nevertheless, soon after I posted the initial version
+of the package to CTAN, I was overwhelmed by
+numerous\footnote{this means ``more then one.''}
+questions\footnote{I thank in particular
+Tariq~\textsc{Perwez} and Kevin~\textsc{Klement} for
+their kind remarks (chronological order).}  on how to
+have the letters be in italic shape.
 
-  \begin{framed}\centering\MTversion{timesbold}%
-    \begingroup\color{joli}%
-      $abcdefghijklmnopqrstuvwxyz$\par
-      $ABCDEFGHIJKLMNOPQRSTUVWXYZ$\par
-      $0123456789$\par
-      \DeleteShortVerb{\|}% global!
-      ${!}\,{?}\,{*}\,{,}\,{.}\,{:}\,{;}\,{+}\,{-}\,{=}\,{(}\,{)}\,
-       {[}\,{]}\,{/}\,{\#}\,{\$}\,{\%}\,{\&}\,{<}\,{>}\,{|}\,{\{}\,{\}}
-       \textrm{ \color{black}\mdseries and }{\backslash}$%
-   \endgroup\par\MakeShortVerb{\|}%
-  \end{framed}
+The default is still, as in version |1.0|, for everything to be in
+upright shape, but it suffices to pass to the package the option
+\xA7italic\xA7\RightNote{1.1} to have the Latin letters in math mode in italic
+shape.\footnote{more precisely stated, the value of \cs{itdefault}
+is used.} There is also an option \xA7frenchmath\xA7 to make the
+uppercase letters nevertheless upright, because this is the way of
+traditional French mathematical typography.\footnote{more precisely
+stated, the value of \cs{shapedefault} is used.}
 
-As one can see, this is a very limited list! some possibilities are offered by
-\mst for Greek letters and will be described later. 
 
+\subsubsection{The \blueit{defaultmathsizes} option}
+
+The default sizes give for subscripts of subscripts barely legible glyphs
+(author's opinion!). So \mst makes more reasonable choices. It  also
+redefines \cs{Huge} and defines a \cs{HUGE} size, copied from 
+the |moresize| package. To cancel all of this use option
+\xA7defaultmathsizes\xA7.
+
+\subsubsection{The \blueit{subdued} option}\label{sec:subdued}
+
+This option was introduced in |v1.15|.\RightNote{1.15} It provides a manner to
+switch on the \mst-\emph{ification} only for limited portions of
+the document, with the help  of the mechanism of math versions. Without the
+\xA7subdued\xA7 option, the \emph{mathastextification} applies by default
+to the whole of the document (and one may also define additional
+math versions in the preamble); with the \xA7subdued\xA7 option the
+\emph{mathastextification} is done only in \emph{math versions} distinct from
+the standard and bold ones.
+
+Despite some limitations I will now partially describe, the \xA7subdued\xA7 option
+has its utility, as I think is illustrated enough by the examples given at the
+start of this document and it works reasonably well.
+
+\begin{framed}
+  \mst was not written initially in order to allow its action to
+  be completely canceled. It does not store (all) mathcodes nor
+  does it set them (all) when changing math versions; only that would
+  allow a perfect subdued mode (and \LaTeX\ is rather obstinate in
+  making that tricky or at least uneasy if sticking to its
+  official interface to math mode, as it is almost entirely
+  preamble only).
+
+  Releases |1.3t| and |1.3u| do this kind of things to maintain
+  usability across multiple \mst-ified math versions of characters
+  which are obviously font encoding dependent such as the minus
+  sign as en-dash (or unicode minus), the dotless i, the |\hbar|,
+  the text accents.
+
+  But this should be extended to all \mst-ified characters which
+  basically would amount to an extensive rewrite of large legacy
+  portions of the code. Currently the support for the |subdued|
+  mode and to multiple math versions amounts to some kind of a
+  kludge, added to an initial design which handled a single unique
+  text font.
+\end{framed}
+
+To get the displayed math
+(almost) as if \mst had not been loaded, one must also
+use the option \xA7defaultmathsizes\xA7. But this does not quite suffice,
+as, for example, the colon, the dot, and the minus sign belong
+in the default \LaTeX{} math mode set-up to three distinct fonts
+whereas \mst will pick (even subdued) the three of them in the same
+font,%
+\footnote{\RightNote{1.3t}The minus sign is now perfectly subdued,
+because its original mathcode is stored and restored; this was only
+way to handle the case with Unicode engines
+where the math operator font is in a classic
+\TeX\ encoding, but the minus sign is configured by \mst to use a Unicode
+en-dash or minus character in non-subdued math versions.}
+%
+and although it will make a reasonable choice of this font,
+this is not an exact re-installement of the previously prevailing situation. And
+then other packages could have done arbitrary things regarding character
+mathcodes, so to
+be on the safe side one needs the \xA7basic\xA7 option which limits the
+mathastextification to letters and digits.%
+%
+\footnote{\RightNote{1.3d}The \xA7subdued\xA7 mode does extinguish
+in the normal and bold math versions the action of options \xA7selfGreek\xA7,
+\xA7eulergreek\xA7, and \xA7symbolgreek\xA7 (previously only \xA7LGRgreek\xA7 was
+subdue-able).}
+\footnote{\RightNote{1.3t}The \texttt{\string\imath} and
+\texttt{\string\jmath} now obey the subdued regime.}
+\footnote{\RightNote{1.3u}Also \texttt{\string\hbar} 
+and the math accents (see \xA7mathaccents\xA7 option) obey the subdued regime.}
+%
+Even then, in some circumstances, this
+may not suffice: for example the \emph{euler} package puts
+the digits in the same font as the Latin letters in math mode, but
+the subdued \mst will pick them up in the same font as used for
+operator names, which for example in the case of the \emph{euler} package, is
+the main document font.
+
+\subsubsection{The \blueit{LGRgreek} option}
+
+  There is the issue of Greek letters. Sometimes the text font has
+  Greek glyphs, in |LGR| encoding%
+\footnote{For example the default CM and its replacement Latin Modern for european
+  languages are (transparently to the user) extended with |LGR|
+  encoded fonts from the |cbfonts| (|cbgreek-complete|)
+  package.} 
+ (this should be mentioned in the
+  documentation of the font package). Then option \xA7LGRgreek\xA7 tells
+  \mst to pick up these Greek letters.
+
+It is naturally possible to leave the
+  responsability to set up Greek letters to some other packages
+  loaded previously to \mst. And even if \mst has been loaded with one of its
+Greek related options the command \xA7\MTstandardgreek\xA7 will locally cancel its
+customization of Greek letters.  The command \xA7\MTcustomgreek\xA7 reenables the
+customization done by \mst, if it was loaded with the \xA7LGRgreek\xA7 or one of the
+other Greek related options.
+
+\begin{framed}
+  Release |1.3x| has added important new aspects to the handling of Greek
+  letters via the \xA7LGRgreek\xA7 option.  Make sure to read the \autoref{sec:newgreek}.
+\end{framed}
+
+\subsection{More miscellanea}
+
+This may repeat information already given.
+
+\subsubsection{Derivative, minus, asterisk}
+
 The text characters {}'{} and  {}-{} are not used, and the asterisk is
 done optionally:
 \begin{itemize}
@@ -1964,7 +2509,7 @@
 etc\dots reverts to the original math symbols. 
 
 
-\subsubsection{always load \mst last}
+\subsubsection{load \mst always last}
 
 The ``large'' math symbols are not modified in any way by \mst. Only loading
 some math font packages such as |fourier|, |kpfonts|, |mathabx|, |mathdesign|,
@@ -1986,12 +2531,16 @@
 \begin{document}
 \end{verbatim}
 
-\subsubsection{using \mst with \texttt{beamer}}\label{ssec:beamer}
+\subsubsection{using \mst with \href{https://ctan.org/pkg/beamer}{beamer}}\label{ssec:beamer}
 
 %\noindent\llap{\textcolor{green}{\bfseries 2015/02/26}\hspace{1em}}
 
 Starting
-with release |3.34| of |beamer|, \mst is recognized as a ``math font package''.
+with release |3.34| of \href{https://ctan.org/pkg/beamer}{beamer}%
+%
+\footnote{Till \textsc{Tantau}, Joseph \textsc{Wright}, Vedran \textsc{Mileti\'c}, \emph{A \LaTeX{} class for producing presentations and slides}, \url{https://ctan.org/pkg/beamer}.},
+%
+\mst is recognized as a ``math font package''.
 
 \emph{Only with \emph{{\bfseries earlier} |beamer| versions} is it necessary to issue}
 \centeredline{|\usefonttheme{professionalfonts}|}
@@ -2020,28 +2569,6 @@
 \end{document}
 \end{verbatim}
 
-\subsubsection{option \blueit{LGRgreek}}
-
-  There is the issue of Greek letters. Sometimes the text font has
-  Greek glyphs, in |LGR| encoding (this will be mentioned in the
-  documentation of the font package). Then option \xA7LGRgreek\xA7 tells
-  \mst to pick up these Greek letters. And it is possible to specify
-  whether the Greek letters should be upright, or
-  ``italic''.%
-%
-\footnote{the default CM and its replacement Latin Modern for european
-  languages are (transparently to the user) extended with |LGR|
-  encoded fonts from the |cbfonts| (|cbgreek-complete|)
-  package.} 
-
-It is naturally possible to leave the
-  responsability to set up Greek letters to some other packages
-  loaded previously to \mst. And even if \mst has been loaded with one of its
-Greek related options the command \xA7\MTstandardgreek\xA7 will locally cancel its
-customization of Greek letters. See also \xA7\MTcustomgreek\xA7.
-
-  % \href{http://mirrors.ctan.org/help/Catalogue/entries/cbgreek-complete.html}{cbfonts}
-
 \subsubsection{avoid \texorpdfstring{\texttt{OT1}}{OT1} encoding}
 
   We specified in our minimal working example a |T1| encoding (|LY1| would
@@ -2063,195 +2590,135 @@
   |LY1|.
 \end{framed}
 
-\subsection{Main options}
+\subsubsection{using \mst with \href{https://ctan.org/pkg/frenchmath}{frenchmath}}\label{ssec:frenchmath}
 
-   \subsubsection{The \blueit{italic} option}
+To use \mst concurrently with the
+\href{https://ctan.org/pkg/frenchmath}{frenchmath} package%
+%
+\footnote{Antoine~\textsc{Missier}, \emph{Typesetting mathematics according to French rules}, \url{https://ctan.org/pkg/frenchmath}.}
+%
+of
+Antoine~\textsc{Missier}:
+\begin{itemize}
+\item load
+\href{https://ctan.org/pkg/frenchmath}{frenchmath} with its option
+|capsit|,
+\item and load \mst second (after perhaps some relevant font packages)
+  and with the option \xA7frenchmath*\xA7.
+\end{itemize}
+Also, \href{https://ctan.org/pkg/frenchmath}{frenchmath} must be at least at
+version |1.6| of |2022/10/16|.%
+%
+% \footnote{The further package \href{https://ctan.org/pkg/frenchmath}{mismath}
+% by the Antoine~\textsc{Missier} may probably be used with \mst, but not in a fully
+% inter-operative way, as the packages conflict on some aspects. Reports
+% welcome, we have not tested this.}
 
-In the initial version |1.0|, the Latin letters in
-mathematical mode assumed the exact same shape as in
-text mode, and this meant, generally speaking, that
-they would turn up upright. Doing this gives a very
-uniform look to the document, so that one has to make
-an effort and read it with attention, and this was
-one of the design goals of \mst.
+Limited testing indicated that the combination (using the options as indicated
+above) works as expected but that some adjustments may be needed for some of
+the macros defined by \href{https://ctan.org/pkg/frenchmath}{frenchmath}: we
+observed in particular that the |\paral| command (which produces
+$\mathrel{/\!\!/}$) may not work well if the $/$ is picked up from the text
+font due to \mst (alternative could be for most text fonts
+|\def\paral{\mathrel{//}}|), and that macros such as |\Oijk| may not work well
+due to the font lacking a dotless |j| (use then option \xA7defaultimath\xA7).
 
-Nevertheless, soon after I posted the initial version
-of the package to CTAN, I was overwhelmed by
-numerous\footnote{this means ``more then one.''}
-questions\footnote{I thank in particular
-\textsc{Tariq~Perwez} and \textsc{Kevin~Klement} for
-their kind remarks (chronological order).}  on how to
-have the letters be in italic shape.
 
-The default is still, as in version |1.0|, for everything to be in
-upright shape, but it suffices to pass to the package the option
-\xA7italic\xA7\RightNote{1.1} to have the Latin letters in math mode in italic
-shape.\footnote{more precisely stated, the value of \cs{itdefault}
-is used.} There is also an option \xA7frenchmath\xA7 to make the
-uppercase letters nevertheless upright, because this is the way of
-traditional French mathematical typography.\footnote{more precisely
-stated, the value of \cs{shapedefault} is used.}
+You can either use the Greek related options of
+\href{https://ctan.org/pkg/frenchmath}{frenchmath} (since its version |2.0| of
+|2022/10/24|) or those of \mst.
 
+To handle properly intervals in French mathematical typesetting it is
+recommended to use the \href{https://ctan.org/pkg/mathtools}{mathtools}%
+%
+\footnote{Morten \textsc{H\xF8gholm}, Lars \textsc{Madsen} and the
+\textsc{\LaTeX3} project, \emph{Mathematical tools to use with amsmath},
+\url{https://ctan.org/pkg/mathtools}.  As explained elsewhere in this
+documentation always load \mst after \texttt{mathtools}.}
+%
+package facilities in order to define suitable macros for example like this
+for open intervals:
+\centeredline{|\DeclarePairedDelimiterX\Ioo[2]{]}{[}{#1;#2}|} Use then
+|$I = \Ioo{A}{B}$| type mark-up in your source, with variants |\Ioo*|
+and |\Ioo[\Big]| for example.  We used the semi-colon, as is
+observed in some French mathematical texts, often educational, as they
+have to handle intervals with decimal numbers as extremities, and the comma is
+used as decimal separator.  With the \xA7frenchmath*\xA7 option, \mst will let the
+semi-colon use |\mathbin| type spacing, matching observed practice in such
+mathematical texts.
 
-\subsubsection{The \blueit{defaultmathsizes} option}
+\smallskip
 
-The default sizes give for subscripts of subscripts barely legible glyphs
-(author's opinion!). So \mst makes more reasonable choices. It  also
-redefines \cs{Huge} and defines a \cs{HUGE} size, copied from 
-the |moresize| package. To cancel all of this use option
-\xA7defaultmathsizes\xA7.
+{\footnotesize
+Very advanced expert note: if using \xA7\MTnonlettersobeymathxx\xA7, the above macro |\Ioo|
+will raise errors except if used as |\Ioo*|.  Replace |]| by |{|{$\mskip2mu$}|]}| and |[|
+by |{[|{$\mskip2mu$}|}| in the above to get an |\Ioo| which does not raise errors and can be
+used also with the optional argument for example |\Ioo[\Bigg]|.  Unfortunately then
+the starred form |\Ioo*| will fail.  This is known limitation and explains why
+\mst does not execute \xA7\MTnonlettersobeymathxx\xA7 per default.\par}
 
-\subsubsection{The \blueit{subdued} option}\label{sec:subdued}
 
-This option was introduced in |v1.15|.\RightNote{1.15} It provides a manner to
-switch on the \mst-\emph{ification} only for limited portions of
-the document, with the help  of the mechanism of math versions. Without the
-\xA7subdued\xA7 option, the \emph{mathastextification} applies by default
-to the whole of the document (and one may also define additional
-math versions in the preamble); with the \xA7subdued\xA7 option the
-\emph{mathastextification} is done only in \emph{math versions} distinct from
-the standard and bold ones.
+\subsection{Math versions}\label{sec:mathversions}
 
-Despite some limitations I will now partially describe, the \xA7subdued\xA7 option
-has its utility, as I think is illustrated enough by the examples given at the
-start of this document and it works reasonably well.
-
-\begin{framed}
-  \mst was not written initially in order to allow its action to
-  be completely canceled. It does not store (all) mathcodes nor
-  does it set them (all) when changing math versions; only that would
-  allow a perfect subdued mode (and \LaTeX\ is rather obstinate in
-  making that tricky or at least uneasy if sticking to its
-  official interface to math mode, as it is almost entirely
-  preamble only).
-
-  Releases |1.3t| and |1.3u| do this kind of things to maintain
-  usability across multiple \mst-ified math versions of characters
-  which are obviously font encoding dependent such as the minus
-  sign as en-dash (or unicode minus), the dotless i, the |\hbar|,
-  the text accents.
-
-  But this should be extended to all \mst-ified characters which
-  basically would amount to an extensive rewrite of large legacy
-  portions of the code. Currently the support for the |subdued|
-  mode and to multiple math versions amounts to some kind of a
-  kludge, added to an initial design which handled a single unique
-  text font.
-\end{framed}
-
-To get the displayed math
-(almost) as if \mst had not been loaded, one must also
-use the option \xA7defaultmathsizes\xA7. But this does not quite suffice,
-as, for example, the colon, the dot, and the minus sign belong
-in the default \LaTeX{} math mode set-up to three distinct fonts
-whereas \mst will pick (even subdued) the three of them in the same
-font,%
-\footnote{\CHANGED{1.3t}The minus sign is now perfectly subdued,
-because its original mathcode is stored and restored; this was only
-way to handle the case with Unicode engines
-where the math operator font is in a classic
-\TeX\ encoding, but the minus sign is configured by \mst to use a Unicode
-en-dash or minus character in non-subdued math versions.}
+\LaTeX{} has the concept of \emph{math versions}%
 %
-and although it will make a reasonable choice of this font,
-this is not an exact re-installement of the previously prevailing situation. And
-then other packages could have done arbitrary things regarding character
-mathcodes, so to
-be on the safe side one needs the \xA7basic\xA7 option which limits the
-mathastextification to letters and digits.%
+\footnote{|math versions| are discussed in the document
+|fntguide.pdf| from your \TeX{} distribution.}%
 %
-\footnote{\CHANGED{1.3d}The \xA7subdued\xA7 mode does extinguish
-in the normal and bold math versions the action of options \xA7selfGreek\xA7,
-\xA7eulergreek\xA7, and \xA7symbolgreek\xA7 (previously only \xA7LGRgreek\xA7 was
-subdue-able).}
-\footnote{\CHANGED{1.3t}The \texttt{\string\imath} and
-\texttt{\string\jmath} now obey the subdued regime.}
-\footnote{\CHANGED{1.3u}Also \texttt{\string\hbar} 
-and the math accents (see \xA7mathaccents\xA7 option) obey the subdued regime.}
-%
-Even then, in some circumstances, this
-may not suffice: for example the \emph{euler} package puts
-the digits in the same font as the Latin letters in math mode, but
-the subdued \mst will pick them up in the same font as used for
-operator names, which for example in the case of the \emph{euler} package, is
-the main document font.
+, but most font packages
+do not define any such version beyond the default normal and bold (the
+package |unicode-math| for unicode engines does use this concept).
 
+\mst extends the concept of math versions in order to allow the math mode
+fonts (for letters, digits, punctuation and a few other ascii symbols) used in
+the different parts of the document to be kept in sync with the text
+fonts.
 
+Most math symbols (sums, products, integrals, logical signs,
+etc\dots) are kept the same throughout the document though as it is not in
+\mst power to modify them.
 
+For examples see the earlier \autoref{sec:examples}.  The interface to define
+a |math version| includes the commands \xA7\Mathastext\xA7 and
+\xA7\MTDeclareVersion\xA7.
 
-\subsection{Math versions}\label{sec:mathversions}
+Once such a |math versions| has been defined in the preamble,
+\xA7\MTversion\xA7|{name_of_version}|, or equivalently
+\xA7\Mathastextversion\xA7|{name_of_version}|, enacts the font switches when
+encountered in the body of the document. As is usual with \LaTeX{} one can
+limit the scope to inside a group, or also switch back to the main
+set-up via \cs{Mathastextversion\{normal\}}.
 
-\LaTeX{} has the concept of \emph{math versions}, but most font packages
-do not define any such version beyond the default normal and bold (that
-they possibly customize to use such or such math font). The package
-|unicode-math| for unicode engines fruitfully uses this concept. \mst
-uses math versions in order to allow the math mode fonts (for letters,
-digits, punctuation and a few other ascii symbols) used in the different
-parts of the document to be kept in sync with the text fonts. However
-the other math symbols (sums, products, integrals, logical signs,
-etc\dots) will be the same throughout the document as it is not in \mst
-power to modify them. There are some possibilities to use different sets
-of fonts for the Greek letters, though.
+When \xA7\Mathastext\xA7 is used in the preamble, it records the current text font
+defaults (\cs{familydefault} et al.\@ or what has been configured by
+\xA7\MTfamily\xA7 and similar commands) and (except for the |normal| and |bold|
+versions if in \xA7subdued\xA7 regime) sets up \emph{both} the math font and the
+text font in the defined \mst-math version to be this text font.
+%
+It is still possible to switch on via \xA7\MTversion\xA7 in the document body
+  distinct fonts for text and math: an optional argument (the name of another
+  \mst-declared math version) to \cs{MTversion} is allowed (such as for
+  example \cs{MTversion[newcent]\{helvet\}} for one of the examples of the
+  \autoref{sec:examples}). It instructs to use as text font the font which was
+  configured to be used in this second \mst-math version.%
+%
+\footnote{When not using math versions at all (so not using \texttt{subdued}
+mode either) another way to achieve distinct fonts in text and math is
+naturally to modify the document text font \emph{after} having loaded \mst (or
+after last usage of \cs{Mathastext} without optional argument).
+Another way is to use \cs{MTfamily}, \cs{MTencoding}, \cs{MTseries},
+\cs{MTshape}, \cs{MTlettershape} in the preamble before a call to
+\cs{Mathastext} which will configure math fonts without having modified the
+document text fonts.  However if one does \texttt{\string\MTversion\{normal\}}
+in the document then the text font will be reset to what was recorded as math
+font by the \cs{Mathastext} call in the preamble (as said above, when not
+using \texttt{subdued} option).}
 
-The present document illustrated the use of various fonts, here is its
-preamble (slightly stripped-down):
-\begin{center}
-  \begin{minipage}{.8\linewidth}
-\begin{verbatim}
-\usepackage{lmodern}
-\usepackage[T1]{fontenc}
-\usepackage[subdued,italic,defaultmathsizes]{mathastext}
-\MTDeclareVersion[n]{lmvtt}{T1}{lmvtt}{m}{n}
-\usepackage{newcent}
-\Mathastext[newcent]
-\usepackage{times}
-\Mathastext[times]
-\usepackage[scaled]{helvet}
-\renewcommand\familydefault\sfdefault
-\Mathastext[helvet]
-\begin{document}\MTversion{normal}
-\end{verbatim}
-  \end{minipage}
-\end{center}
-Let us examine this code: it uses once the command \xA7\MTDeclareVersion\xA7
-and three times the command \xA7\Mathastext\xA7, thus defining four 
-|math versions|\footnote{|math versions| are discussed in the document
-|fntguide.pdf| from your \TeX{} distribution.}: |lmvtt|, |newcent|,
-|times|, and |helvet|. The names can be taken arbitrarily (they only
-need to be suitable arguments to the \LaTeX{} \cs{DeclareMathVersion}
-command which is invoked internally). Two
-additional math versions preexist: the |normal| and |bold|, which,
-because there was the \xA7subdued\xA7 option, were left untouched by \mst.
-
-Once these |math versions| are defined, \xA7\MTversion\xA7|{name_of_version}|, or
-equivalently \xA7\Mathastextversion\xA7|{name_of_version}|, enacts the font switches
-in the body of the document. As is usual with \LaTeX{} one can limit the scope
-to the inside of a group, or also switch back to the main set-up through issuing
-\cs{Mathastextversion\{normal\}}.
-
-When \cs{Mathastext} is used in the preamble, it records the current font
-defaults and (except for the |normal| and |bold| versions under the \xA7subdued\xA7
-regime) sets up the math font to be used in that version to be the text font
-as found in \cs{familydefault}. But it is still possible for a \mst-declared
-math version to have distinct fonts for text and math:
-\begin{enumerate}
-\item in the body of the \TeX{} source, an optional argument (the name
-  of a \mst-declared math version) to \cs{MTversion} is allowed, and
-  for example we used in the source of this document
-  \cs{MTversion[newcent]\{helvet\}} meaning ``New Century Schoolbook
-  for the text and Helvetica for the math.''
-\item there are preamble-only commands \cs{MTencoding}, \cs{MTfamily},
-  \cs{MTseries}, \cs{MTshape}, \cs{MTlettershape} which tell \mst what
-  to do (for math \emph{only}) in each math version declared
-  \emph{afterwards}, independently of the text fonts.
-\end{enumerate}
-
-The native \LaTeX{} command
-\cs{mathversion}\marg{version\_name} would change only the fonts used in math
-mode. It is important to use rather the package command
-\csb{MTversion} (or one of its synonyms \cs{mathastextversion},
-\cs{Mathastextversion}, \cs{MTVersion}), with its mandatory argument
-\marg{version\_name}, as it does additional actions:
+The native \LaTeX{} command \cs{mathversion}\marg{version\_name} would change
+only the fonts for the math mode, not the text mode fonts. It is important to
+use rather the package command \csb{MTversion} (or one of its synonyms
+\cs{mathastextversion}, \cs{Mathastextversion}, \cs{MTVersion}), with its
+mandatory argument \marg{version\_name}, as it does additional actions:
 \begin{itemize}
 \item it sets the font for math mode (letters, math operator names, digits,
   punctuations, some other symbols) according to the version name given as
@@ -2259,7 +2726,7 @@
 \item it resets the text font of the document and the
   |\(family,rm,sf,...)default|s to their values as registered at the time of
   definition of the version. \emph{Use the starred variant in case this is not
-    desired.} It is possible to also specify within brackets an extra optional
+    desired.} As explained above tt is possible to specify within brackets an extra optional
   version name, and the text font will be set according to it.
 \end{itemize}
 For all math versions if not using the \xA7subdued\xA7 option, or only
@@ -2266,7 +2733,7 @@
 for the non-\emph{normal} and non-\emph{bold} math versions if
 using the \xA7subdued\xA7 option, \cs{MTversion} does further additional tasks:
 \begin{itemize}
-\item it resets\RLNote{NEW FEATURE!}{1.3u} the \xA7\hbar\xA7, \cs{imath}
+\item it resets\RightNote{1.3u} the \xA7\hbar\xA7, \cs{imath}
   (see \xA7\inodot\xA7), \cs{jmath}, math accents (see option
   \xA7mathaccents\xA7) and minus sign as en dash according to the used
   font encoding for the \mst-ified text font,
@@ -2312,6 +2779,378 @@
 \cs{usepackage}|{epigrafica}| followed with
 |\usepackage[LGRgreek]{mathastext}|.
 
+\subsection{Greek letters}
+
+\subsubsection{The Greek-related options}
+
+The Computer Modern fonts are very light and thin in comparison
+to many text fonts, and as a result rarely mix
+well with them (particularly if the Latin letters in
+math mode are upright). The following options are
+provided by \mst:
+\begin{description}
+\item[no option:] nothing is done by the
+  package, Greek letters are the default Computer
+  Modern ones or have been set-up by other packages;
+  for example by the |fourier| package with option
+  `upright', which gives upright Greek letters.
+\item[\xA7LGRgreek\xA7:] (this was substantially updated at |1.3x|, make sure to
+  read the new documentation at \autoref{sec:newgreek})
+  this option is for fonts which additionally to Latin
+  letters also provide Greek letters in |LGR| encoding. Here is
+  a list from a 2012 standard \TeX{} installation: the Computer
+  Modern, Latin Modern, and the CM-LGC fonts; the Greek Font
+  Society fonts (such as GFS Didot), the epigrafica and kerkis
+  packages, the txfontsb package which extends the txfonts
+  package with LGR-encoded Greek letters; the Droid fonts, the
+  DejaVu fonts, the Comfortaa font, and the Open Sans font. The
+  |LGR| encoded |CM/LM| fonts (in serif, sans-serif and typewriter
+  family) give the nice Greek letters in upright shape from the
+  |cbfonts| package. To get these letters in your \mst math
+  mode, you can do the following:
+\begin{verbatim}
+% instructions to load the document fonts:
+\usepackage{nice_font}
+% and then the following:
+\renewcommand{\familydefault}{cmr} % or cmss or cmtt for sans resp. mono
+\usepackage[LGRgreek]{mathastext}
+\renewcommand{\familydefault}{\rmdefault} 
+\Mathastext % this re-initializes mathastext with the nice_font,
+% without changing the LGR font cmr/cmss/cmtt used for Greek letters
+% in math mode.
+\begin{document}
+\end{verbatim}
+ If you use the \xA7italic\xA7 option note that the italic Greek
+ letters from the |cbfonts| are not the same glyphs as 
+  the default Greek letters from the |OML| encoded font |cmmi|.
+\item[\xA7eulergreek\xA7:] the Greek letters will be taken from the Euler font (the
+  document does not have to load the eulervm package, \mst directly uses
+  some file included in this package, as it provides a mechanism to scale
+  by an arbitrary factor the Euler font.) The letters are upright.
+\item[\xA7symbolgreek\xA7:] the Greek letters will be taken
+  from the (Adobe Postscript) Symbol font. A command is provided
+  so that the user can scale the Symbol font to let it
+  better fit with the text font. The letters are upright.
+\item[\xA7selfGreek\xA7:] this option concerns only the eleven Greek
+  capitals from the |OT1|-encoding. It does nothing for the
+  lowercase Greek letters. The encoding used in the document does
+  not have to be |OT1|.
+\end{description}
+
+There is also \xA7LGRgreeks\xA7 which tells \mst to pick up in each math
+version the letters from the |LGR| encoded font used in that version,
+and \xA7selfGreeks\xA7 to tell \mst to do as for \xA7selfGreek\xA7 but
+separately in all math versions. 
+
+Under the \xA7subdued\xA7 option the Greek letters in the normal and bold math
+versions are kept to their defaults as found at the time of loading the
+package. 
+
+The commands \xA7\MTstandardgreek\xA7  allow at any point
+in the document to turn inactive any Greek related option passed to \mst. And
+conversely \xA7\MTcustomgreek\xA7 reactivates it.
+
+
+\subsubsection{Shape of Greek letters}
+
+Classic \TeX{} uses in math mode italic lowercase and
+upright uppercase Greek letters. French typography uses
+upright shape for both lowercase and uppercase. And the
+ISO standard is to use italic shape for both lowercase
+and uppercase.
+
+The Euler and Symbol fonts not being available in other than their
+default upright shape, this question of shapes for Greek letters
+raises issues only in the case of the options \xA7LGRgreek\xA7 and
+\xA7selfGreek\xA7.
+
+The options \xA7frenchmath\xA7, \xA7itgreek\xA7, \xA7upgreek\xA7, \xA7itGreek\xA7 and \xA7upGreek\xA7
+modify the Greek letter shapes according to the following rules, listed
+from the lowest to the highest priority:
+\begin{description}
+\item[no option:] the lowercase Greek letters are in the same shape as
+  Latin letters, and the uppercase in the same shape as is applied to digits
+  and operator names,
+\item[\xA7frenchmath\xA7:] both lowercase and uppercase are in the same shape as
+  the digits and operator names (most of the time this means ``upright
+  shape'', but it can be otherwise),
+\item[\xA7itgreek\xA7]: says that Greek letters (both lowercase and uppercase) will
+  be in `|it|' shape. \RLNote{changed:}{1.3x}More precisely the expansion of
+  \xA7\MTgreekitdefault\xA7 is used.
+
+  This was changed at |1.3x|, formerly the value of \cs{itdefault} which was in
+  force at the time of using \xA7\Mathastext\xA7 (or at time of loading the package
+  if no use is made of \xA7\Mathastext\xA7) was used.
+\item[\xA7upgreek\xA7]:  says that Greek letters (both lowercase and uppercase) will
+  be in `|n|' shape. \RLNote{changed:}{1.3x}More precisely the expansion of
+  \xA7\MTgreekupdefault\xA7 is used.
+
+  This was changed at |1.3x|, formerly the value of \cs{updefault} which was in
+  force at the time of using \xA7\Mathastext\xA7 (or at time of loading the package
+  if no use is made of \xA7\Mathastext\xA7) was used.  But since \LaTeX{}
+  |2020-02-02| this caused many Font Warnings in the log because
+  \cs{updefault} is now `|up|', not `|n|' as formerly.
+\item[\xA7itGreek\xA7, \xA7upGreek\xA7:] same but they apply only to the uppercase Greek
+  letters.  Their effect is computed after having taken into account either
+  \xA7itgreek\xA7 or \xA7upgreek\xA7 presence.
+\end{description}
+
+So, the default gives the classic \TeX{} behavior when option \xA7italic\xA7
+was passed. Each call to \cs{Mathastext} (or \cs{MathastextWillUse})
+macros (described in a later section) reinitializes the computation of
+the shapes.
+
+The commands \xA7\MTitgreek\xA7, \xA7\MTupgreek\xA7, \xA7\MTitGreek\xA7 and \xA7\MTupGreek\xA7 were
+added at |1.15c|, they act like the options with the analogous names, as if
+these options were activated only at time of use of these commands in the
+preamble, prior to some \xA7\Mathastext\xA7, or
+\xA7\Mathastext\xA7\oarg{math\_version}, or \xA7\MTDeclareVersion\xA7.
+
+\begin{framed}
+  These commands have some effect only if one of the \xA7LGRgreek\xA7, \xA7LGRgreeks\xA7,
+  \xA7selfGreek\xA7 or \xA7selfGreeks\xA7 options was passed to the package.
+
+  Once anyone of these commands has been made use of, changes in the shape
+  configuration of the Latin letters for new math versions (or prior to using
+  \xA7\Mathastext\xA7 to redefine the default configuration) via \xA7\MTlettershape\xA7,
+  or to the shape of letters of operator names via \xA7\MTshape\xA7 (or via the
+  arguments of \xA7\MTDeclareVersion\xA7), will stop being kept in sync with the
+  shape of the Greek letters.  The shape of the Greek letters will respond
+  only to the way \mst-math versions (or default behaviour if using
+  \xA7\Mathastext\xA7 in the preamble) are subsequently re-configured via usage of
+  the \xA7\MTitgreek\xA7, \xA7\MTupgreek\xA7, \xA7\MTitGreek\xA7 and \xA7\MTupGreek\xA7 commands in
+  the preamble.
+\end{framed}
+
+As mentioned already the package allows to define various ``math
+versions''. In the case of \xA7eulergreek\xA7 or \xA7symbolgreek\xA7 they apply
+to all these versions. In the case of the options \xA7LGRgreeks\xA7 or
+\xA7selfGreeks\xA7 (notice the additional ``s''), each math version is
+assumed to have its text font available in |LGR| (or |OT1|
+encoding) and also the shapes will be local to the math version.
+
+Finally version |1.15c| of \mst introduces new preamble-only
+commands to change the shapes, and even the font, used for Greek
+letters, in case of package options \xA7LGRgreek\xA7/\xA7selfGreek\xA7. They
+are \xA7\MTitgreek\xA7, \xA7\MTupgreek\xA7, \xA7\MTitGreek\xA7, \xA7\MTupGreek\xA7: these
+are used like the options and change only the shapes for the math
+versions which will be declared \emph{next} in the preamble; and
+\xA7\MTgreekfont\xA7|{name_of_font}| will tell the \emph{next} math
+versions to use that font family. To use this command you need to
+know the (little) name of a suitable font family available in |LGR|
+encoding: for example |lmr|, |txr| (needs |txfontsb|
+package on your system), |DejaVuSerif-TLF| (needs |dejavu| package
+on your system), etc\dots
+
+\subsubsection{New with \texttt{1.3x}: alphabets \cs{mathgreekup} and
+  \cs{mathgreekit}, control sequences to access directly upright or italic
+  Greek letters}
+\label{sec:newgreek}
+
+Some changes were made at |1.3x| to enhance the \xA7LGRgreek\xA7 (and \xA7LGRgreeks\xA7)
+options with new features.  Everything which will be explained here applies
+only to these two options.
+
+First of all the package now makes available control sequences to access
+either the upright or italic shape of the Greek letters.  Which shape is meant
+by `upright' or `italic' is configured via defining \xA7\MTgreekupdefault\xA7 and
+\xA7\MTgreekitdefault\xA7 respectively.  Their default definitions are to expand to
+`|n|' and `|it|' respectively.
+
+See\RLNote{new:}{1.3x} the \autoref{table:greekup} and \autoref{table:greekit}
+for illustrations (using here the Libertinus Serif font).
+\begin{table}[htbp]
+\MTversion{libertinus}
+\begin{framed}
+\begin{multicols}{4}
+\noindent
+\string\Alphaup\ $\Alphaup$\\
+\string\Betaup\ $\Betaup$\\
+\string\Gammaup\ $\Gammaup$\\
+\string\Deltaup\ $\Deltaup$\\
+\string\Epsilonup\ $\Epsilonup$\\
+\string\Zetaup\ $\Zetaup$\\
+\string\Etaup\ $\Etaup$\\
+\string\Thetaup\ $\Thetaup$\\
+\string\Iotaup\ $\Iotaup$\\
+\string\Kappaup\ $\Kappaup$\\
+\string\Lambdaup\ $\Lambdaup$\\
+\string\Muup\ $\Muup$\\
+\string\Nuup\ $\Nuup$\\
+\string\Xiup\ $\Xiup$\\
+\string\Omicronup\ $\Omicronup$\\
+\string\Piup\ $\Piup$\\
+\string\Rhoup\ $\Rhoup$\\
+\string\Sigmaup\ $\Sigmaup$\\
+\string\Tauup\ $\Tauup$\\
+\string\Upsilonup\ $\Upsilonup$\\
+\string\Phiup\ $\Phiup$\\
+\string\Chiup\ $\Chiup$\\
+\string\Psiup\ $\Psiup$\\
+\string\Omegaup\ $\Omegaup$\\
+\string\Digammaup\ $\Digammaup$\\
+% \columnbreak ne fonctionne pas comme esp\xE9r\xE9
+\mbox{}\\
+\string\alphaup\ $\alphaup$\\
+\string\betaup\ $\betaup$\\
+\string\gammaup\ $\gammaup$\\
+\string\deltaup\ $\deltaup$\\
+\string\epsilonup\ $\epsilonup$\\
+\string\zetaup\ $\zetaup$\\
+\string\etaup\ $\etaup$\\
+\string\thetaup\ $\thetaup$\\
+\string\iotaup\ $\iotaup$\\
+\string\kappaup\ $\kappaup$\\
+\string\lambdaup\ $\lambdaup$\\
+\string\muup\ $\muup$\\
+\string\nuup\ $\nuup$\\
+\string\xiup\ $\xiup$\\
+\string\omicronup\ $\omicronup$\\
+\string\piup\ $\piup$\\
+\string\rhoup\ $\rhoup$\\
+\string\sigmaup\ $\sigmaup$\\
+\string\tauup\ $\tauup$\\
+\string\upsilonup\ $\upsilonup$\\
+\string\phiup\ $\phiup$\\
+\string\chiup\ $\chiup$\\
+\string\psiup\ $\psiup$\\
+\string\omegaup\ $\omegaup$\\
+\string\digammaup\ $\digammaup$\\
+\string\varsigmaup\ $\varsigmaup$
+\end{multicols}
+\end{framed}
+% il y a bien s\xFBr d'horribles espacement verticaux typiques de LaTeX
+\vspace*{-\baselineskip}
+\caption{Greek letters via `up' control sequences (math mode only)}
+\label{table:greekup}
+\end{table}
+\begin{table}[htbp]
+\MTversion{libertinus}
+\begin{framed}
+\begin{multicols}{4}
+\noindent
+\string\Alphait\ $\Alphait$\\
+\string\Betait\ $\Betait$\\
+\string\Gammait\ $\Gammait$\\
+\string\Deltait\ $\Deltait$\\
+\string\Epsilonit\ $\Epsilonit$\\
+\string\Zetait\ $\Zetait$\\
+\string\Etait\ $\Etait$\\
+\string\Thetait\ $\Thetait$\\
+\string\Iotait\ $\Iotait$\\
+\string\Kappait\ $\Kappait$\\
+\string\Lambdait\ $\Lambdait$\\
+\string\Muit\ $\Muit$\\
+\string\Nuit\ $\Nuit$\\
+\string\Xiit\ $\Xiit$\\
+\string\Omicronit\ $\Omicronit$\\
+\string\Piit\ $\Piit$\\
+\string\Rhoit\ $\Rhoit$\\
+\string\Sigmait\ $\Sigmait$\\
+\string\Tauit\ $\Tauit$\\
+\string\Upsilonit\ $\Upsilonit$\\
+\string\Phiit\ $\Phiit$\\
+\string\Chiit\ $\Chiit$\\
+\string\Psiit\ $\Psiit$\\
+\string\Omegait\ $\Omegait$\\
+\string\Digammait\ $\Digammait$\\
+% \columnbreak ne fonctionne pas comme esp\xE9r\xE9
+\mbox{}\\
+\string\alphait\ $\alphait$\\
+\string\betait\ $\betait$\\
+\string\gammait\ $\gammait$\\
+\string\deltait\ $\deltait$\\
+\string\epsilonit\ $\epsilonit$\\
+\string\zetait\ $\zetait$\\
+\string\etait\ $\etait$\\
+\string\thetait\ $\thetait$\\
+\string\iotait\ $\iotait$\\
+\string\kappait\ $\kappait$\\
+\string\lambdait\ $\lambdait$\\
+\string\muit\ $\muit$\\
+\string\nuit\ $\nuit$\\
+\string\xiit\ $\xiit$\\
+\string\omicronit\ $\omicronit$\\
+\string\piit\ $\piit$\\
+\string\rhoit\ $\rhoit$\\
+\string\sigmait\ $\sigmait$\\
+\string\tauit\ $\tauit$\\
+\string\upsilonit\ $\upsilonit$\\
+\string\phiit\ $\phiit$\\
+\string\chiit\ $\chiit$\\
+\string\psiit\ $\psiit$\\
+\string\omegait\ $\omegait$\\
+\string\digammait\ $\digammait$\\
+\string\varsigmait\ $\varsigmait$
+\end{multicols}
+\end{framed}
+% il y a bien s\xFBr d'horribles espacement verticaux typiques de LaTeX
+\vspace*{-\baselineskip}
+\caption{Greek letters via `it' control sequences (math mode only)}
+\label{table:greekit}
+\end{table}
+
+% % \xE0 d\xE9placer
+% These commands can be defined prior to loading the package,
+% which spares one to have to issue them after then issue \xA7\Mathastext\xA7
+% (assuming here we are using a single \mst configuration for the whole document).
+
+The regular control sequences without `|up|' or `|it|' postfix will map to
+either one of the two versions according to how the shapes were configured,
+i.e.\@ in almost all cases via usage of either the \xA7itgreek\xA7, \xA7upgreek\xA7,
+etc\dots\ options or \xA7\MTitgreek\xA7 et al.\@ commands.  This is on a per \mst-enriched
+math version basis, depending only on how the options or commands were used
+in the preamble.
+
+Furthermore\RLNote{new:}{1.3x} two math alphabets are provided
+\centeredline{\xA7\mathgreekup\xA7}
+\centeredline{\xA7\mathgreekit\xA7}
+which can be used to map a letter to the corresponding Greek fonts.
+For example (using here the semi-bold LGR encoded |LibertinusSerif-TLF|, which
+was stored as a \mst-enriched math version with name |libertinussemibold|):
+{\MTversion{libertinussemibold}
+\centeredline{|$\mathgreekup{a}=\mathgreekup{\alpha}=\mathgreekup{\alphait}=\alphaup$|}
+\centeredline{$\mathgreekup{a}=\mathgreekup{\alpha}=\mathgreekup{\alphait}=\alphaup$}
+\centeredline{|$\mathgreekup{G}=\mathgreekup{\Gamma}=\mathgreekup{\Gammait}=\Gammaup$|}
+\centeredline{$\mathgreekup{G}=\mathgreekup{\Gamma}=\mathgreekup{\Gammait}=\Gammaup$}
+\centeredline{|$\mathgreekit{z}=\mathgreekit{\zeta}=\mathgreekit{\zetaup}=\zetait$|}
+\centeredline{$\mathgreekit{z}=\mathgreekit{\zeta}=\mathgreekit{\zetaup}=\zetait$}
+\centeredline{|$\mathgreekit{W}=\mathgreekit{\Omega}=\mathgreekit{\Omegaup}=\Omegait$|}
+\centeredline{$\mathgreekit{W}=\mathgreekit{\Omega}=\mathgreekit{\Omegaup}=\Omegait$}
+}
+
+Some\RLNote{changed!}{1.3x} refactoring%
+%
+\footnote{Technically, formerly two symbol fonts were declared, one for the
+  lowercase Greek letters and one for the uppercase Greek letters; now those
+  are dropped and replaced by two symbol fonts, one for `italic' Greek letters,
+  the other for `upright' Greek letters.}
+%
+was required to achieve this at |1.3x|
+and it is not 100\% backwards compatible: if none of the \xA7itgreek\xA7 etc\dots\
+things was used, the Greek letters formerly would follow the shape of Latin
+letters (for lowercase Greek) and of operator names (for uppercase Greek).
+Now, some check is made for each of these two shapes whether it is `|it|' or
+`|sl|' and then the `italic' shape, i.e.\@ \xA7\MTgreekitdefault\xA7
+which by default is `|it|' (without the quotes) is used, else the `upright'
+shape, i.e.\@ \xA7\MTgreekupdefault\xA7 which by default expands to `|n|'
+(without the quotes) is used.  Naturally these checks are
+done on a per \mst-math version basis, if multiple math versions are used.
+
+So for example those who used some adventurous `|sc|' for the main shape (the
+one used per default for operator names) and used the option \xA7LGRgreek\xA7 but
+none of the \xA7itgreek\xA7 et al.\@ options, and none of the \xA7\MTitgreek\xA7 et
+al.\@ commands, now will need to adjust \xA7\MTgreekupdefault\xA7 to expand to
+`|sc|' prior to some \xA7\Mathastext\xA7 or \xA7\Mathastext\xA7\oarg{version\_name} or
+\xA7\MTDeclareVersion\xA7 in the preamble depending on context.
+
+It is hoped most documents, even those using multiple math versions, which
+made use of the \xA7LGRgreek\xA7 (or \xA7LGRgreeks\xA7) option will simply produce
+unmodified output.  Please report to the author unexpected results not fitting
+the above attempted description of the only partial backwards
+compatibility.
+
+
 \subsection{Extra spaces around letters}
 \label{sec:mathskips}
 
@@ -2547,7 +3386,7 @@
 \addtocounter{footnote}{1}%
 \let\Hy at footnote@currentHref\saved at Href@B 
 %
-\footnotetext{\CHANGED{1.3i}Formerly, italic corrections were added to the
+\footnotetext{\RightNote{1.3i}Formerly, italic corrections were added to the
   \cs{mathnormal} arguments.}
 
 \makeatother
@@ -2578,10 +3417,13 @@
   three outputs are different on my \TeX{} installation. \XeTeX{} does not have
   the italic corrections. \LuaLaTeX{} does, but only for the italic font.
   pdf\LaTeX{} has them for both the italic and the upright font.%
-\footnotemark }
+\footnotemark}
+%\tracingmacros1 % pour extraire le -0.5em du code de scrartcl...
+\footnotetext {2016/11/04: the situation hasn't changed,
+at least on current TL2016.
 
-\footnotetext {2016/11/04: the situation hasn't changed a iota since,
-at least on current TL2016.}
+\noindent\kern-0.5em\relax2022/10/29: no change with current TL2022.}
+%\tracingmacros0
 
 % For more see
 % \url{http://tex.stackexchange.com/a/337076} which explores also the differences
@@ -2639,7 +3481,7 @@
 |\MTversion{bold}|) do not have any extra skip inserted (even one of zero
 width) after $\oldforall$, $ \oldexists$, or before the ${}'$.%
 %
-\footnote{\CHANGED{1.3j}Formerly, skips of zero widths were inserted.}
+\footnote{\RightNote{1.3j}Formerly, skips of zero widths were inserted.}
 
 \endgroup
 
@@ -2679,16 +3521,20 @@
   \mst, \emph{i.e.}, if not disabled by options,
   ${!}\,{?}\,{,}\,{:}\,{;}\,{+}\,{-}\,{=}\,{(}\,{)}\,{[}\,{]}\,{<}\,{>}\,{\{}\,{\}}$,
   the asterisk $*$, and
-  $.\,/\,\vert\,\backslash\,{\#}\,{\$}\,{\%}\,{\&}$\footnote{%
-    ${\#}\,{\$}\,{\%}\,{\&}$
-    obey the math alphabets since the initial version of \mst; the dot
-    $.$, the slash $/$, the vertical bar $\vert$ and the backslash
-    $\backslash$ do not have specific spacings inserted by \TeX{} around
-    them, and the procedure is then not a devilish one, this is why it
-    is made the default for these characters which are listed apart. The
-    math symbols \cs{mid} (which is $\vert$ with type \cs{mathrel}) and
-    \cs{setminus} ($\backslash$ with type \cs{mathbin}) are counted
-    among the `difficult' cases, not the `easy non-letters'.} will also obey
+  $.\,/\,\vert\,\backslash\,{\#}\,{\$}\,{\%}\,{\&}$%
+%
+\footnote{%
+  ${\#}\,{\$}\,{\%}\,{\&}$ obey the math alphabets since the initial version
+  of \mst; the dot $.$, the slash $/$, the vertical bar $\vert$ and the
+  backslash $\backslash$ do not have specific spacings inserted by \TeX{}
+  around them, and the procedure is then activated by default since
+  \texttt{1.2} for these characters as they are `easy non-letters'. But for
+  \cs{mid} and \cs{setminus} which are $\vert$ and $\backslash$ with special
+  spacing (of type \cs{mathrel} and \cs{mathbin} resp.) the procedure has
+  some constraints explained in the framed box on next page and the
+  activation requires \cs{MTnonlettersobeymathxx}.}
+%
+will also obey
   the math alphabet commands (when not used as delimiters). The
   important thing is that the spaces added by \TeX{} before and after
   are not modified.
@@ -2712,19 +3558,23 @@
 the option \xA7asterisk\xA7, as the user then is supposed to know that |$R^*$| is no
 valid input anymore and should be replaced by |$R^{*}$|. The remaining `difficult'
 cases create similar
-constraints, which will be commented more upon next. The relevant commands are\\
-\mbox{}\hspace{2cm}\csb{MTmathoperatorsdonotobeymathxx}\\
-\mbox{}\hspace{2cm}\csb{MTnonlettersdonotobeymathxx}\\
-\mbox{}\hspace{2cm}\csb{MTeasynonlettersdonotobeymathxx}\\
-for deactivation and \\
-\mbox{}\hspace{2cm}\csb{MTmathoperatorsobeymathxx}\\
-\mbox{}\hspace{2cm}\csb{MTnonlettersobeymathxx}\\
-\mbox{}\hspace{2cm}\csb{MTeasynonlettersobeymathxx}\\
-for activation.\footnote{these commands are to be used outside of math mode.
+constraints, which will be commented more upon next. The commands%
+\footnote{these commands are to be used outside of math mode.
   Their scope is limited to the current \LaTeX{} environment or group. They use
   the \cs{everymath} and \cs{everydisplay} mechanism so if the document needs to
   modify these token lists it has to do so in a responsible manner, extending
   not annihilating their previous contents.} 
+%
+for deactivation are:\\
+\mbox{}\hspace{1cm}\csb{MTmathoperatorsdonotobeymathxx},\\
+\mbox{}\hspace{1cm}\csb{MTeasynonlettersdonotobeymathxx},\\
+\mbox{}\hspace{1cm}\csb{MTnonlettersdonotobeymathxx},\\
+and those for activation:\\
+\mbox{}\hspace{1cm}\csb{MTmathoperatorsobeymathxx} regards operator names and is executed by default,\\
+\mbox{}\hspace{1cm}\csb{MTeasynonlettersobeymathxx} is done by default and applies to \centeredline{${\#}\,{\$}\,{\%}\,{\&}\,.\,/\,\vert\,\backslash$} and also to $*$ under package option \xA7asterisk\xA7,\\
+\mbox{}\hspace{1cm}\csb{MTnonlettersobeymathxx} is \emph{not} done by default (see explanations why in the framed box next) and regards \centeredline{${!}\,{?}\,{,}\,{:}\,{;}\,{+}\,{-}\,{=}\,{(}\,{)}\,{[}\,{]}\,{<}\,{>}$} and also \cs{mid} and \cs{setminus} but applies to
+the braces ${\{}\,{\}}$ only if \csb{MTexplicitbracesobeymathxx} is also used.\par
+%
 %% suppression de cette note de bas de page \xE0 1.3u car elle est obsol\xE8te
 %% (pas s\xFBr si \xE0 100%, mais en tout cas l'exemple avec \mathbf{-} n'a plus
 %% de probl\xE8me.
@@ -2775,7 +3625,7 @@
 
 Even with \csb{MTnonlettersobeymathxx}, the parenthese-like symbols $($, $)$, 
 $[$, $]$, $<$ and $>$ and the slashes $/$, $\backslash$, \emph{if used as
-  left/right delimiters} (i.e. with |\left/\right|) do not react to math
+  left/right delimiters} (i.e.\@ with |\left/\right|) do not react to math
 alphabet commands. This is mainly explained by the fact that the text font
 will not contain suitable glyphs, hence no attempt was made to make the
 delimiters pick up their glyphs there.
@@ -2811,162 +3661,56 @@
 is $\mathbf{\mathopen{<} a,b
   \mathclose{>}}$ (neither brackets nor the comma do respond).
 
-\subsection{Greek letters}
 
-The Computer Modern fonts are very light and thin in comparison
-to many text fonts, and as a result rarely mix
-well with them (particularly if the Latin letters in
-math mode are upright). The following options are
-provided by \mst:
-\begin{description}
-\item[no option:] nothing is done by the
-  package, Greek letters are the default Computer
-  Modern ones or have been set-up by other packages;
-  for example by the |fourier| package with option
-  `upright', which gives upright Greek letters.
-\item[\xA7LGRgreek\xA7:] this is for fonts which additionally to Latin
-  letters also provide Greek letters in |LGR| encoding. Here is
-  a list from a 2012 standard \TeX{} installation: the Computer
-  Modern, Latin Modern, and the CM-LGC fonts; the Greek Font
-  Society fonts (such as GFS Didot), the epigrafica and kerkis
-  packages, the txfontsb package which extends the txfonts
-  package with LGR-encoded Greek letters; the Droid fonts, the
-  DejaVu fonts, the Comfortaa font, and the Open Sans font. The
-  |LGR| encoded |CM/LM| fonts (in serif, sans-serif and typewriter
-  family) give the nice Greek letters in upright shape from the
-  |cbfonts| package. To get these letters in your \mst math
-  mode, you can do the following:
-\begin{verbatim}
-% instructions to load the document fonts:
-\usepackage{nice_font}
-% and then the following:
-\renewcommand{\familydefault}{cmr} % or cmss or cmtt for sans resp. mono
-\usepackage[LGRgreek]{mathastext}
-\renewcommand{\familydefault}{\rmdefault} 
-\Mathastext % this re-initializes mathastext with the nice_font,
-% without changing the LGR font cmr/cmss/cmtt used for Greek letters
-% in math mode.
-\begin{document}
-\end{verbatim}
- If you use the \xA7italic\xA7 option note that the italic Greek
- letters from the |cbfonts| are not the same glyphs as 
-  the default Greek letters from the |OML| encoded font |cmmi|.
-\item[\xA7eulergreek\xA7:] the Greek letters will be taken from the Euler font (the
-  document does not have to load the eulervm package, \mst directly uses
-  some file included in this package, as it provides a mechanism to scale
-  by an arbitrary factor the Euler font.) The letters are upright.
-\item[\xA7symbolgreek\xA7:] the Greek letters will be taken
-  from the (Adobe Postscript) Symbol font. A command is provided
-  so that the user can scale the Symbol font to let it
-  better fit with the text font. The letters are upright.
-\item[\xA7selfGreek\xA7:] this option concerns only the eleven Greek
-  capitals from the |OT1|-encoding. It does nothing for the
-  lowercase Greek letters. The encoding used in the document does
-  not have to be |OT1|.
-\end{description}
-
-There is also \xA7LGRgreeks\xA7 which tells \mst to pick up in each math
-version the letters from the |LGR| encoded font used in that version,
-and \xA7selfGreeks\xA7 to tell \mst to do as for \xA7selfGreek\xA7 but
-separately in all math versions. 
-
-Under the \xA7subdued\xA7 option the Greek letters in the normal and bold math
-versions are kept to their defaults as found at the time of loading the
-package. 
-
-The commands \xA7\MTstandardgreek\xA7  allow at any point
-in the document to turn inactive any Greek related option passed to \mst. And
-conversely \xA7\MTcustomgreek\xA7 reactivates it.
-
-
-\subsubsection{Shape of Greek letters}
-
-Classic \TeX{} uses in math mode italic lowercase and
-upright uppercase Greek letters. French typography uses
-upright shape for both lowercase and uppercase. And the
-ISO standard is to use italic shape for both lowercase
-and uppercase.
-
-The Euler and Symbol fonts not being available in other than their
-default upright shape, this question of shapes for Greek letters
-raises issues only in the case of the options \xA7LGRgreek\xA7 and
-\xA7selfGreek\xA7.
-
-The options \xA7frenchmath\xA7, \xA7itgreek\xA7, \xA7upgreek\xA7, \xA7itGreek\xA7 and \xA7upGreek\xA7
-modify the Greek letter shapes according to the following rules, listed
-from the lowest to the highest priority:
-\begin{description}
-\item[no option:] the lowercase Greek letters are in the same shape as
-  Latin letters, and the uppercase in the same shape as applied to digits
-  and operator names,
-\item[\xA7frenchmath\xA7:] both lowercase and uppercase are in the same shape as
-  the digits and operator names (most of the time this means ``upright
-  shape'', but it can be otherwise),
-\item[\xA7itgreek\xA7, \xA7upgreek\xA7:] both lowercase and uppercase are in the
-  \cs{itdefault}, respectively the \cs{updefault} shape (at the time of
-  loading the package or at the time of a subsequent call to 
-  \cs{Mathastext} or \cs{MathastextWillUse}),
-\item[\xA7itGreek\xA7, \xA7upGreek\xA7:] same as above, but only for the uppercase
-  letters.
-\end{description}
-
-So, the default gives the classic \TeX{} behavior when option \xA7italic\xA7
-was passed. Each call to \cs{Mathastext} (or \cs{MathastextWillUse})
-macros (described in a later section) reinitializes the computation of
-the shapes.
-
-As mentioned already the package allows to define various ``math
-versions''. In the case of \xA7eulergreek\xA7 or \xA7symbolgreek\xA7 they apply
-to all these versions. In the case of the options \xA7LGRgreeks\xA7 or
-\xA7selfGreeks\xA7 (notice the additional ``s''), each math version is
-assumed to have its text font available in |LGR| (or |OT1|
-encoding) and also the shapes will be local to the math version.
-
-Finally version |1.15c| of \mst introduces new preamble-only
-commands to change the shapes, and even the font, used for Greek
-letters, in case of package options \xA7LGRgreek\xA7/\xA7selfGreek\xA7. They
-are \xA7\MTitgreek\xA7, \xA7\MTupgreek\xA7, \xA7\MTitGreek\xA7, \xA7\MTupGreek\xA7: these
-are used like the options and change only the shapes for the math
-versions which will be declared \emph{next} in the preamble; and
-\xA7\MTgreekfont\xA7|{name_of_font}| will tell the \emph{next} math
-versions to use that font family. To use this command you need to
-know the (little) name of a suitable font family available in |LGR|
-encoding: for example |lmr|, |txr| (needs |txfontsb|
-package on your system), |DejaVuSerif-TLF| (needs |dejavu| package
-on your system), etc\dots
-
-\enlargethispage{\baselineskip}
-
 \subsection{Unicode engines}
 
 \mst is minimally Unicode aware since |1.12| and can be used with \XeTeX{} or
-\LuaLaTeX{}. Starting with release |1.3|, it needs |luatex| to be at least
+\LuaTeX{}. Starting with release |1.3|, it needs |luatex| to be at least
 as recent as the one which was provided with the TL2013 distribution.
 
-\subsubsection{Caveat emptor}
+However \mst applies only to (a subset of) the |32-127| ascii range, and
+optionally to Greek letters, but for the latter only if provided via ``\TeX\
+fonts'' such as Euler, Symbol or LGR-encoded fonts. 
+It does not know how to use a given Unicode font simultaneously for Latin and
+Greek letters. 
 
-With \XeTeX{} the user is strongly advised to first consider using the
-|mathspec| package, which is designed for Unicode, with a key-value interface.
-With both \XeTeX{} and \LuaLaTeX{}, |unicode-math| is recommended for OpenType
-math fonts.
+Thus, first consider much better alternatives:
+\begin{itemize}
+\item Since 2018, the package |mathfont|%
+%
+\footnote{Conrad \textsc{Kosowsky}, \emph{Use TrueType and OpenType fonts in math mode}
+\url{https://ctan.org/pkg/mathfont}.}
+%
+adapts Unicode text fonts to usage in math mode.  It works with both \XeTeX\
+and \LuaTeX.
+\item For \XeTeX\ only, |mathspec|%
+%
+\footnote{Andrew Gilbert \textsc{Moschou}, \emph{Specify arbitrary fonts for mathematics in \XeTeX}
+\url{https://ctan.org/pkg/mathspec}.}
+%
+also allows usage of arbitrary text fonts in mathematics.
+\item and of course
+|unicode-math|%
+%
+\footnote{Will \textsc{Robertson}, et al., \emph{Unicode mathematics with
+    support for XeTeX and LuaTeX} \url{https://ctan.org/pkg/unicode-math}.}
+%
+is the standard package for using OpenType fonts which are equipped with the needed extra
+support being used in \TeX\ math mode.
+\end{itemize}
 
-Particularly in the latter case (\emph{i.e.} using |unicode-math|) you probably don't need, don't want, and should
-not use \mst: it is extremely far from being able to define a math font, as it
-applies basically only to a subset of the |32-127| ascii range, and in particular
-it does not know how to use a given Unicode font simultaneously for Latin and
-Greek letters. Again the user is strongly advised to look at |mathspec| and
-|unicode-math|.
+If using any one of the above you probably don't need, don't want, and should
+not use \mst.
 
-Let me point out explicitly that \mst has not been tested in any systematic
+Let me insist that \mst has not been tested in any systematic
 manner under the Unicode engines; and that it is expected to be most definitely
 incompatible with |unicode-math|, although your mileage may vary and some
 features may appear to work.
 
-When using \mst with either \XeTeX{} or \LuaLaTeX{} it is recommended to use
-the |fontspec| package (see remark below on \cs{encodingdefault}).
-Furthermore, it is \emph{necessary} to load |fontspec| with its |no-math|
-option, and this \emph{must} happen before loading \mst.
-
+When using \mst with either \XeTeX{} or \LuaTeX{} it is recommended to use the
+|fontspec| package (see remark below on \cs{encodingdefault}).  Furthermore,
+if using |fontspec| it is \emph{necessary} to load it with its
+|no-math| option, and this \emph{must} happen before loading \mst.
 \begin{framed}
 \begin{itemize}[label=$\bullet$, leftmargin=1em]
 \item
@@ -2980,9 +3724,9 @@
   The |amsmath| package, if used, \emph{must} be loaded \emph{prior} to \mst.
 
 \item
-  Under |lualatex| engine, it has long been recommended to also load the package
-  |lualatex-math|. Please check its documentation as possibly it has now
-  been incorporated upstream (I am not following up on the situation).
+  Under |lualatex| engine, it is recommended to also load the package
+  |lualatex-math|.%  Please check its documentation as possibly it has now
+  % been incorporated upstream (I am not following up on the situation).
 \end{itemize}
 \end{framed}
 
@@ -2997,7 +3741,7 @@
 I already mentioned in the section \ref{sec:ic} the fact that
 the italic corrections were not available for OpenType fonts
 under the \XeTeX{} engine and only partially available for the
-\LuaLaTeX{} engine, with the result that the spacings in math
+\LuaTeX{} engine, with the result that the spacings in math
 mode when using for the letters an upright text font will be
 less satisfying than with the standard PDF\TeX{} engine (the
 OpenType fonts not being usable with the latter engine, this is
@@ -3020,7 +3764,7 @@
 % BORDEL DE BORDEL DE FAIT CHIER \verb ET Text for \verb command ended by end
 % of line. je l'ai patch\xE9 dans etoc et xint mais pas ici encore.
 |MINUS SIGN U+2212|.%
-\footnote{Thanks to \textsc{Tobias~Brink} who asked for this feature.}
+\footnote{Thanks to Tobias~\textsc{Brink} who asked for this feature.}
 %
 Check \hyperref[nicodeminus]{\ttfamily\hyphenchar\font=189 its documentation}
 on page \pageref{nicodeminus}.
@@ -3214,249 +3958,7 @@
       is better to turn \mst off for their dealings.
     \end{framed}
    
-\section{Package options and commands}
 
-\subsection{Summary of main options}
-   \begin{description}
-\item[{\xA7italic\xA7, \xA7frenchmath\xA7}:] italic letters in
-math, upright uppercase if \xA7frenchmath\xA7.
- \item[{\xA7subdued\xA7}:] acts in a subdued way. The \LaTeX{} normal and bold
- math versions are left (quasi) unchanged. With version |1.15e| of
- the package this statement applies also to the math alphabets
- \cs{mathbf}, \cs{mathit}, \cs{mathsf}, and \cs{mathtt} (and not
- only to \cs{mathnormal} and \cs{mathrm} as in previous versions.)
-\item[{\xA7LGRgreek\xA7, \xA7eulergreek\xA7, \xA7symbolgreek\xA7}:] the
-  Greek letters will be taken, respectively from the
-  text font itself (in |LGR| encoding), or from the Euler
-  font, or from the Postscript Symbol font.
-\item[{\xA7symbolmax\xA7}:] all characters
-  other than letters and digits, are taken from the
-  Symbol font. This option also makes a number of
-  further glyphs available, such as some basic
-  mathematical arrows, and the sum and product
-  signs. For documents with very simple needs in
-  mathematical symbols, \mst with option
-  \xA7symbolmax\xA7 may give in the end a PDF file quite
-  smaller than the one one would get without the
-  package.
-\item[{\xA7defaultmathsizes\xA7}:] \mst sets up bigger sizes
-for subscripts (it also copies code from the |moresize| package to redefine
-  \cs{Huge} and define \cs{HUGE}). Use this option to prevent it from
-  doing so.
-\item[{\xA7defaultalphabets\xA7}:] by default, \mst redeclares the math
-  alphabets \cs{mathrm}, \cs{mathit}, \cs{mathtt} etc\dots{} (but not
-  \cs{mathcal} of course) to refer to the current document text fonts (at the
-  time of loading the package and in each \mst math version). Use
-  this option to prevent it from doing so (each alphabet also has
-  its own disabling option).
-\end{description}
-
-\subsection{Miscellaneous}
-
-\begin{description}
-\item[the en-dash as minus sign:] very often the -
-  character from the text font does not give a good
-  minus sign. So by default, the package uses the
-  en-dash sign \textendash{}. Use \xA7noendash\xA7 to
-  deactivate it. Starting with version |1.12| of the
-  package this `en-dash as minus' should work in all
-  encodings, including Unicode (if |fontspec| has been
-  loaded); see also |unicodeminus| for OpenType fonts.
-
-\item[amsmath:] \strut the behaviour of the
-  \cs{DeclareMathOperator}\RLNote{changed:}{1.3n} command
-  of |amsmath| is modified by \mst for it to use the correct font.
-  Additionally, release |1.3n| of \mst at long last also handles an extra
-  operation done by |amsmath| for |'.:/-*| to be used in operator names
-  without the extra math spacing.%
-%
-\footnote{To the experts: there is a long story here that \cs{newmcodes@}
-  hardcodes the font, that it was not compatible with Unicode engines, that
-  during some time (2013-2016) \texttt{lualatex-math} fixed that and very
-  recently |amsopn.sty 2016/03/08 v2.02| also, so now \texttt{lualatex-math
-    1.6} does nothing as it is already fixed ``upstream'' in |amsopn.sty|, but
-  anyhow in both cases, this still hardcoded the font, so finally \mst does
-  the right thing from its point of view. See the code comments for more,
-  there is an issue here with \LuaLaTeX\ not applying the curly right quote
-  contrarily to \XeLaTeX.}
-%
-This customization is suppressed in \xA7subdued\xA7 mode for the |normal| and |bold|
-math versions.
-
-\item[hbar:] the default \LaTeX\ definition of \xA7\hbar\xA7 would in our context
-  make use of the |h| of the current math font (so for us, it is also the text
-  font, perhaps in italic shape), but with a bar accross the |h| from the
-  original default math font for letters (usually |cmmi|). We redefine
-  \cs{hbar} to use the text font macron accent (|\=|) as a mock math accent
-  (this takes into account the \xA7italic\xA7 option and is compatible with
-  subscripts and superscripts).
-
-  Since |1.12| \mst when dealing with a Unicode font sets the \cs{hbar}
-  to be the character from the font having hexadecimal codepoint |U+0127|.
-
-  Since |1.3u| the general 8bits font encoding is
-  supported\RLNote{changed:}{1.3u} (see discussion of the |mathaccents| option
-  at end of this list for the shared limitations). Brief testing with
-  various usual \TeX\ fonts shows that the vertical positioning of
-  the bar isn't satisfying. It is planned to either add a parameter to
-  adjust it or to modify altogether the mode of construction of the |\hbar|.
-
-  Use \xA7nohbar\xA7 to tell \mst not do provide its own |\hbar|.
-
-
-\item[dotless i and j:] by default the package redefines \cs{imath} and
-  \cs{jmath} to give (in math mode) the dotless i and j (if it exists at
-  all) from the text font.%
-%
-\footnote{\CHANGED{1.3t}Since \texttt{1.12} it also redefined \cs{i} and
-  \cs{j} for usability both in text and math modes, but this has been
-  dropped at \texttt{1.3t}. Breaking change!}
-
-\item[asterisk:] versions of \mst earlier than |1.2d [2013/01/02]|
-  did not do anything
-  with the \cs{ast} control sequence but did pick the asterisk
-  $*$ in the document text font, and this often was a rather
-  silly thing as the text asterisk is generally in a raised
-  position. Furthermore, the $*$ lost its status of a binary
-  operator and was treated as an `ordinary' symbol. An option
-  |noasterisk| turned this feature off. Starting with |1.2d|,
-  the |noasterisk| option is deprecated and the new default is
-  to do nothing. But when option \xA7asterisk\xA7 is received by the
-  package, then both \cs{ast} and $*$ are simultaneously
-  modified to use (as binary operators) the text asterisk,
-  slightly lowered. The amount of lowering\footnote{with the
-    option \texttt{symbolmisc}, the asterisk is picked from
-    the Symbol font, and the amount of lowering is
-    non-customizable; however if a math alphabet command is
-    used, the asterisk is then again from a text font and the
-    lowering will be as specified by \cs{MTlowerast}.} is
-  decided by the mandatory argument to the command
-  \csb{MTlowerast}\marg{dimen}. The package initially does
-  \cs{MTlowerast}|{.3\height}|. Doing \cs{MTlowerast}|{.5ex}| is
-  not a good idea as it does not scale properly in the script
-  and scriptscript styles. With an argument given as a
-  multiple of |\height|, the asterisk will behave as expected
-  in subscripts and subscripts of subscripts. But $*$ is now
-  `mathematically active'\thinspace\footnote{in a hopefully
-    safe way, for example {\ttfamily\$\string\label\{eq*1\}\$}
-    is ok.} and |$R^*$| or |$R^\ast$| \emph{must} be input as
-  |$R^{*}$| and |$R^{\ast}$|. Furthermore, they will obey the
-  math alphabet commands.
-
-\item[\XeTeX{} and \LuaLaTeX{}:] regarding the en-dash and the
-  dotless i and j, the package is now under the Unicode engines
-  compatible not only with the ``Unicode'' \LaTeX\ font encodings
-  EU1 (\XeTeX, old fontspec), EU2 (\LuaLaTeX, old fontspec), TU
-  (\XeTeX\ and \LuaLaTeX, modern fontspec), but also with
-  traditional 8bits-encodings declared as a |fontenc|
-  option.\RLNote{NEW FEATURE!}{1.3u} Formerly, with a Unicode engine,
-  only OT1, T1 and LY1 were supported by \mst as the 8bit encoding
-  of the document text font, regarding the minus as en-dash and
-  the dotless i and j.
-
- \item[fontspec:] one more note to users of
-\XeTeX{}/\LuaLaTeX{} with |fontspec|:\newline 
-\fbox{it has to be
-loaded {with the option} |no-math|}, 
-and \emph{before} \mst.
-
-\item[vec accent:] The default \cs{vec} accent is not
-  appropriate for upright letters, so  \mst
-  provides a \cs{fouriervec} which takes its glyph in a
-  Fourier font, and an Ersatz \cs{pmvec} 
-  which is reasonably good looking on upright letters
-  and works with the \cs{rightarrow} glyph. Contrarily
-  to version |1.0|, the default \cs{vec} is not
-  overwritten with \cs{fouriervec}. And contrarily to
-  version |1.1|, one now needs to pass the option
-  \xA7fouriervec\xA7 to have the math accent \cs{fouriervec}
-  defined by the package.%
-%
-\footnote{this costs a math family, as I never came back to this to try to
-  do otherwise.}
-
-
-\item[math alphabets:] 
-  \begin{itemize}
-  \item We define a new math alphabet command
-    \cs{mathnormalbold} which gives direct access to
-    the bold version of the \cs{mathnormal} alphabet
-    (rather than using either the \cs{bm} command from
-    the |bm| package or the \cs{boldsymbol} command
-    from the |amsbsy| package). As it does not
-    exist in the default \LaTeX{} math font set-up, this
-    alphabet is \emph{not} subjected to the {subdued option} action.
-  \item The other math alphabet changing commands
-    defined by the package are \cs{MathEulerBold},
-    \cs{MathEuler} and \cs{MathPSymbol}.
-  \item \cs{mathnormal}, \cs{mathrm}, \cs{mathbf},
-  \cs{mathit}, \cs{mathsf} and \cs{mathtt} are modified
-  to make reference to the document text fonts (this
-  can be disabled by suitable package options).
-\item version |1.2| of \mst has extended the scope of the math
-  alphabets to apply to non-alphabetical characters and to
-  operator names. This respects the automatic white spaces
-  added by \TeX{} around math symbols.
-\item the\RightNote{1.3i}
-  extra skips around letters (see \autoref{sec:mathskips} and
-  \autoref{sec:ic}) are removed in the scope of the math alphabets.
-  \end{itemize}
-
-\item[math accents:] if option \xA7mathaccents\xA7 is used then \mst attempts to let
-  the math accents |\acute|, |\grave|, etc... use the suitable glyphs from the
-  text font. Prior to |1.3u| only |OT1|, |T1|, and |LY1| were supported (via
-  hardcoded slots). It should now work with any 8bits font
-  encoding\RLNote{NEW FEATURE!}{1.3u} having been declared as an option to the
-  |fontenc| package (and of course providing the ten needed text accents which
-  will mock math accents).%
-  %
-  \footnote{The code will raise low-level \TeX\ errors if the user attempts to
-    use an 8bits font encoding whose \LaTeX\ definition file is lacking the
-    suitable uses of \cs{DeclareTextAccent} or if the low level \LaTeX\ macro
-    implementation of text accents changes significantly; in such cases please
-    report the problem to the author, so that it can be documented in future
-    releases!}
-
-  The |\vec| math accent is not handled here, as it is not available in the
-  usual 8bits font encodings. See the \xA7fouriervec\xA7 option or the \xA7\pmvec\xA7
-  command.
-
-  The math accents obey the \xA7subdued\xA7 option\RLNote{NEW FEATURE!}{1.3u}
-  and will change in sync with the \mst-ified text font used in
-  each non subdued math version.
-
-  (Very) brief testing during |1.3u| development with \XeTeX\ and \LuaTeX\ let
-  the author conclude that usage with the \cs{Umathaccent} primitive of an
-  OpenType accent glyph slot (which in the text font is for usage as a
-  postpended combining character) gives definitely bad horizontal placements
-  for both engines (each in its own way). Thus, the redefinitions of accents
-  for a \mst declared math version with an OpenType font is by default
-  canceled.%
-%
-\footnote{I.e., the \cs{grave} etc... control sequences will, in math versions
-  with an OpenType \mst-ified font, expand to macros holding their initial
-  meanings, unmodified by \mst, which was in force at the
-  |\string\begin\string{document\string}|.}
-%
-  Use \xA7unimathaccents\xA7 to force usage of the OpenType font text
-  accents glyph slots with the \cs{Umathaccent} primitive. Expert users are
-  invited to check out the code and to contribute suggestions if some extras
-  can improve it.
- 
-\item[varying font encodings:] the very first release of \mst dealt with only
-  one font; very soon thereafter it acquired the capacity to define multiple
-  math versions, each one using its own text font. But, as was documented at
-  this location formerly, various encoding dependent decisions were done once
-  and for all during package loading.
-
-  This meant in particular that the minus sign (using the text endash), the
-  dotless |i| and |j|, the |\hbar|, the math accents were all set up for only
-  one unique font encoding. It was thus recommended that all math versions
-  share the same font encoding.
-
-  The |1.3u| release has lifted this restriction.\RLNote{NEW FEATURE!}{1.3u}
-\end{description}
-
 % 2 septembre 2013; finalis\xE9 22:58
 \makeatletter
 \def\@jfendshrtverb #1#2\xA7{\@ifundefined{FLAG#2}%
@@ -3465,55 +3967,12 @@
              {\hyperref[#2]{\ttfamily #1#2}\endgroup}}
 \makeatother
 
-\subsection{Commands}
+\newsavebox\boite
 
-A few preliminary comments, mainly destined to advanced users aware of some
-\TeX\ innards (more extensive explanations are to be found in the code
-comments).
+\section{Package commands}
 
-The timing for actions of \mst falls into three cases:
+\subsection{Commands for regular usage}
 
-\begin{enumerate}
-\item things done during the loading of the package, or delayed to
-  |\AtBeginDocument|,
-\item things done as the result of user commands, either in the preamble or in
-  the body of the document,
-\item things done everytime math mode is entered.
-\end{enumerate}
-
-The second category overlaps with the others, as the (preamble) use of some
-commands can have either immediate effect or only trigger some actions in
-|\AtBeginDocument| or perhaps only influence the things done later by \mst
-each time math mode is entered.
-
-The third category deserves some brief additional comments: it mainly (but not
-exclusively) regards the ``math activation'' of characters, and conversely all
-``math activations'' fall into this category. The package re-checks each time
-math mode is entered if some characters have been made in-between catcode
-active, or math active, and takes appropriate decisions: one important aspect
-of this issue is that |babel|'s mechanism for activating character was not, last
-time I checked, very robust against math active characters. I now checked
-again (on January 15, 2016) that
-\begin{verbatim}
-    \documentclass{article}
-    \usepackage[french]{babel}
-    \usepackage{mathtools}\mathtoolsset{centercolon}
-    \begin{document}
-    $:$
-    \end{document}
-\end{verbatim}
-creates an infinite loop (see section \ref{sec:compat} where this was
-mentioned already, some years ago). Thus \mst has (since |1.2e 2013/01/10|) a
-somewhat elaborate mechanism related to these issues (see the code comments),
-installed into the list of things done by \TeX\ systematically each time
-it enters math mode. For some legacy reason the package also puts into
-this list a few other things which could arguably be done elsewhere once and
-for all. The command \csb{MTeverymathoff} cancels all actions done by
-\mst.
-
-
-\newsavebox\boite
-
 \subsubsection{Preamble-only commands}
 These commands mainly facilitate the definition of math versions, in a \mst
 extended sense. It is not necessary to use them to activate the package
@@ -3559,7 +4018,7 @@
       $abcde\displaystyle\ointop\bigvee\biguplus\bigotimes\bigoplus$}
     Naturally, for this one needs an initial math font setup with some nice
     bold fonts also for large symbols. This is the case with the excellent
-    |txfonts| package of \textsc{Young~Ryu}. As the present document must
+    |txfonts| package of Young~\textsc{Ryu}. As the present document must
     use many fonts and declares many math alphabets, we did not load the full
     package and fonts but only the |largesymbols|:\hfill\break
     |\DeclareSymbolFont{largesymbols}{OMX}{txex}{m}{n}|\hfill\break
@@ -3629,17 +4088,417 @@
   \meta{factor}.
 \item \xA7\MTSymbolScale\xA7\marg{factor}: scales the Symbol font by
   \meta{factor}.
-\item \xA7\MTitgreek\xA7, \xA7\MTupgreek\xA7, \xA7\MTitGreek\xA7, \xA7\MTupGreek\xA7:
-optional commands, active only in
-the case of the \blueit{LGRgreek} option, to decide the shape of the
-Greek letters in the versions which will be declared next. 
- \item \xA7\MTgreekfont\xA7\marg{fontfamily}: optional command with a mandatory
- argument which specifies the font for Greek letters in all \mst math
- versions declared afterwards via \cs{Mathastext} or \cs{MTDeclareVersion}. Only effective with \blueit{LGRgreek} option.
+\item \xA7\MTitgreek\xA7, \xA7\MTupgreek\xA7, \xA7\MTitGreek\xA7, \xA7\MTupGreek\xA7: these commands
+  are active in case the \blueit{LGRgreek} option was used; they act
+  as the options of the similar names \xA7itgreek\xA7, \xA7upgreek\xA7, \xA7itGreek\xA7,
+  \xA7upGreek\xA7, but only for the Greek letters in the versions yet to be
+  defined.
+\item \xA7\MTgreekfont\xA7\marg{fontfamily}: a command with a mandatory argument
+  which specifies the font family for Greek letters in all \mst math versions
+  declared afterwards via \xA7\Mathastext\xA7 or \xA7\MTDeclareVersion\xA7. Only
+  effective if \blueit{LGRgreek} option was passed to the package.
+
 \end{enumerate}
 
-\subsubsection{Commands usable only outside of math mode}\label{sec:cmdsoutmath}
+\subsubsection{Commands for body or math}
 
+\begin{enumerate}[label=$\bullet$, leftmargin=1em]
+\item \xA7\MTversion\xA7\oarg{nametext}\marg{namemath},
+  \xA7\MTversion\xA7$\ast$\marg{namemath}, also known as
+  \xA7\Mathastextversion\xA7 (and as \cs{MTVersion}, and
+  \cs{mathastextversion}):
+  \begin{enumerate}[label=$\bullet$]
+  \item the non-starred version changes
+    \emph{both} the document text fonts and the math fonts (for those characters
+    treated by \mst): the mandatory argument is the math version to be used
+    for math; the optional argument is the name of (another) \mst-declared math
+    version, the font which was chosen during its declaration will be set as
+    document text font (and |\familydefault| etc\dots also are
+    redefined). In the absence of the optional argument, the mandatory one is
+    used. The versions \emph{must} be either |normal|, or |bold|, or previously
+    declared ones via \xA7\Mathastext\xA7 or \xA7\MTDeclareVersion\xA7. 
+  \item the starred variant\RightNote{1.3c} does the math set-up, but changes \emph{nothing} to
+    the text fonts (see \autoref{sec:mathversions} for a description of the math
+    set-up, which summarizes 
+    what is done additionally to only using \LaTeX{}'s |\mathversion|).
+  \end{enumerate}
+  \cs{MTversion}\oarg{nametext}\marg{namemath} does \xA7\MTeverymathdefault\xA7
+  (except for |\MTversion{normal}| and |\MTversion{bold}| under package option
+  |subdued|), which in particular activates the insertion of skips around
+  letters specified by \xA7\MTsetmathskips\xA7 and also, if the font used is not
+  oblique the insertion of italic corrections (for better positioning of
+  subscripts; see the discussion in \autoref{sec:ic}). Under the |frenchmath|
+  option the package checks separately the letter shape for lowercase and
+  uppercase. 
+
+  \RightNote{1.3j}\cs{MTversion} also does \xA7\MTexistsdoesskip\xA7,
+  \xA7\MTforalldoesskip\xA7, and also \xA7\MTprimedoesskip\xA7,
+  \csb{MTmathoperatorsobeymathxx}, except under the |subdued| option for
+  \emph{normal} and \emph{bold}, in which case it does the opposite actions.
+
+\item \xA7\hbar\xA7: this macro is by default redefined (in a way compatible with
+  the |italic| option) combining the |h| letter and the \={ } accent from the
+  \mst font. Note that \cs{mathrm}|{\hbar}| and \cs{mathbf}|{\hbar}| will
+  work and that \cs{hbar} does scale in subscripts and exponents. Since
+  |1.3u|, this is a priori compatible with all 8bits text font
+  encodings\RightNote{1.3u} supporting the |\=| text accent in
+  the LaTeX way.%
+%
+\footnote{\RightNote{1.3u}The horizontal skips for letter |h| from
+  \cs{MTsetmathskips} are ignored for \cs{hbar}. Formerly, a positive
+  ``before'' skip was not properly taken into account for the horizontal
+  positioning of the accent and thus gave a bad result. The user can extend
+  the package \cs{hbar} definition to add skips.}
+\footnote{\RightNote{1.3u}The \cs{hbar} redefinition is canceled in normal and
+  bold math versions under the |subdued| option.}
+  
+\item \xA7\fouriervec\xA7: this is a |\vec| accent taken from the Fourier font;
+the |fourier| package need not be loaded. Active only
+if option \xA7fouriervec\xA7.
+\item \xA7\pmvec\xA7: this provides a poor man \cs{vec} accent command, for
+upright letters. It uses the right arrow. Does not change
+size in subscripts and exponents.
+ \item \xA7\mathnormal\xA7, \xA7\mathrm\xA7, \xA7\mathbf\xA7, \xA7\mathit\xA7, \xA7\mathsf\xA7,
+\xA7\mathtt\xA7: modifications of the original \cs{mathnormal},
+\cs{mathrm}, \cs{mathbf}, \cs{mathit}, \cs{mathsf}, \cs{mathtt} to
+use the mathastextified font. The
+underlying internal \LaTeX{} structures related to the original
+commands are not overwritten, so the original commands can be saved under
+other names before |\usepackage{mathastext}|, to be used in case of
+necessity  (this is what option |subdued| does.) 
+ \item \xA7\mathnormalbold\xA7: a bold version of \cs{mathnormal}. Differs
+from \xA7\mathbf\xA7 when the |italic| option has been used, or when use
+has been made of \xA7\MTlettershape\xA7 to specify a shape for letters
+distinct from the one for digits and operator names, or similarly
+when the math version has been declared via \xA7\MTDeclareVersion\xA7 with
+its optional parameter for shape of letters.
+\item \RLNote{new:}{1.3x}\xA7\mathgreekup\xA7: math alphabet, only available under
+  \xA7LGRgreek\xA7 (or \xA7LGRgreeks\xA7) option (and if with \xA7subdued\xA7 only in the
+  non-|normal| and non-|bold| \mst-enriched math versions) which gives access
+  to `upright' Greek letters (picked up from a font available in
+  |LGR|-encoding).  The actual shape is configurable via re-defining \xA7\MTgreekupdefault\xA7.
+\item \RLNote{new:}{1.3x}\xA7\mathgreekit\xA7: math alphabet, only available under
+  \xA7LGRgreek\xA7 (or \xA7LGRgreeks\xA7) option (and if with \xA7subdued\xA7 only in the
+  non-|normal| and non-|bold| \mst-enriched math versions) which gives access
+  to `italic' Greek letters (picked up from a font available in
+  |LGR|-encoding).  The actual shape is configurable via re-defining \xA7\MTgreekitdefault\xA7.
+\item \xA7\inodot\xA7, \xA7\jnodot\xA7: the corresponding glyphs in the \mst-ified
+  font for use in math mode. By default, |\imath| and |\jmath| are redefined to use
+  them. Since \texttt{1.3t}, these macros obey the \texttt{subdued}
+  regime.
+%
+\footnote{\RightNote{1.3t}Formerly (i.e.\@ since \texttt{1.12}) \mst
+  redefined the \texttt{\string\i} and \texttt{\string\j} as robust
+  commands usable both in text and math mode and using the above macros
+  in the latter. I have decided it wasn't such a good idea and there is
+  from now on \texttt{1.3t} no such redefinition of \texttt{\string\i}
+  and \texttt{\string\j}!}
+\item \xA7\MathEuler\xA7, \xA7\MathEulerBold\xA7: math alphabets to access
+all the glyphs of the Euler font, if option |eulergreek| (or
+|eulerdigits| was passed to the package.
+\item \xA7\MathPSymbol\xA7: math alphabet to access the Symbol font.
+\item when one of the options \blueit{symbolgreek},
+  \blueit{eulergreek}, or \blueit{selfGreek} is passed to the package
+  the capital Greek letters which look like their Latin
+  counterparts acquire  names: \cs{Digamma},
+  \cs{Alpha}, \cs{Beta}, \cs{Epsilon}, \cs{Zeta},
+  \cs{Eta}, \cs{Iota}, \cs{Kappa}, \cs{Mu}, \cs{Nu},
+  \cs{Omicron}, \cs{Rho}, \cs{Tau}, \cs{Chi} (no
+  \cs{Digamma} for Symbol). Also an \cs{omicron}
+  control sequence is provided.
+\item |LGR| Greek and `var'-letters: only the
+  \cs{varsigma} is available in this encoding, so using
+  for example \cs{varphi} will load the previous default math
+  font. It might thus be suitable when recompiling
+  already written \LaTeX{} sources to add to the preamble
+  \cs{let}\cs{varphi}$=$\cs{phi},
+  \cs{let}\cs{varepsilon}$=$\cs{epsilon}, etc\dots,
+  in case only the `variant' form of the letter was used
+  in the documents.
+\item \hypertarget{symbolmisc}{Miscelleneous mathematical symbols} from the
+  postscript Symbol font are made available (or replaced) by option
+  \xA7symbolmisc\xA7.\footnote{option \blueit{asterisk} is also required to treat the
+    $*$. 
+    Recall from \autoref{sec:mathxx} that the asterisk in math mode (also
+    when using the control sequence \cs{ast}) appears then to \TeX{} to be
+    a composite object.}
+  \makeatletter\let\mst at doasterisk\mst@@doasterisk\makeatother They are
+  \cs{prod}~$\prod$ \cs{sum}~$\sum$ \cs{implies}~$\implies$
+  \cs{impliedby}~$\impliedby$ \cs{iff}~$\iff$ \cs{shortiff}~$\shortiff$
+  \cs{to}~$\to$ \cs{longto}~$\longto$ \cs{mapsto}~$\mapsto$
+  \cs{longmapsto}~$\longmapsto$ \cs{aleph}~$\aleph$ \cs{inftypsy}~$\inftypsy$
+  \cs{emptyset}~$\emptyset$ \cs{surd}~$\surd$ \cs{nabla}~$\nabla$
+  \cs{angle}~$\angle$ \cs{forall}~$\forall$ \cs{exists}~$\exists$
+  \cs{neg}~$\neg$ \cs{clubsuit}~$\clubsuit$ \cs{diamondsuit}~$\diamondsuit$
+  \cs{heartsuit}~$\heartsuit$ \cs{spadesuit}~$\spadesuit$
+  \cs{smallint}~$\smallint$ \cs{wedge}~$\wedge$ \cs{vee}~$\vee$ \cs{cap}~$\cap$
+  \cs{cup}~$\cup$ \cs{bullet}~$\bullet$ \cs{div}~$\div$ \cs{otimes}~$\otimes$
+  \cs{oplus}~$\oplus$ \cs{pm}~$\pm$ \cs{ast}~$\ast$ \cs{times}~$\times$
+  \cs{proptopsy}~$\proptopsy$ \cs{mid}~$\mid$ \cs{leq}~$\leq$ \cs{geq}~$\geq$
+  \cs{approx}~$\approx$ \cs{supset}~$\supset$ \cs{subset}~$\subset$
+  \cs{supseteq}~$\supseteq$ \cs{subseteq}~$\subseteq$ \cs{in}~$\in$
+  \cs{sim}~$\sim$ \cs{cong}~$\cong$ \cs{perp}~$\perp$ \cs{equiv}~$\equiv$
+  \cs{notin}~$\notin$ \cs{langle}~$\langle$ \cs{rangle}~$\rangle$. And a
+  \cs{DotTriangle}~$\DotTriangle$ is made available by option \xA7symbolre\xA7 (which
+  overwrites \cs{Re} and \cs{Im}: $\Re,\Im$). The \cs{inftypsy} and
+  \cs{proptopsy} have these names to leave up to the user the choice to replace
+  (or no) the original (larger) \cs{infty} $\infty$ and \cs{propto} $\propto$.
+
+  Regarding the \cs{prod} and \cs{sum} commands: they will use the Symbol
+  glyphs $\prod\sum$ in inline math, and in display math the Computer Modern
+  ones (or whatever is set up by other packages; here we have the symbols from
+  |txfonts|): \[\prod\sum\] The package
+  provides \cs{prodpsy} and \cs{sumpsy}: if one really wants in all
+  situations the Symbol glyphs, one can do \cs{let}\cs{prod}\cs{prodpsy} and
+  \cs{let}\cs{sum}\cs{sumpsy}. Also \cs{MToriginalprod} and \cs{MToriginalsum}
+  will refer to the \cs{prod} and \cs{sum} before redefinition by the
+  package: this is to allow constructs such as |$\displaystyle\MToriginalprod$|
+  or |\[\textstyle\MToriginalprod\]|, because they would not work with the
+  \cs{prod} and \cs{sum} as re-defined by the package.
+
+\end{enumerate}
+
+
+\subsection{Commands for expert usage}
+
+A few preliminary comments, mainly destined to advanced users aware of some
+\TeX\ innards (more extensive explanations are to be found in the code
+comments).
+
+The timing for actions of \mst falls into three cases:
+
+\begin{enumerate}
+\item things done during the loading of the package, or delayed to
+  |\AtBeginDocument|,
+\item things done as the result of user commands, either in the preamble or in
+  the body of the document,
+\item things done everytime math mode is entered.
+\end{enumerate}
+
+The second category overlaps with the others, as the (preamble) use of some
+commands can have either immediate effect or only trigger some actions in
+|\AtBeginDocument| or perhaps only influence the things done later by \mst
+each time math mode is entered.
+
+The third category deserves some brief additional comments: it mainly (but not
+exclusively) regards the ``math activation'' of characters, and conversely all
+``math activations'' fall into this category. The package re-checks each time
+math mode is entered if some characters have been made in-between catcode
+active, or math active, and takes appropriate decisions: one important aspect
+of this issue is that |babel|'s mechanism for activating character was not, last
+time I checked, very robust against math active characters. I now checked
+again (on January 15, 2016) that
+\begin{verbatim}
+    \documentclass{article}
+    \usepackage[french]{babel}
+    \usepackage{mathtools}\mathtoolsset{centercolon}
+    \begin{document}
+    $:$
+    \end{document}
+\end{verbatim}
+creates an infinite loop (see section \ref{sec:compat} where this was
+mentioned already, some years ago). Thus \mst has (since |1.2e 2013/01/10|) a
+somewhat elaborate mechanism related to these issues (see the code comments),
+installed into the list of things done by \TeX\ systematically each time
+it enters math mode. For some legacy reason the package also puts into
+this list a few other things which could arguably be done elsewhere once and
+for all. The command \csb{MTeverymathoff} cancels all actions done by
+\mst.
+
+\subsubsection{Expert commands usable everywhere}\label{sec:cmds}
+
+\begin{enumerate}[label=$\bullet$, leftmargin=1em]
+
+\DeleteShortVerb{\|}%
+
+\item \xA7\MTsetmathskips\xA7\marg{a-z|A-Z}\marg{muglue\_before}\marg{muglue\_after}:
+%
+\MakeShortVerb{\|}%
+%
+  is\RightNote{1.3a} used to specify extra skips (or rather mu glue) to be
+  inserted in math mode, before and after a letter. The rationale is that
+  standard text fonts used in math mode may sometimes cause glyph (near-)
+  collisions with math symbols, as \TeX{} has some implicit expectations on the
+  design of fonts for math letters. 
+
+  \begin{framed}
+    These extra skips around letters are set at their natural width and do not
+    add any stretchability or shrinkability to the math formula as a whole,
+    nor do they result in extra potential break points.
+  \end{framed}
+  
+  Random (silly) examples:
+  \centeredline{|\MTsetmathskips{x}{\medmuskip}{\thickmuskip}|} \centeredline
+  {|\MTsetmathskips{A}{.5mu}{2.3mu}|} and the effect:
+  \begingroup\MTversion{italic}\MTsetmathskips{x}{\medmuskip}{\thickmuskip}%
+             \MTsetmathskips{A}{.5mu}{2.3mu}%
+  $vwxyzABC^{vwxyzABC}$\endgroup. The effect obeys the usual \LaTeX{} scoping
+  rules.
+
+  The first argument of \xA7\MTsetmathskips\xA7 may be any expandable code giving a
+  letter; this facilitates use of |\MTsetmathskip| in |\@for| loops such as
+  this one:
+\begin{verbatim}
+\makeatletter
+\@for\@tempa:=a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z\do{%
+              \MTsetmathskips{\@tempa}{2mu}{2mu}}%
+\makeatother
+\end{verbatim}
+
+  \begin{framed}
+    \emph{\color{magenta}\bfseries Starting with |v1.3i|:} the extra skips are
+    \emph{not} applied to the letters within the scope of math alphabet
+    commands, or the letters from operator names (pre-defined or user
+    declared).
+  \end{framed}
+
+{\footnotesize
+  Note that contrarily to the \csb{MTexistsskip}, \csb{MTforallskip}, and
+  \csb{MTprimeskip} commands described next, these extra skips (which may be
+  specified in the preamble) are not recorded in the definition of the math
+  version (as defined via \xA7\Mathastext\xA7 with its optional argument or via
+  \xA7\MTDeclareVersion\xA7). The declared skips hold thoughout the document
+  until modified or canceled, independently of math versions (of
+  course, \mst cancels the skips in the normal and bold math versions if
+  package option \blueit{subdued} was used).\par}
+
+\DeleteShortVerb{\|}
+
+\item \xA7\MTunsetmathskips\xA7\marg{a-z|A-Z}:
+%
+\MakeShortVerb{\|}
+%
+  cancels the skips 
+  for that letter (they are not set to |0mu| but completely removed).
+
+
+  % setting the skips to |0mu| which prevents formation of ligatures
+  % when the letter is used inside a \cs{mathbf} for example). Example (using a
+  % version with upright Latin Modern): \centeredline
+  % {|\MTsetmathskips{f}{8mu}{0mu}$gffg\MTunsetmathskips{f}ff\mathbf{ff}$|}
+  % gives: \begingroup\MTversion{upright}%
+  % \MTsetmathskips{f}{8mu}{0mu}$gffg\MTunsetmathskips{f}ff\mathbf{ff}$\endgroup.
+  % The ligature was correctly formed.
+
+  The argument may be a macro (or any expandable code) expanding to a letter.
+
+
+\item \xA7\MTexistsskip\xA7\marg{math glue}: specifies the amount of skip or more
+  generally glue to put after each $\oldexists$ math symbol. Indeed, upright
+  letters (or digits for that matter) often appear to be positioned a bit too
+  close to the quantifier: $\oldexists\mathrm{B}$. The package default is to
+  add a |1mu| skip (this default is set to zero in the case of |italic|):
+  $\oldexists\mskip 1mu\mathrm{B}$. One can change the default with the
+  following syntax: |\MTexistsskip{2mu plus 1mu minus 1mu}|, which if used in
+  the preamble and followed with a \csb{Mathastext} command (or
+  \csb{MTDeclareVersion}), will be recorded in the definition of this math
+  version (and subsequent ones). One may also use the command at any time in
+  the document. In the case of the option |subdued|, the skip is canceled in
+  the \emph{normal} and \emph{bold} math versions.\footnote{\RightNote{1.3j}%
+Formerly, it was set to |0mu|.} In the case of the option |italic|, the
+  default skip is set to zero.
+
+\item \RightNote{1.3j}\xA7\MTnormalexists\xA7, \xA7\MTexistsdoesskip\xA7: the
+  latter (done by default if not |subdued|, and also on each use of
+  |\MTversion| in the body of the document) makes it so that $\oldexists$
+  takes into account the math glue as specified by \csb{MTexistsskip}. The
+  former is its opposite.
+
+\item \xA7\MTforallskip\xA7\marg{math glue}: the default is to add a |.6667mu| math
+  skip after each $\oldforall$ (except with the option |italic| for which the
+  default skip is set to zero). Compare $\oldforall\mskip.6667mu\mathrm{F}$
+  (has the skip) with $\oldforall\mathrm{F}$ (has no skip). Use this command
+  in the preamble to set up the skip or glue to be used in the \emph{next to
+    be declared} math versions. In the case of the option |subdued|, the skip
+  is canceled in the \emph{normal} and \emph{bold} math
+  versions.\footnote{\RightNote{1.3j}Formerly, it was set to |0mu|.} In the
+  case of the option |italic|, the default skip is zero for all math versions.
+  One may use the command at any location in the document.
+
+\item \RightNote{1.3j}\xA7\MTnormalforall\xA7, \xA7\MTforalldoesskip\xA7: the
+  latter (done by default if not |subdued|, and also on each use of
+  |\MTversion| in the body of the document) makes it so that $\oldforall$
+  takes into account the math glue as specified by \csb{MTforallskip}. The
+  former is its opposite.
+
+\item \xA7\MTprimeskip\xA7\marg{math glue}: the default is to add a |0.5mu| skip
+  before the derivative glyph, except for the |italic| option. In the case of
+  the option |subdued|, the skip is canceled in the \emph{normal} and
+  \emph{bold} math versions.\footnote{\RightNote{1.3j}Formerly, it was set to
+    |0mu|.}
+
+% obsolete et m\xEAme faux avec 1.3j
+% \footnote{if \cs{begin\{document\}} is not followed
+%     with \cs{MTversion\{normal\}}, the latest values set in the preamble by
+%     these commands are used at the beginning of the document,
+%     even under option \texttt{subdued}.}
+
+\item \xA7\MTlowerast\xA7\marg{dimen}: a \cs{raisebox} command is
+  used to lower the text asterisk to produce a reasonable math
+  asterisk. The package uses this command initially with
+  argument |0.3\height|, this will have to be fine-tuned for
+  each given text font but worked out ok with the fonts we
+  tried. Note that the dimension argument will be used also in
+  sub-scripts and sub-sub-scripts, so it is best not to use an
+  absolute dimension.
+
+\item \xA7\MTmathoperatorsobeymathxx\xA7, \xA7\MTmathoperatorsdonotobeymathxx\xA7: the
+  former is done by default, it makes operator names obey math alphabets. See
+  also section \ref{sec:mathxx}. This functionality \emph{does
+    {\normalfont\bfseries not} rely}
+  on ``math active characters''. Automatically issued by each \cs{MTversion},
+  except under option |subdued| when switching to \emph{normal} or \emph{bold}.
+
+  \item \xA7\MTcustomgreek\xA7:\RightNote{1.3d} in case \mst has been loaded with one of its
+    Greek related options, this activates the corresponding
+    customization of Greek letters in math mode. It is issued
+    automatically by the package in the preamble (except if loaded with
+    |subdued| option) and at each switch of math version via
+    |\MTversion| or |\MTversion*| (except for the normal and bold math
+    versions in subdued mode). Also available as
+    |\Mathastextcustomgreek|. May be used even inside of math mode.
+
+  \item \xA7\MTstandardgreek\xA7:\RightNote{1.3d} in case \mst was loaded with one of the Greek
+    related options this command reverts the customization, it resets the Greek
+    letters to their definitions in force at package loading time. Can be used
+    in the preamble, but is mainly for the document body (may even be used
+    inside math mode ...). Done automatically
+    under the |subdued| option when switching to the normal or bold math
+    version. Also available as |\Mathastextstandardgreek|.
+\end{enumerate}
+
+\subsubsection{Expert commands which are preamble-only}
+
+\begin{enumerate}[label=$\bullet$, leftmargin=1em]
+\item \xA7\MTgreekupdefault\xA7:\RLNote{new:}{1.3x} a command with
+  no argument whose expansion specifies, under \xA7LGRgreek\xA7 regime, the
+  shape for the `|up|' Greek control sequences (and for the no-postfix
+  Greek control sequences under \xA7upgreek\xA7 option) in all \mst math
+  versions declared \emph{afterwards} via \cs{Mathastext} or
+  \cs{MTDeclareVersion}.  The a priori default for this shape is `|n|'
+  (without the quotes).  See
+  \autoref{sec:newgreek}.
+
+  This command can also be defined \emph{prior} to loading the package.
+  Indeed it is defined this way:
+  \centeredline{|\providecommand*\MTgreekupdefault{n}|}
+
+\item \xA7\MTgreekitdefault\xA7:\RLNote{new:}{1.3x} a command with
+  no argument whose expansion specifies, under \xA7LGRgreek\xA7 regime, the
+  shape for the `|it|' Greek control sequences (and for the no-postfix
+  Greek control sequences under \xA7itgreek\xA7 option) in all \mst math
+  versions declared \emph{afterwards} via \cs{Mathastext} or
+  \cs{MTDeclareVersion}.  The a priori default for this shape is `|it|'
+  (without the quotes).
+  See \autoref{sec:newgreek}.
+
+  This command can also be used \emph{prior} to loading the package.
+  Indeed it is defined this way:
+  \centeredline{|\providecommand*\MTgreekitdefault{it}|}
+\end{enumerate}
+
+\subsubsection{Expert commands usable only outside of math mode}\label{sec:cmdsoutmath}
+
 They are usable only from outside math mode because they act via turning on
 or off the execution, each time math mode is entered, of certain macros added
 by \mst to the \cs{everymath} and \cs{everydisplay} token list variables.
@@ -3648,7 +4507,7 @@
 
 \item \xA7\MTmathactiveletters\xA7: activates the `math activation' of Latin
   letters. This is done by the package during loading, except under the
-  |subdued| option.\footnote{\CHANGED{1.3j}Formerly, it was also executed
+  |subdued| option.\footnote{\RightNote{1.3j}Formerly, it was also executed
     from each \cs{Mathastext} in the preamble.} It is again executed in the
   body at each \cs{MTversion}, except under the |subdued| option when
   switching to the \emph{normal} or \emph{bold} math versions.
@@ -3666,7 +4525,7 @@
 \item \xA7\MTicinmath\xA7: this command is executed by default by \mst except in
   case of option |subdued| or if the user chosen letter shape is oblique (|it|
   or |sl|). It tells \mst to add italic corrections after all letters in math
-  mode, except within the scope of math alphabets.\footnote{\CHANGED{1.3i}%
+  mode, except within the scope of math alphabets.\footnote{\RightNote{1.3i}%
 Formerly, italic corrections were added to the (non-oblique) letters of
     \cs{mathnormal} arguments.}
 
@@ -3754,16 +4613,15 @@
     In particular, executing \cs{MTnonlettersobeymathxx} in the preamble or at
     the start of the document body serves nothing, because the document is in
     the subdued \emph{normal} math version regime then. It must thus be
-    executed after the first usage of \cs{Mtversion} switching to a
+    executed after the first usage of \cs{MTversion} switching to a
     non-subdued math version, and again on each successive exit from the
     \emph{normal} or \emph{bold} math versions.
   \end{framed}
 
-  {\footnotesize 
-\xA7\MTexplicitbracesobeymathxx\xA7 extends an earlier \xA7\MTnonlettersobeymathxx\xA7
+\item \xA7\MTexplicitbracesobeymathxx\xA7: extends an earlier \xA7\MTnonlettersobeymathxx\xA7
   to also treat  \verb|\{| and \verb|\}|. But then |\left\{|, |\right\}| must
   be coded |\left\lbrace|, |\right\rbrace| rather. There is also
-  \xA7\MTexplicitbracesdonotobeymathxx\xA7.\par}
+  \xA7\MTexplicitbracesdonotobeymathxx\xA7.
 
 \item \RightNote{1.3j}\xA7\MTnormalprime\xA7, \xA7\MTprimedoesskip\xA7: the latter (done by default if not
   |subdued|, and also on each use of \csb{MTversion} in the body of the document
@@ -3850,330 +4708,65 @@
 
 \end{enumerate}
 
-\footnotesize
+\subsubsection{Expert commands usable only in math mode}
 
-\subsubsection{Commands usable only in math mode}\label{sec:mathonlycmds}
-
-%\begin{enumerate}
-%\item
-\RightNote{1.3p}\xA7\MTfixmathfonts\xA7: this used to be an inner macro
-  but it is given a public name by |1.3p| because I discovered that
+\begin{enumerate}[label=$\bullet$, leftmargin=1em]
+{\small
+\item\RightNote{1.3p}%
+\xA7\MTfixmathfonts\xA7: this used to be an internal package macro
+  but it is given a public name at |1.3p| because I discovered that
   |$..\hbox{\mathversion{foo}$..$}..$| causes an
   issue and one needs to invoke again \cs{MTfixmathfonts} \emph{after} the
   \verb|\hbox|, for some reason. To be used \emph{only} under \LuaLaTeX{} and only for
-  such rare cases where it may be needed.
-%\end{enumerate}
-
-\normalsize
-
-\subsubsection{Commands usable everywhere}\label{sec:cmds}
-
-\begin{enumerate}[label=$\bullet$, leftmargin=1em]
-
-\DeleteShortVerb{\|}%
-
-\item \xA7\MTsetmathskips\xA7\marg{a-z|A-Z}\marg{muglue\_before}\marg{muglue\_after}:
-  \MakeShortVerb{\|}is\RightNote{1.3a} used to specify extra skips (or rather mu glue) to be
-  inserted in math mode, before and after a letter. The rationale is that
-  standard text fonts used in math mode may sometimes cause glyph (near-)
-  collisions with math symbols, as \TeX{} has some implicit expectations on the
-  design of fonts for math letters. 
-
-  \begin{framed}
-    These extra skips around letters are set at their natural width and do not
-    add any stretchability or shrinkability to the math formula as a whole,
-    nor do they result in extra potential break points.
-  \end{framed}
-  
-  Random (silly) examples:
-  \centeredline{|\MTsetmathskips{x}{\medmuskip}{\thickmuskip}|} \centeredline
-  {|\MTsetmathskips{A}{.5mu}{2.3mu}|} and the effect:
-  \begingroup\MTversion{italic}\MTsetmathskips{x}{\medmuskip}{\thickmuskip}%
-             \MTsetmathskips{A}{.5mu}{2.3mu}%
-  $vwxyzABC^{vwxyzABC}$\endgroup. The effect obeys the usual \LaTeX{} scoping
-  rules.
-
-  The first argument of \xA7\MTsetmathskips\xA7 may be any expandable code giving a
-  letter; this facilitates use of |\MTsetmathskip| in |\@for| loops such as
-  this one:
-\begin{verbatim}
-\makeatletter
-\@for\@tempa:=a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z\do{%
-              \MTsetmathskips{\@tempa}{2mu}{2mu}}%
-\makeatother
-\end{verbatim}
-
-  \begin{framed}
-    \emph{\color{magenta}\bfseries Starting with |v1.3i|:} the extra skips are
-    \emph{not} applied to the letters within the scope of math alphabet
-    commands, or the letters from operator names (pre-defined or user
-    declared).
-  \end{framed}
-
-{\footnotesize
-  Note that contrarily to the \csb{MTexistsskip}, \csb{MTforallskip}, and
-  \csb{MTprimeskip} commands described next, these extra skips (which may be
-  specified in the preamble) are not recorded in the definition of the math
-  version (as defined via \xA7\Mathastext\xA7 with its optional argument or via
-  \xA7\MTDeclareVersion\xA7). The declared skips hold thoughout the document
-  until modified or canceled, independently of math versions (of
-  course, \mst cancels the skips in the normal and bold math versions if
-  package option \blueit{subdued} was used).\par}
-
-\DeleteShortVerb{\|}
-
-\item \xA7\MTunsetmathskips\xA7\marg{a-z|A-Z}: \MakeShortVerb{\|} cancels the skips 
-  for that letter (they are not set to |0mu| but completely removed).
-
-
-  % setting the skips to |0mu| which prevents formation of ligatures
-  % when the letter is used inside a \cs{mathbf} for example). Example (using a
-  % version with upright Latin Modern): \centeredline
-  % {|\MTsetmathskips{f}{8mu}{0mu}$gffg\MTunsetmathskips{f}ff\mathbf{ff}$|}
-  % gives: \begingroup\MTversion{upright}%
-  % \MTsetmathskips{f}{8mu}{0mu}$gffg\MTunsetmathskips{f}ff\mathbf{ff}$\endgroup.
-  % The ligature was correctly formed.
-
-  The argument may be a macro (or any expandable code) expanding to a letter.
-
-
-\item \xA7\MTexistsskip\xA7\marg{math glue}: specifies the amount of skip or more
-  generally glue to put after each $\oldexists$ math symbol. Indeed, upright
-  letters (or digits for that matter) often appear to be positioned a bit too
-  close to the quantifier: $\oldexists\mathrm{B}$. The package default is to
-  add a |1mu| skip (this default is set to zero in the case of |italic|):
-  $\oldexists\mskip 1mu\mathrm{B}$. One can change the default with the
-  following syntax: |\MTexistsskip{2mu plus 1mu minus 1mu}|, which if used in
-  the preamble and followed with a \csb{Mathastext} command (or
-  \csb{MTDeclareVersion}), will be recorded in the definition of this math
-  version (and subsequent ones). One may also use the command at any time in
-  the document. In the case of the option |subdued|, the skip is canceled in
-  the \emph{normal} and \emph{bold} math versions.\footnote{\CHANGED{1.3j}%
-Formerly, it was set to |0mu|.} In the case of the option |italic|, the
-  default skip is set to zero.
-
-\item \RightNote{1.3j}\xA7\MTnormalexists\xA7, \xA7\MTexistsdoesskip\xA7: the
-  latter (done by default if not |subdued|, and also on each use of
-  |\MTversion| in the body of the document) makes it so that $\oldexists$
-  takes into account the math glue as specified by \csb{MTexistsskip}. The
-  former is its opposite.
-
-\item \xA7\MTforallskip\xA7\marg{math glue}: the default is to add a |.6667mu| math
-  skip after each $\oldforall$ (except with the option |italic| for which the
-  default skip is set to zero). Compare $\oldforall\mskip.6667mu\mathrm{F}$
-  (has the skip) with $\oldforall\mathrm{F}$ (has no skip). Use this command
-  in the preamble to set up the skip or glue to be used in the \emph{next to
-    be declared} math versions. In the case of the option |subdued|, the skip
-  is canceled in the \emph{normal} and \emph{bold} math
-  versions.\footnote{\CHANGED{1.3j}Formerly, it was set to |0mu|.} In the
-  case of the option |italic|, the default skip is zero for all math versions.
-  One may use the command at any location in the document.
-
-\item \RightNote{1.3j}\xA7\MTnormalforall\xA7, \xA7\MTforalldoesskip\xA7: the
-  latter (done by default if not |subdued|, and also on each use of
-  |\MTversion| in the body of the document) makes it so that $\oldforall$
-  takes into account the math glue as specified by \csb{MTforallskip}. The
-  former is its opposite.
-
-\item \xA7\MTprimeskip\xA7\marg{math glue}: the default is to add a |0.5mu| skip
-  before the derivative glyph, except for the |italic| option. In the case of
-  the option |subdued|, the skip is canceled in the \emph{normal} and
-  \emph{bold} math versions.\footnote{\CHANGED{1.3j}Formerly, it was set to
-    |0mu|.}
-
-% obsolete et m\xEAme faux avec 1.3j
-% \footnote{if \cs{begin\{document\}} is not followed
-%     with \cs{MTversion\{normal\}}, the latest values set in the preamble by
-%     these commands are used at the beginning of the document,
-%     even under option \texttt{subdued}.}
-
-\item \xA7\MTlowerast\xA7\marg{dimen}: a \cs{raisebox} command is
-  used to lower the text asterisk to produce a reasonable math
-  asterisk. The package uses this command initially with
-  argument |0.3\height|, this will have to be fine-tuned for
-  each given text font but worked out ok with the fonts we
-  tried. Note that the dimension argument will be used also in
-  sub-scripts and sub-sub-scripts, so it is best not to use an
-  absolute dimension.
-
-\item \xA7\MTmathoperatorsobeymathxx\xA7, \xA7\MTmathoperatorsdonotobeymathxx\xA7: the
-  former is done by default, it makes operator names obey math alphabets. See
-  also section \ref{sec:mathxx}. This functionality \emph{does
-    {\normalfont\bfseries not} rely}
-  on ``math active characters''. Automatically issued by each \cs{MTversion},
-  except under option |subdued| when switching to \emph{normal} or \emph{bold}.
-
-  \item \xA7\MTcustomgreek\xA7:\RightNote{1.3d} in case \mst has been loaded with one of its
-    Greek related options, this activates the corresponding
-    customization of Greek letters in math mode. It is issued
-    automatically by the package in the preamble (except if loaded with
-    |subdued| option) and at each switch of math version via
-    |\MTversion| or |\MTversion*| (except for the normal and bold math
-    versions in subdued mode). Also available as
-    |\Mathastextcustomgreek|. May be used even inside of math mode.
-
-  \item \xA7\MTstandardgreek\xA7:\RightNote{1.3d} in case \mst was loaded with one of the Greek
-    related options this command reverts the customization, it resets the Greek
-    letters to their definitions in force at package loading time. Can be used
-    in the preamble, but is mainly for the document body (may even be used
-    inside math mode ...). Done automatically
-    under the |subdued| option when switching to the normal or bold math
-    version. Also available as |\Mathastextstandardgreek|.
-
+  such rare cases where it may be needed.\par
+}
 \end{enumerate}
 
-\subsubsection{Body-only commands}
+\section{Package options}
 
-\begin{enumerate}[label=$\bullet$, leftmargin=1em]
-\item \xA7\MTversion\xA7\oarg{nametext}\marg{namemath},
-  \xA7\MTversion\xA7$\ast$\marg{namemath}, also known as
-  \xA7\Mathastextversion\xA7 (and as \cs{MTVersion}, and
-  \cs{mathastextversion}):
-  \begin{enumerate}[label=$\bullet$]
-  \item the non-starred version changes
-    \emph{both} the document text fonts and the math fonts (for those characters
-    treated by \mst): the mandatory argument is the math version to be used
-    for math; the optional argument is the name of (another) \mst-declared math
-    version, the font which was chosen during its declaration will be set as
-    document text font (and |\familydefault| etc\dots also are
-    redefined). In the absence of the optional argument, the mandatory one is
-    used. The versions \emph{must} be either |normal|, or |bold|, or previously
-    declared ones via \xA7\Mathastext\xA7 or \xA7\MTDeclareVersion\xA7. 
-  \item the starred variant\RightNote{1.3c} does the math set-up, but changes \emph{nothing} to
-    the text fonts (see \autoref{sec:mathversions} for a description of the math
-    set-up, which summarizes 
-    what is done additionally to only using \LaTeX{}'s |\mathversion|).
-  \end{enumerate}
-  \cs{MTversion}\oarg{nametext}\marg{namemath} does \xA7\MTeverymathdefault\xA7
-  (except for |\MTversion{normal}| and |\MTversion{bold}| under package option
-  |subdued|), which in particular activates the insertion of skips around
-  letters specified by \xA7\MTsetmathskips\xA7 and also, if the font used is not
-  oblique the insertion of italic corrections (for better positioning of
-  subscripts; see the discussion in \autoref{sec:ic}). Under the |frenchmath|
-  option the package checks separately the letter shape for lowercase and
-  uppercase. 
+\subsection{Summary of main options}
 
-  \RightNote{1.3j}\cs{MTversion} also does \xA7\MTexistsdoesskip\xA7,
-  \xA7\MTforalldoesskip\xA7, and also \xA7\MTprimedoesskip\xA7,
-  \csb{MTmathoperatorsobeymathxx}, except under the |subdued| option for
-  \emph{normal} and \emph{bold}, in which case it does the opposite actions.
-\end{enumerate}
+\begin{description}
+\item[{\xA7italic\xA7, \xA7frenchmath\xA7}:] italic letters in
+math, upright uppercase if \xA7frenchmath\xA7.
+ \item[{\xA7subdued\xA7}:] acts in a subdued way. The \LaTeX{} normal and bold
+ math versions are left (quasi) unchanged. With version |1.15e| of
+ the package this statement applies also to the math alphabets
+ \cs{mathbf}, \cs{mathit}, \cs{mathsf}, and \cs{mathtt} (and not
+ only to \cs{mathnormal} and \cs{mathrm} as in previous versions.)
+\item[{\xA7LGRgreek\xA7, \xA7eulergreek\xA7, \xA7symbolgreek\xA7}:] the
+  Greek letters will be taken, respectively from the
+  text font itself (in |LGR| encoding), or from the Euler
+  font, or from the Postscript Symbol font.
+\item[{\xA7symbolmax\xA7}:] all characters
+  other than letters and digits, are taken from the
+  Symbol font. This option also makes a number of
+  further glyphs available, such as some basic
+  mathematical arrows, and the sum and product
+  signs. For documents with very simple needs in
+  mathematical symbols, \mst with option
+  \xA7symbolmax\xA7 may give in the end a PDF file quite
+  smaller than the one one would get without the
+  package.
+\item[{\xA7defaultmathsizes\xA7}:] \mst sets up bigger sizes
+for subscripts (it also copies code from the |moresize| package to redefine
+  \cs{Huge} and define \cs{HUGE}). Use this option to prevent it from
+  doing so.
+\item[{\xA7defaultalphabets\xA7}:] by default, \mst redeclares the math
+  alphabets \cs{mathrm}, \cs{mathit}, \cs{mathtt} etc\dots{} (but not
+  \cs{mathcal} of course) to refer to the current document text fonts (at the
+  time of loading the package and in each \mst math version). Use
+  this option to prevent it from doing so (each alphabet also has
+  its own disabling option).
+\end{description}
 
-All further commands are usable only inside math mode.
-\begin{enumerate}[label=$\bullet$]
-\item \xA7\hbar\xA7: this macro is by default redefined (in a way compatible with
-  the |italic| option) combining the |h| letter and the \={ } accent from the
-  \mst font. Note that \cs{mathrm}|{\hbar}| and \cs{mathbf}|{\hbar}| will
-  work and that \cs{hbar} does scale in subscripts and exponents. Since
-  |1.3u|, this is a priori compatible with all 8bits text font
-  encodings\RLNote{changed:}{1.3u} supporting the |\=| text accent in
-  the LaTeX way.%
-%
-\footnote{\CHANGED{1.3u}The horizontal skips for letter |h| from
-  \cs{MTsetmathskips} are ignored for \cs{hbar}. Formerly, a positive
-  ``before'' skip was not properly taken into account for the horizontal
-  positioning of the accent and thus gave a bad result. The user can extend
-  the package \cs{hbar} definition to add skips.}
-\footnote{\CHANGED{1.3u}The \cs{hbar} redefinition is canceled in normal and
-  bold math versions under the |subdued| option.}
-  
-\item \xA7\fouriervec\xA7: this is a |\vec| accent taken from the Fourier font;
-the |fourier| package need not be loaded. Active only
-if option \xA7fouriervec\xA7.
-\item \xA7\pmvec\xA7: this provides a poor man \cs{vec} accent command, for
-upright letters. It uses the right arrow. Does not change
-size in subscripts and exponents.
- \item \xA7\mathnormal\xA7, \xA7\mathrm\xA7, \xA7\mathbf\xA7, \xA7\mathit\xA7, \xA7\mathsf\xA7,
-\xA7\mathtt\xA7: modifications of the original \cs{mathnormal},
-\cs{mathrm}, \cs{mathbf}, \cs{mathit}, \cs{mathsf}, \cs{mathtt} to
-use the mathastextified font. The
-underlying internal \LaTeX{} structures related to the original
-commands are not overwritten, so the original commands can be saved under
-other names before |\usepackage{mathastext}|, to be used in case of
-necessity  (this is what option |subdued| does.) 
- \item \xA7\mathnormalbold\xA7: a bold version of \cs{mathnormal}. Differs
-from \xA7\mathbf\xA7 when the |italic| option has been used, or when use
-has been made of \xA7\MTlettershape\xA7 to specify a shape for letters
-distinct from the one for digits and operator names, or similarly
-when the math version has been declared via \xA7\MTDeclareVersion\xA7 with
-its optional parameter for shape of letters.
-\item \xA7\inodot\xA7, \xA7\jnodot\xA7: the corresponding glyphs in the \mst-ified
-  font for use in math mode. By default, |\imath| and |\jmath| are redefined to use
-  them. Since \texttt{1.3t}, these macros obey the \texttt{subdued}
-  regime.
-%
-\footnote{\CHANGED{1.3t}Formerly (i.e. since \texttt{1.12}) \mst
-  redefined the \texttt{\string\i} and \texttt{\string\j} as robust
-  commands usable both in text and math mode and using the above macros
-  in the latter. I have decided it wasn't such a good idea and there is
-  from now on \texttt{1.3t} no such redefinition of \texttt{\string\i}
-  and \texttt{\string\j}!}
-\item \xA7\MathEuler\xA7, \xA7\MathEulerBold\xA7: math alphabets to access
-all the glyphs of the Euler font, if option |eulergreek| (or
-|eulerdigits| was passed to the package.
-\item \xA7\MathPSymbol\xA7: math alphabet to access the Symbol font.
-\item when one of the options \blueit{symbolgreek},
-  \blueit{eulergreek}, or \blueit{selfGreek} is passed to the package
-  the capital Greek letters which look like their Latin
-  counterparts acquire  names: \cs{Digamma},
-  \cs{Alpha}, \cs{Beta}, \cs{Epsilon}, \cs{Zeta},
-  \cs{Eta}, \cs{Iota}, \cs{Kappa}, \cs{Mu}, \cs{Nu},
-  \cs{Omicron}, \cs{Rho}, \cs{Tau}, \cs{Chi} (no
-  \cs{Digamma} for Symbol). Also an \cs{omicron}
-  control sequence is provided.
-\item |LGR| Greek and `var'-letters: only the
-  \cs{varsigma} is available in this encoding, so using
-  for example \cs{varphi} will load the previous default math
-  font. It might thus be suitable when recompiling
-  already written \LaTeX{} sources to add to the preamble
-  \cs{let}\cs{varphi}$=$\cs{phi},
-  \cs{let}\cs{varepsilon}$=$\cs{epsilon}, etc\dots,
-  in case only the `variant' form of the letter was used
-  in the documents.
-\item \hypertarget{symbolmisc}{Miscelleneous mathematical symbols} from the
-  postscript Symbol font are made available (or replaced) by option
-  \xA7symbolmisc\xA7.\footnote{option \blueit{asterisk} is also required to treat the
-    $*$. 
-    Recall from \autoref{sec:mathxx} that the asterisk in math mode (also
-    when using the control sequence \cs{ast}) appears then to \TeX{} to be
-    a composite object.}
-  \makeatletter\let\mst at doasterisk\mst@@doasterisk\makeatother They are
-  \cs{prod}~$\prod$ \cs{sum}~$\sum$ \cs{implies}~$\implies$
-  \cs{impliedby}~$\impliedby$ \cs{iff}~$\iff$ \cs{shortiff}~$\shortiff$
-  \cs{to}~$\to$ \cs{longto}~$\longto$ \cs{mapsto}~$\mapsto$
-  \cs{longmapsto}~$\longmapsto$ \cs{aleph}~$\aleph$ \cs{inftypsy}~$\inftypsy$
-  \cs{emptyset}~$\emptyset$ \cs{surd}~$\surd$ \cs{nabla}~$\nabla$
-  \cs{angle}~$\angle$ \cs{forall}~$\forall$ \cs{exists}~$\exists$
-  \cs{neg}~$\neg$ \cs{clubsuit}~$\clubsuit$ \cs{diamondsuit}~$\diamondsuit$
-  \cs{heartsuit}~$\heartsuit$ \cs{spadesuit}~$\spadesuit$
-  \cs{smallint}~$\smallint$ \cs{wedge}~$\wedge$ \cs{vee}~$\vee$ \cs{cap}~$\cap$
-  \cs{cup}~$\cup$ \cs{bullet}~$\bullet$ \cs{div}~$\div$ \cs{otimes}~$\otimes$
-  \cs{oplus}~$\oplus$ \cs{pm}~$\pm$ \cs{ast}~$\ast$ \cs{times}~$\times$
-  \cs{proptopsy}~$\proptopsy$ \cs{mid}~$\mid$ \cs{leq}~$\leq$ \cs{geq}~$\geq$
-  \cs{approx}~$\approx$ \cs{supset}~$\supset$ \cs{subset}~$\subset$
-  \cs{supseteq}~$\supseteq$ \cs{subseteq}~$\subseteq$ \cs{in}~$\in$
-  \cs{sim}~$\sim$ \cs{cong}~$\cong$ \cs{perp}~$\perp$ \cs{equiv}~$\equiv$
-  \cs{notin}~$\notin$ \cs{langle}~$\langle$ \cs{rangle}~$\rangle$. And a
-  \cs{DotTriangle}~$\DotTriangle$ is made available by option \xA7symbolre\xA7 (which
-  overwrites \cs{Re} and \cs{Im}: $\Re,\Im$). The \cs{inftypsy} and
-  \cs{proptopsy} have these names to leave up to the user the choice to replace
-  (or no) the original (larger) \cs{infty} $\infty$ and \cs{propto} $\propto$.
+\subsection{Complete list of options}
 
-  Regarding the \cs{prod} and \cs{sum} commands: they will use the Symbol
-  glyphs $\prod\sum$ in inline math, and in display math the Computer Modern
-  ones (or whatever is set up by other packages; here we have the symbols from
-  |txfonts|): \[\prod\sum\] The package
-  provides \cs{prodpsy} and \cs{sumpsy}: if one really wants in all
-  situations the Symbol glyphs, one can do \cs{let}\cs{prod}\cs{prodpsy} and
-  \cs{let}\cs{sum}\cs{sumpsy}. Also \cs{MToriginalprod} and \cs{MToriginalsum}
-  will refer to the \cs{prod} and \cs{sum} before redefinition by the
-  package: this is to allow constructs such as |$\displaystyle\MToriginalprod$|
-  or |\[\textstyle\MToriginalprod\]|, because they would not work with the
-  \cs{prod} and \cs{sum} as re-defined by the package.
-\end{enumerate}
-
- \subsection{Complete list of options}
-
+ Some items are described succinctly as more developed descriptions were
+ given earlier.  They may sometimes simplify by omission
+ and not consider all possible configurations, particularly those
+ resulting from usage of the package commands in the preamble to
+ configure  math versions.
  \begin{enumerate}[label=$\bullet$, leftmargin=1em]
  \item \xA7basic\xA7: only mathastextify letters and digits.
  \item \xA7subdued\xA7: do not change the default fonts or the math alphabets in math
@@ -4183,13 +4776,63 @@
    option |subdued| \cs{MTversion\{normal\}} and \cs{MTversion\{bold\}} do
    \csb{MTmathoperatorsdonotobeymathxx}, \csb{MTeasynonlettersdonotobeymathxx},
    \csb{MTnonlettersdonotobeymathxx}, \csb{MTmathstandardletters}.
- \item \xA7italic\xA7: the letters  default to italic shape in
-  math mode.
- \item \xA7frenchmath\xA7: italic lowercase Latin letters, but
-  uppercase Latin letters in the same font as for digits and
-  operator names. In general this means that they will be
-  upright. In case of the \blueit{LGRgreek} option, \xA7frenchmath\xA7
-  influences also the shape of the Greek letters.
+ \item \xA7italic\xA7: the Latin letters (both lowercase and uppercase) use
+   the italic shape (\cs{itdefault}) in math mode; if the package
+   handles Greek letters, also lowercase (but not uppercase) Greek
+   letters will use this a priori italic shape except if some other
+   option such as \blueit{upgreek} was used.%
+   \footnote{Since \texttt{1.3x}, in presence of the \blueit{LGRgreek}
+     option in addition to \blueit{italic}, the \cs{MTgreekitdefault}
+     shape is then used for lowercase Greek letters and
+     \cs{MTgreekupdefault} for uppercase.}
+ \item \xA7frenchmath\xA7: it configures for lowercase Latin letters to use
+   italic shape (\cs{itdefault}), and uppercase Latin letters to be in
+   same shape as for digits and operator names (i.e.\@ a priori
+   \cs{shapedefault}). If the package handles Greek letters both
+   lowercase%
+%
+\footnote{If under control of the package.}
+   and uppercase Greek letters will use the same shape as
+   operator names, except if some other option such as \blueit{itgreek}
+   was used.%
+   \footnote{Under \blueit{LGRgreek} and since |1.3x|, the
+     \cs{MTgreekupdefault} is used for Greek letters if no other option
+     such as \blueit{itgreek} was employed.}
+\item \xA7ncccomma\xA7:\RLNote{new:}{1.3x} it triggers the loading of the
+  \href{https://ctan.org/pkg/ncccomma}{ncccomma} package%
+%
+\footnote{Alexander I. \textsc{Rozhenko}, \emph{Use comma as decimal
+    separator in mathematics}, \url{https://ctan.org/pkg/ncccomma}.}
+%
+and configures \mst for compatibility (this is canceled if
+\blueit{nopunctuation} option is used, or \blueit{basic} as it implies
+it).
+
+The effect of the \href{https://ctan.org/pkg/ncccomma}{ncccomma} package will
+apply to the entire document body, even to portions using the
+\emph{normal} or \emph{bold} math versions with \mst having been loaded with
+the \blueit{subdued}
+option.  Also,  in case of usage of package |babel| with |french| option, the
+effect of \href{https://ctan.org/pkg/ncccomma}{ncccomma} will also apply to
+those parts of the document using another language than French.%
+%
+\footnote{There is a `feature' of \texttt{babel-french} that the effect of
+  package \href{https://ctan.org/pkg/ncccomma}{ncccomma} is canceled if one
+  switches from French to English; and switching back to French does not
+  reenact it.  For background on this issue see
+  \url{https://github.com/latex3/babel/issues/190}.}
+\item \xA7binarysemicolon\xA7:\RLNote{new:}{1.3x} sets (except if
+  \blueit{nopunctuation} is used) the semi-colon to let \TeX\ use
+  spacing of binary type, not punctuation type, around the semi-colon
+  (it is often used in French mathematical typesetting as separator in
+  interval denotations, when the extremities are decimal numbers, as the
+  comma is used as decimal separator).
+
+  The effect applies to all math versions, even the \emph{normal} and
+  \emph{bold} math versions with \mst having been loaded with the
+  \blueit{subdued} option.
+\item \xA7frenchmath*\xA7:\RLNote{new:}{1.3x} does all three of \blueit{frenchmath},
+  \blueit{ncccomma} and \blueit{binarysemicolon}.
 \item \xA7endash\xA7, \xA7emdash\xA7: use the text font en-dash (\textendash) or even
  the em-dash (\textemdash, but this seems crazy) for the minus sign
  rather than {}-{}. \xA7endash\xA7 option is default for the package.
@@ -4247,11 +4890,17 @@
  \item \xA7symbolmax\xA7: combines \xA7symbol\xA7 and \xA7symboldelimiters\xA7.
  \item \xA7eulergreek\xA7, \xA7eulerdigits\xA7: to let Greek letters (digits) use the
 Euler font.
- \item \xA7LGRgreek\xA7: this is for a font which is also available in
- LGR-encoding. It is possible to change the font per math version, via
- the use of the \xA7\MTgreekfont\xA7 command in the preamble.
+ \item \xA7LGRgreek\xA7: this configures the Greek letters in math mode to use the
+   text font in
+ LGR-encoding (it is up to user to ascertain that the font familty is indeed
+ available in the LGR encoding).  It also
+ activates the command \xA7\MTgreekfont\xA7 which can be used to set a specific
+ (LGR-encoded) font family for Greek, possibly not related to the font family
+ for Latin letters.  But each use \xA7\MTgreekfont\xA7 must be followed by a \xA7\Mathastext\xA7
+ or \xA7\Mathastext\xA7\oarg{version\_name} to be effective.
  \item \xA7LGRgreeks\xA7: each declared math version will be supposed to be with a
- font which is also available in LGR-encoding.
+ font which is also available in LGR-encoding.  Attention that macro
+ \xA7\MTgreekfont\xA7 becomes then inoperant.
  \item \xA7selfGreek\xA7: this is for a font which is also available in
  |OT1|-encoding and contains the glyphs for the default eleven capital Greek
 letters.
@@ -4262,11 +4911,14 @@
  options to tell to use \cs{itdefault} or \cs{updefault} for the lowercase
  and uppercase (or only the uppercase) Greek letters. Only operant
  in the case of the |LGRgreek(s)| and |selfGreek(s)| options.
+
+ \RLNote{changed:}{1.3x}These options now use \cs{MTgreekitdefault} and
+ \cs{MTgreekupdefault} rather.
  \item \xA7mathaccents\xA7: use the text font also for the math
 accents. As in vanilla \LaTeX{}, they are taken from the font
 for the digits and \cs{log}-like names. Obey the alphabet
 changing commands.
- \item \xA7unimathaccents\xA7:\RLNote{new:}{1.3u} extends |mathaccents| to
+ \item \xA7unimathaccents\xA7:\RightNote{1.3u} extends |mathaccents| to
 OpenType fonts. Gave bad results in my brief testing.
  \item \xA7defaultbf\xA7, \xA7defaultit\xA7, \xA7defaultsf\xA7, \xA7defaulttt\xA7: do not
 set up, respectively, the \cs{mathbf}, \cs{mathit}, \cs{mathsf},
@@ -4315,7 +4967,7 @@
 \begingroup
 
 \def\MacroFont{\footnotesize\normalfont}
-% utilis\xE9 par verbatim en classe scrdoc
+% utilis\xE9 par verbatim en classe scrdoc (ou plut\xF4t shortvrb)
 % (rappel: macrocode utilise \macro at font qui est MacroFont at begin document)
 
 \makeatletter
@@ -4374,6 +5026,7 @@
   \lowercase{\endgroup\long\def-}##1\par{\catcode`\M=12 \catcode`\-=12 }%
   \catcode`1=\active
   \catcode`\` 9 % l\xE9g\xE8rement ennuyeux mais bon, c'est le plus simple.
+  \nonfrenchspacing
   \input ChangeLog.md
 }
 
@@ -4404,9 +5057,7 @@
 \fi
 
 
-\makeatletter
 \StopEventually{\end{document}\endinput}
-\makeatother
 
 \cleardoublepage
 \newgeometry{hmarginratio=3:2}
@@ -4442,7 +5093,7 @@
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage {mathastext}
-  [2019/11/16 v1.3w Use the text font in math mode (JFB)]
+  [2022/11/04 v1.3y Use the text font in math mode (JFB)]
 %    \end{macrocode}
 % \LaTeX{} |2019-10-01| release has made robust math macros such as the math
 % accents and \cs{hbar}. 
@@ -4557,14 +5208,22 @@
 % \begin{macro}{Package options}
 %   |2011/03/09|: |1.13| introduces the option LGRgreek and systematic use
 %   of \cs{if...} conditionals, for better readability (by myself) of
-%   the code. 
+%   the code.
+%
+%   |1.3x| of |2022/11/03| adds |ncccomma|, |binarysemicolon| and |frenchmath*| options.
 %    \begin{macrocode}
 \newif\ifmst at italic
 \newif\ifmst at frenchmath
+\newif\ifmst at ncccomma
+\newif\ifmst at binarysemicolon
     \DeclareOption{italic}{\mst at italictrue
         \def\mst at ltsh{\itdefault}}
     \DeclareOption{frenchmath}{\mst at frenchmathtrue\mst at italictrue
       \def\mst at ltsh{\itdefault}}
+    \DeclareOption{ncccomma}{\mst at ncccommatrue}
+    \DeclareOption{binarysemicolon}{\mst at binarysemicolontrue}
+    \DeclareOption{frenchmath*}{\mst at frenchmathtrue\mst at italictrue
+      \def\mst at ltsh{\itdefault}\mst at ncccommatrue\mst at binarysemicolontrue}
 \newif\ifmst at endash\mst at endashtrue  
     \DeclareOption{endash}{\mst at endashtrue}
     \DeclareOption{noendash}{\mst at endashfalse}
@@ -4686,7 +5345,7 @@
 \newif\ifmst at subdued
     \DeclareOption{subdued}{\mst at subduedtrue}
 %    \end{macrocode}
-% |1.3q|: the unicode option. Thanks to \textsc{Tobias~Brink} for suggesting its
+% |1.3q|: the unicode option. Thanks to Tobias~\textsc{Brink} for suggesting its
 % incorporation. The parsing of |\CurrentOption| does not seek any robustness,
 % it just does its job if the option is used correctly.
 %    \begin{macrocode}
@@ -5765,10 +6424,9 @@
 % \end{macro}
 % \end{macro}
 % \begin{macro}{LGRgreek}
+% \begin{macro}{\MTgreekupdefault}
+% \begin{macro}{\MTgreekitdefault}
 % \begin{macro}{selfGreek}
-% \begin{macro}{mtlgrfontupper}
-% \begin{macro}{mtlgrfontlower}
-% \begin{macro}{mtselfGreekfont}
 %   |1.14b|: We can not move the \cs{DeclareSymbolFont} to the
 %   \cs{Mathastext} macro because it resets the font family in *all*
 %   math versions, and some could have been defined by the user with
@@ -5794,31 +6452,118 @@
 %   commands \cs{MTitgreek} etc... will be used in-between calls to
 %   \cs{Mathastext} and re-adjust the shapes. And the command \cs{MTgreekfont}
 %   changes the Greek font family.
+%
+%   Note that \cs{mst at ltsh} expands to \cs{shapedefault} or \cs{itdefault}
+%   at this location.
+%
+%   Note added |2022/11/02|: using \cs{MTitgreek} etc... once implies that
+%   from then on, for subsequent \mst-math versions, the shape of Greek
+%   letters will not be kept in sync with the shape and lettershape version
+%   parameters, but only react to the configuration decided by these commands
+%   (and |italic/frenchmath| options).
+%
+%   Note |2022/10/29|: for some time \cs{updefault} was made into |up| by
+%   \LaTeX\ (since 2020-02-02 now that I check this out). As a result this
+%   triggered Font Warnings in the log about the replacement of |up| by |n|.
+%
+%   |1.3x| refactors completely the handling of Greek letter shapes under the
+%   |LGRgreek(s)| options (and only under them).  Under these options we don't
+%   use one font for lowercase Greek and anotherone for uppercase Greek (some
+%   above code comments have not been updated) but one math font |mtgreekit| for italic Greek
+%   and one math font |mtgreekup| for upright Greek.  What `italic' and
+%   `upright' mean is decided by the expansion of \cs{MTgreekitdefault} and
+%   \cs{MTgreekupdefault}, which give respectively |it| and |n| per default.
+%
+%   If no |itgreek| et al.\@ options or \cs{MTitgreek} et al.\@ commands
+%   have been used, we need to map \cs{mst at ltsh} (which was used for
+%   lowercase Greek, except under |frenchmath| option) and \cs{mst at opsh} to
+%   either `italic' or `upright'.  This is done by testing if they hold `it'
+%   or `sl'.  If yes we map to `italic' by setting to false an `up' Boolean,
+%   if not we leave the `up' Boolean to true.
+%
+%   In order to maintain perfect identical code for non-|LGRgreek|, the
+%   |LGRgreek| related code is simply added to previously shared
+%   constructions.  The |LGRgreek| behaviour will remain identical in most
+%   documents, but for example those who used some adventurous `|sc|' for the
+%   main shape (the one used per default for operator names) need to adjust
+%   \cs{MTgreekupdefault} to be `|sc|', for the math version being defined, or
+%   the default one if this is followed by usage of \cs{Mathastext}.
+%
+%   The new |LGRgreek|-specific commands \cs{MTgreekupdefault} and
+%   \cs{MTgreekitdefault} are the only ones in the package which can possibly
+%   be defined previously to loading it.  (Perhaps some other macros could be
+%   also converted to being modifiable prior to loading \mst, thus avoiding
+%   potential need to use \cs{Mathastext} at least once after loading the
+%   package; to be examined next time --- which may be a long time in
+%   future!).
+%
 %    \begin{macrocode}
+\providecommand*\MTgreekupdefault{n}
+\providecommand*\MTgreekitdefault{it}
+\newif\ifmst at lgr@lower at up
+\newif\ifmst at lgr@upper at up
 \def\mst at update@greeksh{
-  \def\mst at greek@lsh{\mst at ltsh} %% default behavior
-  \def\mst at greek@ush{\mst at opsh}
-    \ifmst at itgreek\def\mst at greek@lsh{\itdefault}
-                     \def\mst at greek@ush{\itdefault}\fi
-    \ifmst at upgreek\def\mst at greek@lsh{\updefault}
-                     \def\mst at greek@ush{\updefault}\fi
+    \def\mst at lgr@lsh{\mst at ltsh}
+    \def\mst at lgr@ush{\mst at opsh}
+      \mst at lgr@lower at uptrue
+      \expandafter\in@\expanded{{\mst at ltsh.}}{it.,sl.}%
+      \ifin@\mst at lgr@lower at upfalse\fi
+      \mst at lgr@upper at uptrue
+      \expandafter\in@\expanded{{\mst at opsh.}}{it.,sl.}%
+      \ifin@\mst at lgr@upper at upfalse\fi
+    \ifmst at itgreek
+      \def\mst at lgr@lsh{\MTgreekitdefault}
+      \def\mst at lgr@ush{\MTgreekitdefault}
+        \mst at lgr@lower at upfalse
+        \mst at lgr@upper at upfalse
+    \fi
+    \ifmst at upgreek
+      \def\mst at lgr@lsh{\MTgreekupdefault}
+      \def\mst at lgr@ush{\MTgreekupdefault}
+        \mst at lgr@lower at uptrue
+        \mst at lgr@upper at uptrue
+    \fi
     \ifmst at frenchmath
       \ifmst at itgreek\else
       \ifmst at upgreek\else
-        \def\mst at greek@lsh{\mst at opsh}
-        \def\mst at greek@ush{\mst at opsh}
+        \def\mst at lgr@lsh{\mst at opsh}
+        \def\mst at lgr@ush{\mst at opsh}
+          \mst at lgr@lower at uptrue
+          \mst at lgr@upper at uptrue
       \fi\fi
     \fi
     \ifcase\mst at greek@select
-        \or\def\mst at greek@ush{\itdefault}
-        \or\def\mst at greek@ush{\updefault}
-    \fi}
+        \or
+          \def\mst at lgr@ush{\MTgreekitdefault}
+            \mst at lgr@upper at upfalse
+       \or
+          \def\mst at lgr@ush{\MTgreekupdefault}
+            \mst at lgr@upper at uptrue
+    \fi
+}
 \mst at update@greeksh
+%    \end{macrocode}
+% \begin{macro}{mtgreekup}
+% \begin{macro}{mtgreekit}
+% \begin{macro}{\mathgreekup}
+% \begin{macro}{\mathgreekit}
+% The |1.3x| refactoring was done in order to be able to define \cs{alphaup},
+% etc \dots\ control sequences (\cs{mathchar}'s), as well as the italic ones.
+% Formerly two math fonts were created but to be used respectively with
+% lowercase or uppercase Greek.  Now we have two fonts indexed by their shape,
+% and we take advantage to create two math alphabets mapping to the two
+% defined symbol fonts |mtgreekup| and |mtgreekit|.
+%    \begin{macrocode}
 \ifmst at LGRgreek
     \DeclareFontEncoding{LGR}{}{}
-    \DeclareSymbolFont{mtlgrfontlower}{LGR}{\mst at fam}{\mst at ser}{\mst at greek@lsh}
-    \DeclareSymbolFont{mtlgrfontupper}{LGR}{\mst at fam}{\mst at ser}{\mst at greek@ush}
+    \DeclareSymbolFont{mtgreekup}{LGR}{\mst at fam}{\mst at ser}{\MTgreekupdefault}
+    \DeclareSymbolFont{mtgreekit}{LGR}{\mst at fam}{\mst at ser}{\MTgreekitdefault}
+    \DeclareSymbolFontAlphabet{\mathgreekup}{mtgreekup}
+    \DeclareSymbolFontAlphabet{\mathgreekit}{mtgreekit}
 \else
+%    \end{macrocode}
+% \begin{macro}{mtselfGreekfont}
+%    \begin{macrocode}
 \ifmst at selfGreek
     \DeclareSymbolFont{mtselfGreekfont}{OT1}{\mst at fam}{\mst at ser}{\mst at greek@ush}
 \fi\fi
@@ -5828,6 +6573,10 @@
 % \end{macro}
 % \end{macro}
 % \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
 % \begin{macro}{mteulervm}
 % \begin{macro}{\MathEuler}
 % \begin{macro}{\MathEulerBold}
@@ -5946,8 +6695,7 @@
 \newcommand*\MTencoding[1]{\def\mst at enc{#1}}
 \newcommand*\MTfamily[1]{\def\mst at fam{#1}}
 \newcommand*\MTseries[1]{\def\mst at ser{#1}}
-\newcommand*\MTshape[1]{\def\mst at opsh{#1}
-  \ifmst at italic\else\def\mst at ltsh{#1}\fi}
+\newcommand*\MTshape[1]{\def\mst at opsh{#1}\ifmst at italic\else\def\mst at ltsh{#1}\fi}
 \newcommand*\MTboldvariant[1]{\def\mst at bold{#1}}
 \newcommand*\MTlettershape[1]{\def\mst at ltsh{#1}}
 \let\Mathastextencoding\MTencoding
@@ -5971,15 +6719,14 @@
 %   |1.15c|: These new macros can be used in-between calls to \cs{Mathastext}.
 %   They reset the shapes for Greek letters (applies to LGRgreek(s) and
 %   selfGreek(s) options). The \cs{MTgreekfont} presupposes either LGRgreek or
-%   selfGreek. |\MTgreekfont{\familydefault}| acts like turning on LGRgreeks or
+%   selfGreek (it is inoperant under LGRgreeks or selfGreeks).
+%   |\MTgreekfont{\familydefault}| is somewhat like using LGRgreeks or
 %   selfGreeks.
 %    \begin{macrocode}
-    \newcommand*\MTitgreek{%
-\mst at itgreektrue\mst at upgreekfalse\def\mst at greek@select{0}}
-    \newcommand*\MTupgreek{%
-\mst at upgreektrue\mst at itgreekfalse\def\mst at greek@select{0}}
-    \newcommand*\MTitGreek{\def\mst at greek@select{1}}
-    \newcommand*\MTupGreek{\def\mst at greek@select{2}}
+\newcommand*\MTitgreek{\mst at itgreektrue\mst at upgreekfalse\def\mst at greek@select{0}}
+\newcommand*\MTupgreek{\mst at upgreektrue\mst at itgreekfalse\def\mst at greek@select{0}}
+\newcommand*\MTitGreek{\def\mst at greek@select{1}}
+\newcommand*\MTupGreek{\def\mst at greek@select{2}}
 \let\Mathastextitgreek\MTitgreek
 \let\Mathastextupgreek\MTupgreek
 \let\MathastextitGreek\MTitGreek
@@ -6150,36 +6897,83 @@
 % 1 the number of fonts embedded at the end in the PDF). 
 %
 % [(Dec. 2012) should I reexamine these definitive sounding remarks?]
+%
+% |1.3x| of |2022/11/03| adds support for |ncccomma| option.
+%
+% Some non-obvious hack is needed for compatibility with our home-made
+% mechanism of non-letters obeying math alphabet commands.  Alternative
+% would have been to not load at all this package and provide the
+% functionality purely by our own means (rewriting entirely its two
+% macros after loading the package would not have made much sense).
 %    \begin{macrocode}
-\ifmst at nopunct\else\typeout{** punctuation\string: \string, \string. \string: \string; and \string\colon}
-\DeclareMathSymbol{,}{\mathpunct}{\mst at font@tbu}{"2C}
-\DeclareMathSymbol{\mst at varfam@comma}{\mathalpha}{\mst at font@tbu}{"2C}
-\expandafter\mst at addtodo@nonletters\string,\mathpunct\mst at varfam@comma
-\DeclareMathSymbol{.}{\mathord}{\mst at font@tbu}{"2E}
-\DeclareMathSymbol{\mst at varfam@dot}{\mathalpha}{\mst at font@tbu}{"2E}
-\mst at addtodo@easynonletters\.\mst at varfam@dot
-\DeclareMathSymbol{:}{\mathrel}{\mst at font@tbu}{"3A} % relation spacing
-\DeclareMathSymbol{\mst at varfam@colon}{\mathalpha}{\mst at font@tbu}{"3A}
-\expandafter\mst at addtodo@nonletters\string:\mathrel\mst at varfam@colon
-\@ifpackageloaded{amsmath}
-{} % \colon defined in amsmath.sty in terms of : with some enlarged explicit
-   % spacing. No need to intervene. 
-{% no amsmath, use standard punctuation spacing
-\let\colon\undefined 
-  % the reason is if some package has redefined \colon which then
-  % can not be used in \cs{DeclareMathSymbol} anymore (we
-  % shamelessly overwrite...)
+\ifmst at nopunct\else\typeout{** punctuation\string: \string, \string. \string:
+    \string; and \string\colon}
+  \DeclareMathSymbol{,}{\mathpunct}{\mst at font@tbu}{"2C}
+  \DeclareMathSymbol{\mst at varfam@comma}{\mathalpha}{\mst at font@tbu}{"2C}
+  \ifmst at ncccomma
+    \typeout{** loading package ncccomma for `smart comma\string'}
+    \RequirePackage{ncccomma}%
+%    \end{macrocode}
+% Work around some bad interaction of |ncccomma|, |numprint| with
+% |autolanguage| and |babel-frenchb|.  Some hesitation whether I should
+% use the \cs{noextrasfrench} to work around |babel-frenchb| code
+% influencing non-French sections in the document.
+%    \begin{macrocode}
+    \AtBeginDocument{\mathcode`\,="8000\relax
+    \@ifpackageloaded{babel}{%
+                 \addto\noextrasfrench{\mathcode`\,="8000\relax}%
+                 \addto\extrasfrench{\mathcode`\,="8000\relax}%
+                 }{}}
+    \let\mathcomma\relax
+    \DeclareMathSymbol{\mathcomma}{\mathpunct}{\mst at font@tbu}{"2C}
+%    \end{macrocode}
+% Complications for compatibility with the \cs{MTnonlettersobeymathxx} mechanism.
+%    \begin{macrocode}
+    \edef\mst at NCC@comma{\let\noexpand\@empty\mathpunct
+                        \unexpanded\expandafter{\NCC at comma}%
+                        \let\noexpand\@empty\noexpand\empty}
+    \mst at do@nonletters\expandafter{\the\mst at do@nonletters
+      \let\mathcomma\mst at varfam@comma
+      \let\NCC at comma\mst at NCC@comma
+      }
+  \else
+    \expandafter\mst at addtodo@nonletters\string,\mathpunct\mst at varfam@comma
+  \fi % ncccomma true
+  \DeclareMathSymbol{.}{\mathord}{\mst at font@tbu}{"2E}
+  \DeclareMathSymbol{\mst at varfam@dot}{\mathalpha}{\mst at font@tbu}{"2E}
+  \mst at addtodo@easynonletters\.\mst at varfam@dot
+  \DeclareMathSymbol{:}{\mathrel}{\mst at font@tbu}{"3A} % relation spacing
+  \DeclareMathSymbol{\mst at varfam@colon}{\mathalpha}{\mst at font@tbu}{"3A}
+  \expandafter\mst at addtodo@nonletters\string:\mathrel\mst at varfam@colon
+  \@ifpackageloaded{amsmath}
+  {} % \colon defined in amsmath.sty in terms of : with some enlarged explicit
+     % spacing. No need to intervene. 
+  {% no amsmath, use standard punctuation spacing
+    \let\colon\undefined 
+    % the reason is if some package has redefined \colon which then
+    % can not be used in \cs{DeclareMathSymbol} anymore (we
+    % shamelessly overwrite...)
     \DeclareMathSymbol{\colon}{\mathpunct}{\mst at font@tbu}{"3A}
     \mst at do@nonletters\expandafter{\the\mst at do@nonletters
 %    \end{macrocode}
 % |1.3v| uses \cs{protected} for the (optional) \cs{colon} redefinition.
 %    \begin{macrocode}
-        \protected\def\colon{\mathpunct{\mst at varfam@colon}}}} 
-\DeclareMathSymbol{;}{\mathpunct}{\mst at font@tbu}{"3B}
-\DeclareMathSymbol{\mst at varfam@pointvirgule}{\mathalpha}{\mst at font@tbu}{"3B}
-\expandafter\mst at addtodo@nonletters\string;\mathpunct\mst at varfam@pointvirgule
-\fi
+        \protected\def\colon{\mathpunct{\mst at varfam@colon}}}%
+  }
+  \DeclareMathSymbol{\mst at varfam@pointvirgule}{\mathalpha}{\mst at font@tbu}{"3B}
 %    \end{macrocode}
+% |1.3x| adds |binarysemicolon| option.
+%    \begin{macrocode}
+  \ifmst at binarysemicolon
+    \typeout{** semi-colon set to be of type \string\mathbin}
+    \DeclareMathSymbol{;}{\mathbin}{\mst at font@tbu}{"3B}
+    \expandafter\mst at addtodo@nonletters\string;\mathbin\mst at varfam@pointvirgule
+  \else
+    \DeclareMathSymbol{;}{\mathpunct}{\mst at font@tbu}{"3B}
+    \expandafter\mst at addtodo@nonletters\string;\mathpunct\mst at varfam@pointvirgule
+  \fi % binarysemicolno
+\fi % end \ifmst at nopunct else branch
+%    \end{macrocode}
 % \begin{macro}{\relbar}
 % Due to the way = and - are used by \LaTeX{} in arrows, we will
 % have to redefine \cs{Relbar} and \cs{relbar} in order for 
@@ -7007,10 +7801,10 @@
   \DeclareMathSymbol{\mst at chi}{\mathord}{mtpsymbol}{"63}
   \DeclareMathSymbol{\mst at psi}{\mathord}{mtpsymbol}{"79}
   \DeclareMathSymbol{\mst at omega}{\mathord}{mtpsymbol}{"77}
-  \let\mst at varepsilon=\mst at epsilon 
+  \let\mst at varepsilon=\mst at epsilon
   \DeclareMathSymbol{\mst at vartheta}{\mathord}{mtpsymbol}{"4A}
   \DeclareMathSymbol{\mst at varpi}{\mathord}{mtpsymbol}{"76}
-  \let\mst at varrho=\mst at rho 
+  \let\mst at varrho=\mst at rho
   \DeclareMathSymbol{\mst at varsigma}{\mathord}{mtpsymbol}{"56}
   \DeclareMathSymbol{\mst at varphi}{\mathord}{mtpsymbol}{"6A}
   \DeclareMathSymbol{\mst at partial}{\mathord}{mtpsymbol}{"B6}
@@ -7018,68 +7812,190 @@
   \fi
  \fi
 \fi
+%    \end{macrocode}
+% \begin{macro}{\alphaup etc...}
+% Completely refactored at |1.3x| to define |\Alphaup|, |\Alphait|,
+% |\alphaup|, |\alphait|, etc\dots{} and prepare templates |\Alpha|, \dots{},
+% |\alpha|, \dots{}, which when activating a math version will be submitted to
+% an |\expanded|, whose behaviour will depend on version-specific conditionals.
+%    \begin{macrocode}
 \ifmst at LGRgreek
 % cf http://milde.users.sourceforge.net/LGR/lgrxenc.def.html
 % et greek.ldf du package babel
-\DeclareMathSymbol{\mst at Alpha}{\mathalpha}{mtlgrfontupper}{65}
-\DeclareMathSymbol{\mst at Beta}{\mathalpha}{mtlgrfontupper}{66}
-\DeclareMathSymbol{\mst at Epsilon}{\mathalpha}{mtlgrfontupper}{69}
-\DeclareMathSymbol{\mst at Zeta}{\mathalpha}{mtlgrfontupper}{90}
-\DeclareMathSymbol{\mst at Eta}{\mathalpha}{mtlgrfontupper}{72}
-\DeclareMathSymbol{\mst at Iota}{\mathalpha}{mtlgrfontupper}{73}
-\DeclareMathSymbol{\mst at Kappa}{\mathalpha}{mtlgrfontupper}{75}
-\DeclareMathSymbol{\mst at Mu}{\mathalpha}{mtlgrfontupper}{77}
-\DeclareMathSymbol{\mst at Nu}{\mathalpha}{mtlgrfontupper}{78}
-\DeclareMathSymbol{\mst at Omicron}{\mathalpha}{mtlgrfontupper}{79}
-\DeclareMathSymbol{\mst at Rho}{\mathalpha}{mtlgrfontupper}{82}
-\DeclareMathSymbol{\mst at Tau}{\mathalpha}{mtlgrfontupper}{84}
-\DeclareMathSymbol{\mst at Chi}{\mathalpha}{mtlgrfontupper}{81}
-%
-\DeclareMathSymbol{\mst at Digamma}{\mathalpha}{mtlgrfontlower}{195}    
-%
-\DeclareMathSymbol{\mst at Gamma}{\mathalpha}{mtlgrfontupper}{71}
-\DeclareMathSymbol{\mst at Delta}{\mathalpha}{mtlgrfontupper}{68}
-\DeclareMathSymbol{\mst at Theta}{\mathalpha}{mtlgrfontupper}{74}
-\DeclareMathSymbol{\mst at Lambda}{\mathalpha}{mtlgrfontupper}{76}
-\DeclareMathSymbol{\mst at Xi}{\mathalpha}{mtlgrfontupper}{88}
-\DeclareMathSymbol{\mst at Pi}{\mathalpha}{mtlgrfontupper}{80}
-\DeclareMathSymbol{\mst at Sigma}{\mathalpha}{mtlgrfontupper}{83}
-\DeclareMathSymbol{\mst at Upsilon}{\mathalpha}{mtlgrfontupper}{85}
-\DeclareMathSymbol{\mst at Phi}{\mathalpha}{mtlgrfontupper}{70}
-\DeclareMathSymbol{\mst at Psi}{\mathalpha}{mtlgrfontupper}{89}
-\DeclareMathSymbol{\mst at Omega}{\mathalpha}{mtlgrfontupper}{87}
-%
-\DeclareMathSymbol{\mst at alpha}{\mathalpha}{mtlgrfontlower}{97}
-\DeclareMathSymbol{\mst at beta}{\mathalpha}{mtlgrfontlower}{98}
-\DeclareMathSymbol{\mst at gamma}{\mathalpha}{mtlgrfontlower}{103}
-\DeclareMathSymbol{\mst at delta}{\mathalpha}{mtlgrfontlower}{100}
-\DeclareMathSymbol{\mst at epsilon}{\mathalpha}{mtlgrfontlower}{101}
-\DeclareMathSymbol{\mst at zeta}{\mathalpha}{mtlgrfontlower}{122}
-\DeclareMathSymbol{\mst at eta}{\mathalpha}{mtlgrfontlower}{104}
-\DeclareMathSymbol{\mst at theta}{\mathalpha}{mtlgrfontlower}{106}
-\DeclareMathSymbol{\mst at iota}{\mathalpha}{mtlgrfontlower}{105}
-\DeclareMathSymbol{\mst at kappa}{\mathalpha}{mtlgrfontlower}{107}
-\DeclareMathSymbol{\mst at lambda}{\mathalpha}{mtlgrfontlower}{108}
-\DeclareMathSymbol{\mst at mu}{\mathalpha}{mtlgrfontlower}{109}
-\DeclareMathSymbol{\mst at nu}{\mathalpha}{mtlgrfontlower}{110}
-\DeclareMathSymbol{\mst at xi}{\mathalpha}{mtlgrfontlower}{120}
-\DeclareMathSymbol{\mst at omicron}{\mathalpha}{mtlgrfontlower}{111}
-\DeclareMathSymbol{\mst at pi}{\mathalpha}{mtlgrfontlower}{112}
-\DeclareMathSymbol{\mst at rho}{\mathalpha}{mtlgrfontlower}{114}
-\DeclareMathSymbol{\mst at sigma}{\mathalpha}{mtlgrfontlower}{115}       
-\DeclareMathSymbol{\mst at tau}{\mathalpha}{mtlgrfontlower}{116}
-\DeclareMathSymbol{\mst at upsilon}{\mathalpha}{mtlgrfontlower}{117}
-\DeclareMathSymbol{\mst at phi}{\mathalpha}{mtlgrfontlower}{102}
-\DeclareMathSymbol{\mst at chi}{\mathalpha}{mtlgrfontlower}{113}
-\DeclareMathSymbol{\mst at psi}{\mathalpha}{mtlgrfontlower}{121}
-\DeclareMathSymbol{\mst at omega}{\mathalpha}{mtlgrfontlower}{119}
-%
-\DeclareMathSymbol{\mst at digamma}{\mathalpha}{mtlgrfontlower}{147}   
+  \DeclareMathSymbol{\Alphaup}{\mathalpha}{mtgreekup}{65}
+  \DeclareMathSymbol{\Betaup}{\mathalpha}{mtgreekup}{66}
+  \DeclareMathSymbol{\Epsilonup}{\mathalpha}{mtgreekup}{69}
+  \DeclareMathSymbol{\Zetaup}{\mathalpha}{mtgreekup}{90}
+  \DeclareMathSymbol{\Etaup}{\mathalpha}{mtgreekup}{72}
+  \DeclareMathSymbol{\Iotaup}{\mathalpha}{mtgreekup}{73}
+  \DeclareMathSymbol{\Kappaup}{\mathalpha}{mtgreekup}{75}
+  \DeclareMathSymbol{\Muup}{\mathalpha}{mtgreekup}{77}
+  \DeclareMathSymbol{\Nuup}{\mathalpha}{mtgreekup}{78}
+  \DeclareMathSymbol{\Omicronup}{\mathalpha}{mtgreekup}{79}
+  \DeclareMathSymbol{\Rhoup}{\mathalpha}{mtgreekup}{82}
+  \DeclareMathSymbol{\Tauup}{\mathalpha}{mtgreekup}{84}
+  \DeclareMathSymbol{\Chiup}{\mathalpha}{mtgreekup}{81}
+  %
+  \DeclareMathSymbol{\Alphait}{\mathalpha}{mtgreekit}{65}
+  \DeclareMathSymbol{\Betait}{\mathalpha}{mtgreekit}{66}
+  \DeclareMathSymbol{\Epsilonit}{\mathalpha}{mtgreekit}{69}
+  \DeclareMathSymbol{\Zetait}{\mathalpha}{mtgreekit}{90}
+  \DeclareMathSymbol{\Etait}{\mathalpha}{mtgreekit}{72}
+  \DeclareMathSymbol{\Iotait}{\mathalpha}{mtgreekit}{73}
+  \DeclareMathSymbol{\Kappait}{\mathalpha}{mtgreekit}{75}
+  \DeclareMathSymbol{\Muit}{\mathalpha}{mtgreekit}{77}
+  \DeclareMathSymbol{\Nuit}{\mathalpha}{mtgreekit}{78}
+  \DeclareMathSymbol{\Omicronit}{\mathalpha}{mtgreekit}{79}
+  \DeclareMathSymbol{\Rhoit}{\mathalpha}{mtgreekit}{82}
+  \DeclareMathSymbol{\Tauit}{\mathalpha}{mtgreekit}{84}
+  \DeclareMathSymbol{\Chiit}{\mathalpha}{mtgreekit}{81}
+%    \end{macrocode}
+% |1.3w| and earlier had a bug regarding Digamma which was set up
+% to use same font shape as for lowercase digamma.
+%    \begin{macrocode}
+  \DeclareMathSymbol{\Digammaup}{\mathalpha}{mtgreekup}{195}
+  \DeclareMathSymbol{\Digammait}{\mathalpha}{mtgreekit}{195}
+  %
+  \DeclareMathSymbol{\Gammaup}{\mathalpha}{mtgreekup}{71}
+  \DeclareMathSymbol{\Deltaup}{\mathalpha}{mtgreekup}{68}
+  \DeclareMathSymbol{\Thetaup}{\mathalpha}{mtgreekup}{74}
+  \DeclareMathSymbol{\Lambdaup}{\mathalpha}{mtgreekup}{76}
+  \DeclareMathSymbol{\Xiup}{\mathalpha}{mtgreekup}{88}
+  \DeclareMathSymbol{\Piup}{\mathalpha}{mtgreekup}{80}
+  \DeclareMathSymbol{\Sigmaup}{\mathalpha}{mtgreekup}{83}
+  \DeclareMathSymbol{\Upsilonup}{\mathalpha}{mtgreekup}{85}
+  \DeclareMathSymbol{\Phiup}{\mathalpha}{mtgreekup}{70}
+  \DeclareMathSymbol{\Psiup}{\mathalpha}{mtgreekup}{89}
+  \DeclareMathSymbol{\Omegaup}{\mathalpha}{mtgreekup}{87}
+  %
+  \DeclareMathSymbol{\Gammait}{\mathalpha}{mtgreekit}{71}
+  \DeclareMathSymbol{\Deltait}{\mathalpha}{mtgreekit}{68}
+  \DeclareMathSymbol{\Thetait}{\mathalpha}{mtgreekit}{74}
+  \DeclareMathSymbol{\Lambdait}{\mathalpha}{mtgreekit}{76}
+  \DeclareMathSymbol{\Xiit}{\mathalpha}{mtgreekit}{88}
+  \DeclareMathSymbol{\Piit}{\mathalpha}{mtgreekit}{80}
+  \DeclareMathSymbol{\Sigmait}{\mathalpha}{mtgreekit}{83}
+  \DeclareMathSymbol{\Upsilonit}{\mathalpha}{mtgreekit}{85}
+  \DeclareMathSymbol{\Phiit}{\mathalpha}{mtgreekit}{70}
+  \DeclareMathSymbol{\Psiit}{\mathalpha}{mtgreekit}{89}
+  \DeclareMathSymbol{\Omegait}{\mathalpha}{mtgreekit}{87}
+  %
+  \def\mst at Alpha{\ifmst at lgr@upper at up\Alphaup\else\Alphait\fi}%
+  \def\mst at Beta{\ifmst at lgr@upper at up\Betaup\else\Betait\fi}%
+  \def\mst at Epsilon{\ifmst at lgr@upper at up\Epsilonup\else\Epsilonit\fi}%
+  \def\mst at Zeta{\ifmst at lgr@upper at up\Zetaup\else\Zetait\fi}%
+  \def\mst at Eta{\ifmst at lgr@upper at up\Etaup\else\Etait\fi}%
+  \def\mst at Iota{\ifmst at lgr@upper at up\Iotaup\else\Iotait\fi}%
+  \def\mst at Kappa{\ifmst at lgr@upper at up\Kappaup\else\Kappait\fi}%
+  \def\mst at Mu{\ifmst at lgr@upper at up\Muup\else\Muit\fi}%
+  \def\mst at Nu{\ifmst at lgr@upper at up\Nuup\else\Nuit\fi}%
+  \def\mst at Omicron{\ifmst at lgr@upper at up\Omicronup\else\Omicronit\fi}%
+  \def\mst at Rho{\ifmst at lgr@upper at up\Rhoup\else\Rhoit\fi}%
+  \def\mst at Tau{\ifmst at lgr@upper at up\Tauup\else\Tauit\fi}%
+  \def\mst at Chi{\ifmst at lgr@upper at up\Chiup\else\Chiit\fi}%
+  %
+  \def\mst at Digamma{\ifmst at lgr@upper at up\Digammaup\else\Digammait\fi}%
+  %
+  \def\mst at Gamma{\ifmst at lgr@upper at up\Gammaup\else\Gammait\fi}%
+  \def\mst at Delta{\ifmst at lgr@upper at up\Deltaup\else\Deltait\fi}%
+  \def\mst at Theta{\ifmst at lgr@upper at up\Thetaup\else\Thetait\fi}%
+  \def\mst at Lambda{\ifmst at lgr@upper at up\Lambdaup\else\Lambdait\fi}%
+  \def\mst at Xi{\ifmst at lgr@upper at up\Xiup\else\Xiit\fi}%
+  \def\mst at Pi{\ifmst at lgr@upper at up\Piup\else\Piit\fi}%
+  \def\mst at Sigma{\ifmst at lgr@upper at up\Sigmaup\else\Sigmait\fi}%
+  \def\mst at Upsilon{\ifmst at lgr@upper at up\Upsilonup\else\Upsilonit\fi}%
+  \def\mst at Phi{\ifmst at lgr@upper at up\Phiup\else\Phiit\fi}%
+  \def\mst at Psi{\ifmst at lgr@upper at up\Psiup\else\Psiit\fi}%
+  \def\mst at Omega{\ifmst at lgr@upper at up\Omegaup\else\Omegait\fi}%
+  %
+  \DeclareMathSymbol{\alphaup}{\mathalpha}{mtgreekup}{97}
+  \DeclareMathSymbol{\betaup}{\mathalpha}{mtgreekup}{98}
+  \DeclareMathSymbol{\gammaup}{\mathalpha}{mtgreekup}{103}
+  \DeclareMathSymbol{\deltaup}{\mathalpha}{mtgreekup}{100}
+  \DeclareMathSymbol{\epsilonup}{\mathalpha}{mtgreekup}{101}
+  \DeclareMathSymbol{\zetaup}{\mathalpha}{mtgreekup}{122}
+  \DeclareMathSymbol{\etaup}{\mathalpha}{mtgreekup}{104}
+  \DeclareMathSymbol{\thetaup}{\mathalpha}{mtgreekup}{106}
+  \DeclareMathSymbol{\iotaup}{\mathalpha}{mtgreekup}{105}
+  \DeclareMathSymbol{\kappaup}{\mathalpha}{mtgreekup}{107}
+  \DeclareMathSymbol{\lambdaup}{\mathalpha}{mtgreekup}{108}
+  \DeclareMathSymbol{\muup}{\mathalpha}{mtgreekup}{109}
+  \DeclareMathSymbol{\nuup}{\mathalpha}{mtgreekup}{110}
+  \DeclareMathSymbol{\xiup}{\mathalpha}{mtgreekup}{120}
+  \DeclareMathSymbol{\omicronup}{\mathalpha}{mtgreekup}{111}
+  \DeclareMathSymbol{\piup}{\mathalpha}{mtgreekup}{112}
+  \DeclareMathSymbol{\rhoup}{\mathalpha}{mtgreekup}{114}
+  \DeclareMathSymbol{\sigmaup}{\mathalpha}{mtgreekup}{115}
+  \DeclareMathSymbol{\tauup}{\mathalpha}{mtgreekup}{116}
+  \DeclareMathSymbol{\upsilonup}{\mathalpha}{mtgreekup}{117}
+  \DeclareMathSymbol{\phiup}{\mathalpha}{mtgreekup}{102}
+  \DeclareMathSymbol{\chiup}{\mathalpha}{mtgreekup}{113}
+  \DeclareMathSymbol{\psiup}{\mathalpha}{mtgreekup}{121}
+  \DeclareMathSymbol{\omegaup}{\mathalpha}{mtgreekup}{119}
+  %
+  \DeclareMathSymbol{\digammaup}{\mathalpha}{mtgreekup}{147}
 % only varsigma defined (I should check this again)
-\DeclareMathSymbol{\mst at varsigma}{\mathalpha}{mtlgrfontlower}{99}  
+  \DeclareMathSymbol{\varsigmaup}{\mathalpha}{mtgreekup}{99}
+  %
+  \DeclareMathSymbol{\alphait}{\mathalpha}{mtgreekit}{97}
+  \DeclareMathSymbol{\betait}{\mathalpha}{mtgreekit}{98}
+  \DeclareMathSymbol{\gammait}{\mathalpha}{mtgreekit}{103}
+  \DeclareMathSymbol{\deltait}{\mathalpha}{mtgreekit}{100}
+  \DeclareMathSymbol{\epsilonit}{\mathalpha}{mtgreekit}{101}
+  \DeclareMathSymbol{\zetait}{\mathalpha}{mtgreekit}{122}
+  \DeclareMathSymbol{\etait}{\mathalpha}{mtgreekit}{104}
+  \DeclareMathSymbol{\thetait}{\mathalpha}{mtgreekit}{106}
+  \DeclareMathSymbol{\iotait}{\mathalpha}{mtgreekit}{105}
+  \DeclareMathSymbol{\kappait}{\mathalpha}{mtgreekit}{107}
+  \DeclareMathSymbol{\lambdait}{\mathalpha}{mtgreekit}{108}
+  \DeclareMathSymbol{\muit}{\mathalpha}{mtgreekit}{109}
+  \DeclareMathSymbol{\nuit}{\mathalpha}{mtgreekit}{110}
+  \DeclareMathSymbol{\xiit}{\mathalpha}{mtgreekit}{120}
+  \DeclareMathSymbol{\omicronit}{\mathalpha}{mtgreekit}{111}
+  \DeclareMathSymbol{\piit}{\mathalpha}{mtgreekit}{112}
+  \DeclareMathSymbol{\rhoit}{\mathalpha}{mtgreekit}{114}
+  \DeclareMathSymbol{\sigmait}{\mathalpha}{mtgreekit}{115}
+  \DeclareMathSymbol{\tauit}{\mathalpha}{mtgreekit}{116}
+  \DeclareMathSymbol{\upsilonit}{\mathalpha}{mtgreekit}{117}
+  \DeclareMathSymbol{\phiit}{\mathalpha}{mtgreekit}{102}
+  \DeclareMathSymbol{\chiit}{\mathalpha}{mtgreekit}{113}
+  \DeclareMathSymbol{\psiit}{\mathalpha}{mtgreekit}{121}
+  \DeclareMathSymbol{\omegait}{\mathalpha}{mtgreekit}{119}
+  %
+  \DeclareMathSymbol{\digammait}{\mathalpha}{mtgreekit}{147}
+  \DeclareMathSymbol{\varsigmait}{\mathalpha}{mtgreekit}{99}
+  %
+  \def\mst at alpha{\ifmst at lgr@lower at up\alphaup\else\alphait\fi}%
+  \def\mst at beta{\ifmst at lgr@lower at up\betaup\else\betait\fi}%
+  \def\mst at gamma{\ifmst at lgr@lower at up\gammaup\else\gammait\fi}%
+  \def\mst at delta{\ifmst at lgr@lower at up\deltaup\else\deltait\fi}%
+  \def\mst at epsilon{\ifmst at lgr@lower at up\epsilonup\else\epsilonit\fi}%
+  \def\mst at zeta{\ifmst at lgr@lower at up\zetaup\else\zetait\fi}%
+  \def\mst at eta{\ifmst at lgr@lower at up\etaup\else\etait\fi}%
+  \def\mst at theta{\ifmst at lgr@lower at up\thetaup\else\thetait\fi}%
+  \def\mst at iota{\ifmst at lgr@lower at up\iotaup\else\iotait\fi}%
+  \def\mst at kappa{\ifmst at lgr@lower at up\kappaup\else\kappait\fi}%
+  \def\mst at lambda{\ifmst at lgr@lower at up\lambdaup\else\lambdait\fi}%
+  \def\mst at mu{\ifmst at lgr@lower at up\muup\else\muit\fi}%
+  \def\mst at nu{\ifmst at lgr@lower at up\nuup\else\nuit\fi}%
+  \def\mst at xi{\ifmst at lgr@lower at up\xiup\else\xiit\fi}%
+  \def\mst at omicron{\ifmst at lgr@lower at up\omicronup\else\omicronit\fi}%
+  \def\mst at pi{\ifmst at lgr@lower at up\piup\else\piit\fi}%
+  \def\mst at rho{\ifmst at lgr@lower at up\rhoup\else\rhoit\fi}%
+  \def\mst at sigma{\ifmst at lgr@lower at up\sigmaup\else\sigmait\fi}%
+  \def\mst at tau{\ifmst at lgr@lower at up\tauup\else\tauit\fi}%
+  \def\mst at upsilon{\ifmst at lgr@lower at up\upsilonup\else\upsilonit\fi}%
+  \def\mst at phi{\ifmst at lgr@lower at up\phiup\else\phiit\fi}%
+  \def\mst at chi{\ifmst at lgr@lower at up\chiup\else\chiit\fi}%
+  \def\mst at psi{\ifmst at lgr@lower at up\psiup\else\psiit\fi}%
+  \def\mst at omega{\ifmst at lgr@lower at up\omegaup\else\omegait\fi}%
+    %
+  \def\mst at digamma{\ifmst at lgr@lower at up\digammaup\else\digammait\fi}%
+  \def\mst at varsigma{\ifmst at lgr@lower at up\varsigmaup\else\varsigmait\fi}%
 \fi
 %    \end{macrocode}
 % \end{macro}
+% \end{macro}
 % \begin{macro}{\MTstandardgreek}
 % \begin{macro}{\MTcustomgreek}
 % \begin{macro}{\MTrecordstandardgreek}
@@ -7222,34 +8138,55 @@
     \let\wp\mst at origwp
     \let\ell\mst at origell
 }% \MTstandardgreek
+%    \end{macrocode}
+%   Under |selfGreek| or other Greek option but not |LGRgreek|, these Greek
+%   letter control sequences are already |\mathchar|'s, but under |LGRgreek|
+%   they need (well not really, but I feel it is cleaner) expansion which will
+%   react to the Boolean saying if using `upright' or `italic'. This Boolean
+%   setting is recorded when declaring a math version and reenacted when
+%   \cs{MTversion} is encountered in the document body. We must be careful not
+%   to contaminate things in the principal mode from math version declarations
+%   but I think my (now quite old) code is globally designed to achieve this
+%   protection see how \cs{MTDeclareVersion} is done.  The \cs{MTcustomgreek}
+%   will always be executed in preamble at least once, except under |subdued|
+%   option.
+%
+%   The \cs{expanded}'s act on unexpanding tokens if not used under |LGRgreek|
+%   regimen.
+%    \begin{macrocode}
 \renewcommand*{\MTcustomgreek}{%
-    \let\Alpha\mst at Alpha
-    \let\Beta\mst at Beta
-    \let\Epsilon\mst at Epsilon
-    \let\Zeta\mst at Zeta
-    \let\Eta\mst at Eta
-    \let\Iota\mst at Iota
-    \let\Kappa\mst at Kappa
-    \let\Mu\mst at Mu
-    \let\Nu\mst at Nu
-    \let\Omicron\mst at Omicron
-    \let\Rho\mst at Rho
-    \let\Tau\mst at Tau
-    \let\Chi\mst at Chi
+  \expanded{%
+    \let\noexpand\Alpha\mst at Alpha
+    \let\noexpand\Beta\mst at Beta
+    \let\noexpand\Epsilon\mst at Epsilon
+    \let\noexpand\Zeta\mst at Zeta
+    \let\noexpand\Eta\mst at Eta
+    \let\noexpand\Iota\mst at Iota
+    \let\noexpand\Kappa\mst at Kappa
+    \let\noexpand\Mu\mst at Mu
+    \let\noexpand\Nu\mst at Nu
+    \let\noexpand\Omicron\mst at Omicron
+    \let\noexpand\Rho\mst at Rho
+    \let\noexpand\Tau\mst at Tau
+    \let\noexpand\Chi\mst at Chi
+  }% end of first big \expanded
 % 1.3h: \mst at Digamma not defined if symbolgreek option
-    \ifmst at symbolgreek\else\let\Digamma\mst at Digamma\fi
-%
-    \let\Gamma\mst at Gamma
-    \let\Delta\mst at Delta
-    \let\Theta\mst at Theta
-    \let\Lambda\mst at Lambda
-    \let\Xi\mst at Xi
-    \let\Pi\mst at Pi
-    \let\Sigma\mst at Sigma
-    \let\Upsilon\mst at Upsilon
-    \let\Phi\mst at Phi
-    \let\Psi\mst at Psi
-    \let\Omega\mst at Omega
+    \ifmst at symbolgreek\else
+        \expanded{\let\noexpand\Digamma\mst at Digamma}%
+    \fi
+  \expanded{%
+    \let\noexpand\Gamma\mst at Gamma
+    \let\noexpand\Delta\mst at Delta
+    \let\noexpand\Theta\mst at Theta
+    \let\noexpand\Lambda\mst at Lambda
+    \let\noexpand\Xi\mst at Xi
+    \let\noexpand\Pi\mst at Pi
+    \let\noexpand\Sigma\mst at Sigma
+    \let\noexpand\Upsilon\mst at Upsilon
+    \let\noexpand\Phi\mst at Phi
+    \let\noexpand\Psi\mst at Psi
+    \let\noexpand\Omega\mst at Omega
+  }% end of second big \expanded
 %    \end{macrocode}
 % |1.3h 2015/10/31| adds this conditional to correct the bad bug in 
 % |1.3d 2014/05/23| which caused |\alpha| etc... to become undefined 
@@ -7256,34 +8193,37 @@
 % under option |selfGreek|.
 %    \begin{macrocode}
  \ifmst at selfGreek\else
-    \let\alpha\mst at alpha
-    \let\beta\mst at beta
-    \let\gamma\mst at gamma
-    \let\delta\mst at delta
-    \let\epsilon\mst at epsilon
-    \let\zeta\mst at zeta
-    \let\eta\mst at eta
-    \let\theta\mst at theta
-    \let\iota\mst at iota
-    \let\kappa\mst at kappa
-    \let\lambda\mst at lambda
-    \let\mu\mst at mu
-    \let\nu\mst at nu
-    \let\xi\mst at xi
-    \let\omicron\mst at omicron
-    \let\pi\mst at pi
-    \let\rho\mst at rho
-    \let\sigma\mst at sigma
-    \let\tau\mst at tau
-    \let\upsilon\mst at upsilon
-    \let\phi\mst at phi
-    \let\chi\mst at chi
-    \let\psi\mst at psi
-    \let\omega\mst at omega
+  \expanded{%
+    \let\noexpand\alpha\mst at alpha
+    \let\noexpand\beta\mst at beta
+    \let\noexpand\gamma\mst at gamma
+    \let\noexpand\delta\mst at delta
+    \let\noexpand\epsilon\mst at epsilon
+    \let\noexpand\zeta\mst at zeta
+    \let\noexpand\eta\mst at eta
+    \let\noexpand\theta\mst at theta
+    \let\noexpand\iota\mst at iota
+    \let\noexpand\kappa\mst at kappa
+    \let\noexpand\lambda\mst at lambda
+    \let\noexpand\mu\mst at mu
+    \let\noexpand\nu\mst at nu
+    \let\noexpand\xi\mst at xi
+    \let\noexpand\omicron\mst at omicron
+    \let\noexpand\pi\mst at pi
+    \let\noexpand\rho\mst at rho
+    \let\noexpand\sigma\mst at sigma
+    \let\noexpand\tau\mst at tau
+    \let\noexpand\upsilon\mst at upsilon
+    \let\noexpand\phi\mst at phi
+    \let\noexpand\chi\mst at chi
+    \let\noexpand\psi\mst at psi
+    \let\noexpand\omega\mst at omega
+    \let\noexpand\varsigma\mst at varsigma
+  }% end of third big \expanded
 % 1.3h: digamma only defined with option LGRgreek:
-    \ifmst at LGRgreek\let\digamma\mst at digamma\fi
-%
-    \let\varsigma\mst at varsigma
+    \ifmst at LGRgreek
+        \expanded{\let\noexpand\digamma\mst at digamma}%
+    \fi
 % conditional added 1.3h 2015/10/31
     \ifmst at LGRgreek\else
       \let\varepsilon\mst at varepsilon
@@ -7299,7 +8239,7 @@
     \fi
  \fi
 }% \MTcustomgreek
-\fi
+\fi% end of \ifcustomgreek
 \let\Mathastextstandardgreek\MTstandardgreek
 \let\Mathastextcustomgreek\MTcustomgreek
 \ifmst at subdued\else\MTcustomgreek\fi
@@ -7691,7 +8631,7 @@
       \typeout{** Latin letters in math version `#2\string' will use the font
                   #3/#4/#5/\mst at ltsh^^J%    
                ** Other characters (digits, ...) and \protect\log-like names 
-                    will be in #6 shape.}%
+                    will be in `#6\string' shape.}%
       \expandafter\edef\csname mst at ltshape@\mst at version\endcsname{\mst at ltsh}%
     \else
       \SetSymbolFont{mtletterfont}{#2}{#3}{#4}{#5}{#6}%
@@ -7704,7 +8644,7 @@
     \typeout{** Latin letters in math version `#2\string' will use the font
                 #3/#4/#5/#1^^J%
              ** Other characters (digits, ...) and \protect\log-like
-                names will be in #6 shape.}%
+                names will be in `#6\string' shape.}%
       \expandafter\edef\csname mst at ltshape@\mst at version\endcsname{#1}%
   \fi
   \ifmst at nonormalbold\else
@@ -7728,14 +8668,36 @@
 %   Greek letters depending on the frenchmath and [it/up][g/G]reek
 %   options as well as on the (local to this version) shapes for letters
 %   and digits.
+%
+%   |1.3x| replaces \cs{updefault} by \cs{MTgreekupdefault} and
+%   \cs{itdefault} by \cs{MTgreekitdefault}.  It also prepares to store
+%   two Boolean settings saying whether lowercase respectively uppercase
+%   Greek letters will use `upright' or `italic' (|LGRgreek(s)| only).
+%
+%   The |1.3x| refactoring of |LGRgreek| is done via a decoupling,
+%   thus things are done here under |selfGreek| or other Greek options
+%   which ultimately serve nothing and conversely things are done here
+%   for |LGRgreek| which are superfluous.
 %    \begin{macrocode}
   \def\mst at greek@lsh at loc{\csname mst at ltshape@\mst at version\endcsname}%
   \def\mst at greek@ush at loc{\csname mst at shape@\mst at version\endcsname}%
-  \ifmst at itgreek\def\mst at greek@lsh at loc{\itdefault}%
-                     \def\mst at greek@ush at loc{\itdefault}%
+  \mst at lgr@lower at uptrue
+      \expandafter\in@\expanded{{\mst at greek@lsh at loc.}}{it.,sl.}%
+      \ifin@\mst at lgr@lower at upfalse\fi
+  \mst at lgr@upper at uptrue
+      \expandafter\in@\expanded{{\mst at greek@ush at loc.}}{it.,sl.}%
+      \ifin@\mst at lgr@upper at upfalse\fi
+  \ifmst at itgreek
+    \def\mst at greek@lsh at loc{\MTgreekitdefault}%
+    \def\mst at greek@ush at loc{\MTgreekitdefault}%
+      \mst at lgr@lower at upfalse
+      \mst at lgr@upper at upfalse
   \fi
-  \ifmst at upgreek\def\mst at greek@lsh at loc{\updefault}%
-                     \def\mst at greek@ush at loc{\updefault}%
+  \ifmst at upgreek
+    \def\mst at greek@lsh at loc{\MTgreekupdefault}%
+    \def\mst at greek@ush at loc{\MTgreekupdefault}%
+      \mst at lgr@lower at uptrue
+      \mst at lgr@upper at uptrue
   \fi
   \ifmst at frenchmath
       \ifmst at itgreek\else
@@ -7742,33 +8704,69 @@
       \ifmst at upgreek\else
         \def\mst at greek@lsh at loc{\csname mst at shape@\mst at version\endcsname}%
         \def\mst at greek@ush at loc{\csname mst at shape@\mst at version\endcsname}%
+        \mst at lgr@lower at uptrue
+        \mst at lgr@upper at uptrue
       \fi\fi
   \fi
   \ifcase\mst at greek@select
-        \or\def\mst at greek@ush at loc{\itdefault}%
-        \or\def\mst at greek@ush at loc{\updefault}%
+        \or
+          \def\mst at greek@ush at loc{\MTgreekitdefault}%
+          \mst at lgr@upper at upfalse
+        \or
+          \def\mst at greek@ush at loc{\MTgreekupdefault}%
+          \mst at lgr@upper at uptrue
   \fi
   \ifmst at LGRgreeks
-      \SetSymbolFont{mtlgrfontlower}{#2}{LGR}{#4}{#5}{\mst at greek@lsh at loc}%
-      \SetSymbolFont{mtlgrfontupper}{#2}{LGR}{#4}{#5}{\mst at greek@ush at loc}%
-    \typeout{** Greek letters (\mst at greek@lsh at loc/\mst at greek@ush at loc) will use
-                LGR font #4\ifmst at subdued ^^J** (in non subdued versions)\fi}%
+    \SetSymbolFont{mtgreekup}{#2}{LGR}{#4}{#5}{\MTgreekupdefault}%
+    \SetSymbolFont{mtgreekit}{#2}{LGR}{#4}{#5}{\MTgreekitdefault}%
+%    \end{macrocode}
+%  This is where the shape of uppercase/lowercase Greek letters is recorded,
+%  for \cs{MTversion}'s triggered \cs{MTcustomgreek} to do the right thing.
+%  Also |1.3x| fixes some strange log messages which did not recall
+%  the math version name and referred to `non subdued versions' (strange).
+%    \begin{macrocode}
+    \expandafter\let\csname ifmst at lgr@\mst at version @upper at up\expandafter\endcsname
+                    \csname ifmst at lgr@upper at up\endcsname
+    \expandafter\let\csname ifmst at lgr@\mst at version @lower at up\expandafter\endcsname
+                    \csname ifmst at lgr@lower at up\endcsname
+    \typeout{** Greek letters (upper:
+      `\ifmst at lgr@upper at up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
+                               lower:
+      `\ifmst at lgr@lower at up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
+                will use
+                font family `#4\string' (LGR)^^J**
+                in mathastext math version `\mst at version\string'.}%
   \else
    \ifmst at selfGreeks
       \SetSymbolFont{mtselfGreekfont}{#2}{OT1}{#4}{#5}{\mst at greek@ush at loc}%
-     \typeout{** Capital Greek letters (\mst at greek@lsh at loc/\mst at greek@ush at loc)
-                 will use OT1 font #4\ifmst at subdued ^^J** (in non subdued versions)\fi}%
+     \typeout{** Capital Greek letters (shape `\mst at greek@ush at loc\string')
+                 will use font family `#4\string' (OT1)^^J**
+                 in mathastext math version `\mst at version\string'.}%
    \else
     \ifmst at LGRgreek 
-      \SetSymbolFont{mtlgrfontlower}{#2}{LGR}{\mst at greekfont}{#5}{\mst at greek@lsh at loc}%
-      \SetSymbolFont{mtlgrfontupper}{#2}{LGR}{\mst at greekfont}{#5}{\mst at greek@ush at loc}%
-    \typeout{** Greek letters (\mst at greek@lsh at loc/\mst at greek@ush at loc) will use
-                LGR font \mst at greekfont\ifmst at subdued ^^J** (in non subdued versions)\fi}%
+      \SetSymbolFont{mtgreekup}{#2}{LGR}{\mst at greekfont}{#5}{\MTgreekupdefault}%
+      \SetSymbolFont{mtgreekit}{#2}{LGR}{\mst at greekfont}{#5}{\MTgreekitdefault}%
+%    \end{macrocode}
+%  This is where the shape of uppercase/lowercase Greek letters is recorded,
+%  for \cs{MTversion}'s triggered \cs{MTcustomgreek} to do the right thing.
+%    \begin{macrocode}
+      \expandafter\let\csname ifmst at lgr@\mst at version @upper at up\expandafter\endcsname
+                      \csname ifmst at lgr@upper at up\endcsname
+      \expandafter\let\csname ifmst at lgr@\mst at version @lower at up\expandafter\endcsname
+                      \csname ifmst at lgr@lower at up\endcsname
+      \typeout{** Greek letters (upper:
+      `\ifmst at lgr@upper at up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
+                                 lower:
+      `\ifmst at lgr@lower at up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
+               will use font family `\mst at greekfont\string' (LGR)^^J**
+               in mathastext math version `\mst at version\string'.}%
     \else
      \ifmst at selfGreek
        \SetSymbolFont{mtselfGreekfont}{#2}{OT1}{\mst at greekfont}{#5}{\mst at greek@ush at loc}%
-       \typeout{** Capital Greek letters (\mst at greek@lsh at loc/\mst at greek@ush at loc)
-                   will use OT1 font \mst at greekfont\ifmst at subdued ^^J** (in non subdued versions)\fi}%
+       \typeout{** Capital Greek letters 
+                   (shape `\mst at greek@ush at loc\string')
+                   will use font family `\mst at greekfont\string' (OT1)^^J**
+                   in mathastext math version `\mst at version\string'.}%
      \fi
     \fi
    \fi
@@ -7837,8 +8835,11 @@
 %   versions has been to all cases, and not only for the
 %   |LGRgreek| option.
 %
-%   |1.3u|: version savvy (i.e. font-encoding savvy) minus sign,
+%   |1.3u|: version savvy (i.e.\@ font-encoding savvy) minus sign,
 %   \cs{hbar}, \cs{imath}, math accents.
+%
+%   |1.3x|: Booleans recovered from stored data in the math version will
+%   configure the things \cs{MTcustomgreek} do, under |LGRgreek| option.
 %    \begin{macrocode}
 \newcommand*\MTversion {\@ifstar\MTversion at s\MTversion@ }
 \newcommand*\MTversion at s [1]{\mathversion{#1}\MTversion@@ }
@@ -7964,6 +8965,13 @@
           \mst at subduedminus
         \else
           \mst at setalphabets
+%    \end{macrocode}
+% |1.3x| addition for \cs{MTcustomgreek} under |LGRgreeks| option.
+%    \begin{macrocode}
+    \expandafter\let\csname ifmst at lgr@upper at up\expandafter\endcsname
+                    \csname ifmst at lgr@\math at version @upper at up\endcsname
+    \expandafter\let\csname ifmst at lgr@lower at up\expandafter\endcsname
+                    \csname ifmst at lgr@\math at version @lower at up\endcsname
           \MTcustomgreek
           \mst at nonsubduedhbar
           \mst at nonsubduedinodot
@@ -7972,6 +8980,13 @@
         \fi
       \fi
     \else
+%    \end{macrocode}
+% |1.3x| addition for \cs{MTcustomgreek} under |LGRgreek| option.
+%    \begin{macrocode}
+    \expandafter\let\csname ifmst at lgr@upper at up\expandafter\endcsname
+                    \csname ifmst at lgr@\math at version @upper at up\endcsname
+    \expandafter\let\csname ifmst at lgr@lower at up\expandafter\endcsname
+                    \csname ifmst at lgr@\math at version @lower at up\endcsname
       \MTcustomgreek % new with 1.3d
       \mst at nonsubduedhbar
       \mst at nonsubduedinodot
@@ -8039,6 +9054,8 @@
 % loading (things regarding the \cs{hbar}, \cs{imath}, the math accents and
 % the minus sign). They are now part of the contents of \cs{Mathastext} macro
 % itself (which is executed during package loading).
+%
+% |1.3x| has refactored the |LGRgreek| associated math fonts.
 %    \begin{macrocode}
 \def\Mathastext {\@ifnextchar [\Mathastext at declare\Mathastext@ }
 \def\Mathastext at declare [#1]{%
@@ -8206,17 +9223,19 @@
 % \begin{macro}{LGRgreek*}
 % \begin{macro}{selfGreek*}
 % LGRgreek, LGRgreeks, selfGreek, and selfGreeks options.
+%
+% |1.3x| has refactored the |LGRgreek| associated math fonts.
 %    \begin{macrocode}
   \ifmst at subdued\else 
    \ifmst at LGRgreek
-    \SetSymbolFont{mtlgrfontlower}{normal}{LGR}%
-            {\mst at greekfont}{\mst at series@normal}{\mst at greek@lsh}%
-    \SetSymbolFont{mtlgrfontlower}{bold}{LGR}%
-            {\mst at greekfont}{\mst at boldvariant@normal}{\mst at greek@lsh}%
-    \SetSymbolFont{mtlgrfontupper}{normal}{LGR}%
-            {\mst at greekfont}{\mst at series@normal}{\mst at greek@ush}%
-    \SetSymbolFont{mtlgrfontupper}{bold}{LGR}%
-            {\mst at greekfont}{\mst at boldvariant@bold}{\mst at greek@ush}%
+    \SetSymbolFont{mtgreekup}{normal}{LGR}%
+            {\mst at greekfont}{\mst at series@normal}{\MTgreekupdefault}%
+    \SetSymbolFont{mtgreekup}{bold}{LGR}%
+            {\mst at greekfont}{\mst at boldvariant@normal}{\MTgreekupdefault}%
+    \SetSymbolFont{mtgreekit}{normal}{LGR}%
+            {\mst at greekfont}{\mst at series@normal}{\MTgreekitdefault}%
+    \SetSymbolFont{mtgreekit}{bold}{LGR}%
+            {\mst at greekfont}{\mst at boldvariant@bold}{\MTgreekitdefault}%
    \else
     \ifmst at selfGreek
      \SetSymbolFont{mtselfGreekfont}{normal}{OT1}%
@@ -8231,14 +9250,17 @@
 % \end{macro}
 %    \begin{macrocode}
   \ifmst at subdued
-   \typeout{** subdued mode will be activated for the normal and bold math versions}%
+   \typeout{** subdued mode will be activated for the `normal\string' and `bold\string' math versions}%
   \else 
-   \typeout{** Latin letters in the normal (resp. bold) math versions are now^^J%
+   \typeout{** Latin letters in the `normal\string' (resp. `bold\string') math versions are now^^J%
             ** set up to use the fonts 
    \mst at encoding@normal/\mst at family@normal/\mst at series@normal%
                (\mst at boldvariant@normal)/\mst at ltshape@normal}%
-   \ifmst at LGRgreek\typeout{** Greek letters (\mst at greek@lsh/\mst at greek@ush) 
-                              will use LGR/\mst at greekfont}%
+   \ifmst at LGRgreek\typeout{** Greek letters (upper:
+      `\ifmst at lgr@upper at up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
+                                             lower:
+      `\ifmst at lgr@lower at up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
+      will use font family `\mst at greekfont\string' (LGR)}%
    \fi
    \ifmst at nodigits\else
      \typeout{** Other characters (digits, ...) and \protect\log-like names will be^^J%
@@ -8290,13 +9312,13 @@
 \ifmst at eulergreek
       \typeout{** Greek letters will use the Euler font. Use \protect\MathastextEulerScale{<factor>} to scale the
                font.}%
-      \ifmst at subdued{\typeout{** (subdued mode: normal and bold math
+      \ifmst at subdued{\typeout{** (subdued mode: `normal\string' and `bold\string' math
           version with default Greek letters.)}}\fi
 \else
 \ifmst at symbolgreek
        \typeout{** Greek letters will use the PostScript Symbol font. Use^^J%
                 ** \protect\MathastextSymbolScale{<factor>} to scale the font.}%
-      \ifmst at subdued{\typeout{** (subdued mode: normal and bold math
+      \ifmst at subdued{\typeout{** (subdued mode: `normal\string' and `bold\string' math
           version with default Greek letters.)}}\fi
 \fi\fi
 %    \end{macrocode}
@@ -8654,6 +9676,8 @@
 \do\MathastextitGreek
 \do\MTgreekfont
 \do\Mathastextgreekfont
+\do\MTgreekupdefault
+\do\MTgreekitdefault
 \do\MTDeclareVersion
 \do\MathastextDeclareVersion
 \do\MTWillUse
@@ -8669,24 +9693,6 @@
 % \MakePercentComment
 %</package>
 %<*dtx>
-\CharacterTable
- {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-  Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-  Digits        \0\1\2\3\4\5\6\7\8\9
-  Exclamation   \!     Double quote  \"     Hash (number) \#
-  Dollar        \$     Percent       \%     Ampersand     \&
-  Acute accent  \'     Left paren    \(     Right paren   \)
-  Asterisk      \*     Plus          \+     Comma         \,
-  Minus         \-     Point         \.     Solidus       \/
-  Colon         \:     Semicolon     \;     Less than     \<
-  Equals        \=     Greater than  \>     Question mark \?
-  Commercial at \@     Left bracket  \[     Backslash     \\
-  Right bracket \]     Circumflex    \^     Underscore    \_
-  Grave accent  \`     Left brace    \{     Vertical bar  \|
-  Right brace   \}     Tilde         \~}
-
-\CheckSum{6187}
-\makeatletter\check at checksum\makeatother
 \Finale
 %%
 %% End of file `mathastext.dtx'.

Modified: trunk/Master/texmf-dist/tex/latex/mathastext/mathastext.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mathastext/mathastext.sty	2022-11-04 19:57:37 UTC (rev 64929)
+++ trunk/Master/texmf-dist/tex/latex/mathastext/mathastext.sty	2022-11-04 19:58:07 UTC (rev 64930)
@@ -23,9 +23,9 @@
 %%----------------------------------------------------------------
 %% Package: mathastext
 %% Info:    Use the text font in math mode (JFB)
-%% Version: 1.3w 2019/11/16
+%% Version: 1.3y 2022/11/04
 %% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt)
-%% Copyright (C) 2011-2019 Jean-Francois Burnol <jfbu at free dot fr>
+%% Copyright (C) 2011-2019, 2022 Jean-Francois Burnol <jfbu at free dot fr>
 %% Examples of use of mathastext:
 %%        http://jf.burnol.free.fr/mathastext.html
 %%        http://jf.burnol.free.fr/showcase.html
@@ -32,7 +32,7 @@
 %%----------------------------------------------------------------
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage {mathastext}
-  [2019/11/16 v1.3w Use the text font in math mode (JFB)]
+  [2022/11/04 v1.3y Use the text font in math mode (JFB)]
 \newif\ifmst at robust@obsessed at LaTeX@era
 \@ifl at t@r\fmtversion{2019/10/01}{\mst at robust@obsessed at LaTeX@eratrue}{}
 \edef\mst at robustifyingspace{\ifmst at robust@obsessed at LaTeX@era\space\fi}
@@ -87,10 +87,16 @@
   \edef\mst at greekfont{\familydefault} %% v 1.15c
 \newif\ifmst at italic
 \newif\ifmst at frenchmath
+\newif\ifmst at ncccomma
+\newif\ifmst at binarysemicolon
     \DeclareOption{italic}{\mst at italictrue
         \def\mst at ltsh{\itdefault}}
     \DeclareOption{frenchmath}{\mst at frenchmathtrue\mst at italictrue
       \def\mst at ltsh{\itdefault}}
+    \DeclareOption{ncccomma}{\mst at ncccommatrue}
+    \DeclareOption{binarysemicolon}{\mst at binarysemicolontrue}
+    \DeclareOption{frenchmath*}{\mst at frenchmathtrue\mst at italictrue
+      \def\mst at ltsh{\itdefault}\mst at ncccommatrue\mst at binarysemicolontrue}
 \newif\ifmst at endash\mst at endashtrue
     \DeclareOption{endash}{\mst at endashtrue}
     \DeclareOption{noendash}{\mst at endashfalse}
@@ -574,29 +580,56 @@
     \ifmst at defaultsf\else\protected\def\mathsf{\Mathsf}\fi
     \ifmst at defaulttt\else\protected\def\mathtt{\Mathtt}\fi}
 \ifmst at subdued\else\mst at setalphabets\fi
+\providecommand*\MTgreekupdefault{n}
+\providecommand*\MTgreekitdefault{it}
+\newif\ifmst at lgr@lower at up
+\newif\ifmst at lgr@upper at up
 \def\mst at update@greeksh{
-  \def\mst at greek@lsh{\mst at ltsh} %% default behavior
-  \def\mst at greek@ush{\mst at opsh}
-    \ifmst at itgreek\def\mst at greek@lsh{\itdefault}
-                     \def\mst at greek@ush{\itdefault}\fi
-    \ifmst at upgreek\def\mst at greek@lsh{\updefault}
-                     \def\mst at greek@ush{\updefault}\fi
+    \def\mst at lgr@lsh{\mst at ltsh}
+    \def\mst at lgr@ush{\mst at opsh}
+      \mst at lgr@lower at uptrue
+      \expandafter\in@\expanded{{\mst at ltsh.}}{it.,sl.}%
+      \ifin@\mst at lgr@lower at upfalse\fi
+      \mst at lgr@upper at uptrue
+      \expandafter\in@\expanded{{\mst at opsh.}}{it.,sl.}%
+      \ifin@\mst at lgr@upper at upfalse\fi
+    \ifmst at itgreek
+      \def\mst at lgr@lsh{\MTgreekitdefault}
+      \def\mst at lgr@ush{\MTgreekitdefault}
+        \mst at lgr@lower at upfalse
+        \mst at lgr@upper at upfalse
+    \fi
+    \ifmst at upgreek
+      \def\mst at lgr@lsh{\MTgreekupdefault}
+      \def\mst at lgr@ush{\MTgreekupdefault}
+        \mst at lgr@lower at uptrue
+        \mst at lgr@upper at uptrue
+    \fi
     \ifmst at frenchmath
       \ifmst at itgreek\else
       \ifmst at upgreek\else
-        \def\mst at greek@lsh{\mst at opsh}
-        \def\mst at greek@ush{\mst at opsh}
+        \def\mst at lgr@lsh{\mst at opsh}
+        \def\mst at lgr@ush{\mst at opsh}
+          \mst at lgr@lower at uptrue
+          \mst at lgr@upper at uptrue
       \fi\fi
     \fi
     \ifcase\mst at greek@select
-        \or\def\mst at greek@ush{\itdefault}
-        \or\def\mst at greek@ush{\updefault}
-    \fi}
+        \or
+          \def\mst at lgr@ush{\MTgreekitdefault}
+            \mst at lgr@upper at upfalse
+       \or
+          \def\mst at lgr@ush{\MTgreekupdefault}
+            \mst at lgr@upper at uptrue
+    \fi
+}
 \mst at update@greeksh
 \ifmst at LGRgreek
     \DeclareFontEncoding{LGR}{}{}
-    \DeclareSymbolFont{mtlgrfontlower}{LGR}{\mst at fam}{\mst at ser}{\mst at greek@lsh}
-    \DeclareSymbolFont{mtlgrfontupper}{LGR}{\mst at fam}{\mst at ser}{\mst at greek@ush}
+    \DeclareSymbolFont{mtgreekup}{LGR}{\mst at fam}{\mst at ser}{\MTgreekupdefault}
+    \DeclareSymbolFont{mtgreekit}{LGR}{\mst at fam}{\mst at ser}{\MTgreekitdefault}
+    \DeclareSymbolFontAlphabet{\mathgreekup}{mtgreekup}
+    \DeclareSymbolFontAlphabet{\mathgreekit}{mtgreekit}
 \else
 \ifmst at selfGreek
     \DeclareSymbolFont{mtselfGreekfont}{OT1}{\mst at fam}{\mst at ser}{\mst at greek@ush}
@@ -631,8 +664,7 @@
 \newcommand*\MTencoding[1]{\def\mst at enc{#1}}
 \newcommand*\MTfamily[1]{\def\mst at fam{#1}}
 \newcommand*\MTseries[1]{\def\mst at ser{#1}}
-\newcommand*\MTshape[1]{\def\mst at opsh{#1}
-  \ifmst at italic\else\def\mst at ltsh{#1}\fi}
+\newcommand*\MTshape[1]{\def\mst at opsh{#1}\ifmst at italic\else\def\mst at ltsh{#1}\fi}
 \newcommand*\MTboldvariant[1]{\def\mst at bold{#1}}
 \newcommand*\MTlettershape[1]{\def\mst at ltsh{#1}}
 \let\Mathastextencoding\MTencoding
@@ -641,12 +673,10 @@
 \let\Mathastextshape\MTshape
 \let\Mathastextboldvariant\MTboldvariant
 \let\Mathastextlettershape\MTlettershape
-    \newcommand*\MTitgreek{%
-\mst at itgreektrue\mst at upgreekfalse\def\mst at greek@select{0}}
-    \newcommand*\MTupgreek{%
-\mst at upgreektrue\mst at itgreekfalse\def\mst at greek@select{0}}
-    \newcommand*\MTitGreek{\def\mst at greek@select{1}}
-    \newcommand*\MTupGreek{\def\mst at greek@select{2}}
+\newcommand*\MTitgreek{\mst at itgreektrue\mst at upgreekfalse\def\mst at greek@select{0}}
+\newcommand*\MTupgreek{\mst at upgreektrue\mst at itgreekfalse\def\mst at greek@select{0}}
+\newcommand*\MTitGreek{\def\mst at greek@select{1}}
+\newcommand*\MTupGreek{\def\mst at greek@select{2}}
 \let\Mathastextitgreek\MTitgreek
 \let\Mathastextupgreek\MTupgreek
 \let\MathastextitGreek\MTitGreek
@@ -750,31 +780,58 @@
     {\expandafter\the\expandafter\mst at do@easynonletters
      \expandafter\def\csname mst at ast \endcsname{\mst at varfam@ast}}
 \fi
-\ifmst at nopunct\else\typeout{** punctuation\string: \string, \string. \string: \string; and \string\colon}
-\DeclareMathSymbol{,}{\mathpunct}{\mst at font@tbu}{"2C}
-\DeclareMathSymbol{\mst at varfam@comma}{\mathalpha}{\mst at font@tbu}{"2C}
-\expandafter\mst at addtodo@nonletters\string,\mathpunct\mst at varfam@comma
-\DeclareMathSymbol{.}{\mathord}{\mst at font@tbu}{"2E}
-\DeclareMathSymbol{\mst at varfam@dot}{\mathalpha}{\mst at font@tbu}{"2E}
-\mst at addtodo@easynonletters\.\mst at varfam@dot
-\DeclareMathSymbol{:}{\mathrel}{\mst at font@tbu}{"3A} % relation spacing
-\DeclareMathSymbol{\mst at varfam@colon}{\mathalpha}{\mst at font@tbu}{"3A}
-\expandafter\mst at addtodo@nonletters\string:\mathrel\mst at varfam@colon
-\@ifpackageloaded{amsmath}
-{} % \colon defined in amsmath.sty in terms of : with some enlarged explicit
-   % spacing. No need to intervene.
-{% no amsmath, use standard punctuation spacing
-\let\colon\undefined
-  % the reason is if some package has redefined \colon which then
-  % can not be used in \cs{DeclareMathSymbol} anymore (we
-  % shamelessly overwrite...)
+\ifmst at nopunct\else\typeout{** punctuation\string: \string, \string. \string:
+    \string; and \string\colon}
+  \DeclareMathSymbol{,}{\mathpunct}{\mst at font@tbu}{"2C}
+  \DeclareMathSymbol{\mst at varfam@comma}{\mathalpha}{\mst at font@tbu}{"2C}
+  \ifmst at ncccomma
+    \typeout{** loading package ncccomma for `smart comma\string'}
+    \RequirePackage{ncccomma}%
+    \AtBeginDocument{\mathcode`\,="8000\relax
+    \@ifpackageloaded{babel}{%
+                 \addto\noextrasfrench{\mathcode`\,="8000\relax}%
+                 \addto\extrasfrench{\mathcode`\,="8000\relax}%
+                 }{}}
+    \let\mathcomma\relax
+    \DeclareMathSymbol{\mathcomma}{\mathpunct}{\mst at font@tbu}{"2C}
+    \edef\mst at NCC@comma{\let\noexpand\@empty\mathpunct
+                        \unexpanded\expandafter{\NCC at comma}%
+                        \let\noexpand\@empty\noexpand\empty}
+    \mst at do@nonletters\expandafter{\the\mst at do@nonletters
+      \let\mathcomma\mst at varfam@comma
+      \let\NCC at comma\mst at NCC@comma
+      }
+  \else
+    \expandafter\mst at addtodo@nonletters\string,\mathpunct\mst at varfam@comma
+  \fi % ncccomma true
+  \DeclareMathSymbol{.}{\mathord}{\mst at font@tbu}{"2E}
+  \DeclareMathSymbol{\mst at varfam@dot}{\mathalpha}{\mst at font@tbu}{"2E}
+  \mst at addtodo@easynonletters\.\mst at varfam@dot
+  \DeclareMathSymbol{:}{\mathrel}{\mst at font@tbu}{"3A} % relation spacing
+  \DeclareMathSymbol{\mst at varfam@colon}{\mathalpha}{\mst at font@tbu}{"3A}
+  \expandafter\mst at addtodo@nonletters\string:\mathrel\mst at varfam@colon
+  \@ifpackageloaded{amsmath}
+  {} % \colon defined in amsmath.sty in terms of : with some enlarged explicit
+     % spacing. No need to intervene.
+  {% no amsmath, use standard punctuation spacing
+    \let\colon\undefined
+    % the reason is if some package has redefined \colon which then
+    % can not be used in \cs{DeclareMathSymbol} anymore (we
+    % shamelessly overwrite...)
     \DeclareMathSymbol{\colon}{\mathpunct}{\mst at font@tbu}{"3A}
     \mst at do@nonletters\expandafter{\the\mst at do@nonletters
-        \protected\def\colon{\mathpunct{\mst at varfam@colon}}}}
-\DeclareMathSymbol{;}{\mathpunct}{\mst at font@tbu}{"3B}
-\DeclareMathSymbol{\mst at varfam@pointvirgule}{\mathalpha}{\mst at font@tbu}{"3B}
-\expandafter\mst at addtodo@nonletters\string;\mathpunct\mst at varfam@pointvirgule
-\fi
+        \protected\def\colon{\mathpunct{\mst at varfam@colon}}}%
+  }
+  \DeclareMathSymbol{\mst at varfam@pointvirgule}{\mathalpha}{\mst at font@tbu}{"3B}
+  \ifmst at binarysemicolon
+    \typeout{** semi-colon set to be of type \string\mathbin}
+    \DeclareMathSymbol{;}{\mathbin}{\mst at font@tbu}{"3B}
+    \expandafter\mst at addtodo@nonletters\string;\mathbin\mst at varfam@pointvirgule
+  \else
+    \DeclareMathSymbol{;}{\mathpunct}{\mst at font@tbu}{"3B}
+    \expandafter\mst at addtodo@nonletters\string;\mathpunct\mst at varfam@pointvirgule
+  \fi % binarysemicolno
+\fi % end \ifmst at nopunct else branch
 \ifmst at nominus
 \else
   \ifmst at XeOrLua
@@ -1246,57 +1303,171 @@
  \fi
 \fi
 \ifmst at LGRgreek
-\DeclareMathSymbol{\mst at Alpha}{\mathalpha}{mtlgrfontupper}{65}
-\DeclareMathSymbol{\mst at Beta}{\mathalpha}{mtlgrfontupper}{66}
-\DeclareMathSymbol{\mst at Epsilon}{\mathalpha}{mtlgrfontupper}{69}
-\DeclareMathSymbol{\mst at Zeta}{\mathalpha}{mtlgrfontupper}{90}
-\DeclareMathSymbol{\mst at Eta}{\mathalpha}{mtlgrfontupper}{72}
-\DeclareMathSymbol{\mst at Iota}{\mathalpha}{mtlgrfontupper}{73}
-\DeclareMathSymbol{\mst at Kappa}{\mathalpha}{mtlgrfontupper}{75}
-\DeclareMathSymbol{\mst at Mu}{\mathalpha}{mtlgrfontupper}{77}
-\DeclareMathSymbol{\mst at Nu}{\mathalpha}{mtlgrfontupper}{78}
-\DeclareMathSymbol{\mst at Omicron}{\mathalpha}{mtlgrfontupper}{79}
-\DeclareMathSymbol{\mst at Rho}{\mathalpha}{mtlgrfontupper}{82}
-\DeclareMathSymbol{\mst at Tau}{\mathalpha}{mtlgrfontupper}{84}
-\DeclareMathSymbol{\mst at Chi}{\mathalpha}{mtlgrfontupper}{81}
-\DeclareMathSymbol{\mst at Digamma}{\mathalpha}{mtlgrfontlower}{195}
-\DeclareMathSymbol{\mst at Gamma}{\mathalpha}{mtlgrfontupper}{71}
-\DeclareMathSymbol{\mst at Delta}{\mathalpha}{mtlgrfontupper}{68}
-\DeclareMathSymbol{\mst at Theta}{\mathalpha}{mtlgrfontupper}{74}
-\DeclareMathSymbol{\mst at Lambda}{\mathalpha}{mtlgrfontupper}{76}
-\DeclareMathSymbol{\mst at Xi}{\mathalpha}{mtlgrfontupper}{88}
-\DeclareMathSymbol{\mst at Pi}{\mathalpha}{mtlgrfontupper}{80}
-\DeclareMathSymbol{\mst at Sigma}{\mathalpha}{mtlgrfontupper}{83}
-\DeclareMathSymbol{\mst at Upsilon}{\mathalpha}{mtlgrfontupper}{85}
-\DeclareMathSymbol{\mst at Phi}{\mathalpha}{mtlgrfontupper}{70}
-\DeclareMathSymbol{\mst at Psi}{\mathalpha}{mtlgrfontupper}{89}
-\DeclareMathSymbol{\mst at Omega}{\mathalpha}{mtlgrfontupper}{87}
-\DeclareMathSymbol{\mst at alpha}{\mathalpha}{mtlgrfontlower}{97}
-\DeclareMathSymbol{\mst at beta}{\mathalpha}{mtlgrfontlower}{98}
-\DeclareMathSymbol{\mst at gamma}{\mathalpha}{mtlgrfontlower}{103}
-\DeclareMathSymbol{\mst at delta}{\mathalpha}{mtlgrfontlower}{100}
-\DeclareMathSymbol{\mst at epsilon}{\mathalpha}{mtlgrfontlower}{101}
-\DeclareMathSymbol{\mst at zeta}{\mathalpha}{mtlgrfontlower}{122}
-\DeclareMathSymbol{\mst at eta}{\mathalpha}{mtlgrfontlower}{104}
-\DeclareMathSymbol{\mst at theta}{\mathalpha}{mtlgrfontlower}{106}
-\DeclareMathSymbol{\mst at iota}{\mathalpha}{mtlgrfontlower}{105}
-\DeclareMathSymbol{\mst at kappa}{\mathalpha}{mtlgrfontlower}{107}
-\DeclareMathSymbol{\mst at lambda}{\mathalpha}{mtlgrfontlower}{108}
-\DeclareMathSymbol{\mst at mu}{\mathalpha}{mtlgrfontlower}{109}
-\DeclareMathSymbol{\mst at nu}{\mathalpha}{mtlgrfontlower}{110}
-\DeclareMathSymbol{\mst at xi}{\mathalpha}{mtlgrfontlower}{120}
-\DeclareMathSymbol{\mst at omicron}{\mathalpha}{mtlgrfontlower}{111}
-\DeclareMathSymbol{\mst at pi}{\mathalpha}{mtlgrfontlower}{112}
-\DeclareMathSymbol{\mst at rho}{\mathalpha}{mtlgrfontlower}{114}
-\DeclareMathSymbol{\mst at sigma}{\mathalpha}{mtlgrfontlower}{115}
-\DeclareMathSymbol{\mst at tau}{\mathalpha}{mtlgrfontlower}{116}
-\DeclareMathSymbol{\mst at upsilon}{\mathalpha}{mtlgrfontlower}{117}
-\DeclareMathSymbol{\mst at phi}{\mathalpha}{mtlgrfontlower}{102}
-\DeclareMathSymbol{\mst at chi}{\mathalpha}{mtlgrfontlower}{113}
-\DeclareMathSymbol{\mst at psi}{\mathalpha}{mtlgrfontlower}{121}
-\DeclareMathSymbol{\mst at omega}{\mathalpha}{mtlgrfontlower}{119}
-\DeclareMathSymbol{\mst at digamma}{\mathalpha}{mtlgrfontlower}{147}
-\DeclareMathSymbol{\mst at varsigma}{\mathalpha}{mtlgrfontlower}{99}
+  \DeclareMathSymbol{\Alphaup}{\mathalpha}{mtgreekup}{65}
+  \DeclareMathSymbol{\Betaup}{\mathalpha}{mtgreekup}{66}
+  \DeclareMathSymbol{\Epsilonup}{\mathalpha}{mtgreekup}{69}
+  \DeclareMathSymbol{\Zetaup}{\mathalpha}{mtgreekup}{90}
+  \DeclareMathSymbol{\Etaup}{\mathalpha}{mtgreekup}{72}
+  \DeclareMathSymbol{\Iotaup}{\mathalpha}{mtgreekup}{73}
+  \DeclareMathSymbol{\Kappaup}{\mathalpha}{mtgreekup}{75}
+  \DeclareMathSymbol{\Muup}{\mathalpha}{mtgreekup}{77}
+  \DeclareMathSymbol{\Nuup}{\mathalpha}{mtgreekup}{78}
+  \DeclareMathSymbol{\Omicronup}{\mathalpha}{mtgreekup}{79}
+  \DeclareMathSymbol{\Rhoup}{\mathalpha}{mtgreekup}{82}
+  \DeclareMathSymbol{\Tauup}{\mathalpha}{mtgreekup}{84}
+  \DeclareMathSymbol{\Chiup}{\mathalpha}{mtgreekup}{81}
+  %
+  \DeclareMathSymbol{\Alphait}{\mathalpha}{mtgreekit}{65}
+  \DeclareMathSymbol{\Betait}{\mathalpha}{mtgreekit}{66}
+  \DeclareMathSymbol{\Epsilonit}{\mathalpha}{mtgreekit}{69}
+  \DeclareMathSymbol{\Zetait}{\mathalpha}{mtgreekit}{90}
+  \DeclareMathSymbol{\Etait}{\mathalpha}{mtgreekit}{72}
+  \DeclareMathSymbol{\Iotait}{\mathalpha}{mtgreekit}{73}
+  \DeclareMathSymbol{\Kappait}{\mathalpha}{mtgreekit}{75}
+  \DeclareMathSymbol{\Muit}{\mathalpha}{mtgreekit}{77}
+  \DeclareMathSymbol{\Nuit}{\mathalpha}{mtgreekit}{78}
+  \DeclareMathSymbol{\Omicronit}{\mathalpha}{mtgreekit}{79}
+  \DeclareMathSymbol{\Rhoit}{\mathalpha}{mtgreekit}{82}
+  \DeclareMathSymbol{\Tauit}{\mathalpha}{mtgreekit}{84}
+  \DeclareMathSymbol{\Chiit}{\mathalpha}{mtgreekit}{81}
+  \DeclareMathSymbol{\Digammaup}{\mathalpha}{mtgreekup}{195}
+  \DeclareMathSymbol{\Digammait}{\mathalpha}{mtgreekit}{195}
+  %
+  \DeclareMathSymbol{\Gammaup}{\mathalpha}{mtgreekup}{71}
+  \DeclareMathSymbol{\Deltaup}{\mathalpha}{mtgreekup}{68}
+  \DeclareMathSymbol{\Thetaup}{\mathalpha}{mtgreekup}{74}
+  \DeclareMathSymbol{\Lambdaup}{\mathalpha}{mtgreekup}{76}
+  \DeclareMathSymbol{\Xiup}{\mathalpha}{mtgreekup}{88}
+  \DeclareMathSymbol{\Piup}{\mathalpha}{mtgreekup}{80}
+  \DeclareMathSymbol{\Sigmaup}{\mathalpha}{mtgreekup}{83}
+  \DeclareMathSymbol{\Upsilonup}{\mathalpha}{mtgreekup}{85}
+  \DeclareMathSymbol{\Phiup}{\mathalpha}{mtgreekup}{70}
+  \DeclareMathSymbol{\Psiup}{\mathalpha}{mtgreekup}{89}
+  \DeclareMathSymbol{\Omegaup}{\mathalpha}{mtgreekup}{87}
+  %
+  \DeclareMathSymbol{\Gammait}{\mathalpha}{mtgreekit}{71}
+  \DeclareMathSymbol{\Deltait}{\mathalpha}{mtgreekit}{68}
+  \DeclareMathSymbol{\Thetait}{\mathalpha}{mtgreekit}{74}
+  \DeclareMathSymbol{\Lambdait}{\mathalpha}{mtgreekit}{76}
+  \DeclareMathSymbol{\Xiit}{\mathalpha}{mtgreekit}{88}
+  \DeclareMathSymbol{\Piit}{\mathalpha}{mtgreekit}{80}
+  \DeclareMathSymbol{\Sigmait}{\mathalpha}{mtgreekit}{83}
+  \DeclareMathSymbol{\Upsilonit}{\mathalpha}{mtgreekit}{85}
+  \DeclareMathSymbol{\Phiit}{\mathalpha}{mtgreekit}{70}
+  \DeclareMathSymbol{\Psiit}{\mathalpha}{mtgreekit}{89}
+  \DeclareMathSymbol{\Omegait}{\mathalpha}{mtgreekit}{87}
+  %
+  \def\mst at Alpha{\ifmst at lgr@upper at up\Alphaup\else\Alphait\fi}%
+  \def\mst at Beta{\ifmst at lgr@upper at up\Betaup\else\Betait\fi}%
+  \def\mst at Epsilon{\ifmst at lgr@upper at up\Epsilonup\else\Epsilonit\fi}%
+  \def\mst at Zeta{\ifmst at lgr@upper at up\Zetaup\else\Zetait\fi}%
+  \def\mst at Eta{\ifmst at lgr@upper at up\Etaup\else\Etait\fi}%
+  \def\mst at Iota{\ifmst at lgr@upper at up\Iotaup\else\Iotait\fi}%
+  \def\mst at Kappa{\ifmst at lgr@upper at up\Kappaup\else\Kappait\fi}%
+  \def\mst at Mu{\ifmst at lgr@upper at up\Muup\else\Muit\fi}%
+  \def\mst at Nu{\ifmst at lgr@upper at up\Nuup\else\Nuit\fi}%
+  \def\mst at Omicron{\ifmst at lgr@upper at up\Omicronup\else\Omicronit\fi}%
+  \def\mst at Rho{\ifmst at lgr@upper at up\Rhoup\else\Rhoit\fi}%
+  \def\mst at Tau{\ifmst at lgr@upper at up\Tauup\else\Tauit\fi}%
+  \def\mst at Chi{\ifmst at lgr@upper at up\Chiup\else\Chiit\fi}%
+  %
+  \def\mst at Digamma{\ifmst at lgr@upper at up\Digammaup\else\Digammait\fi}%
+  %
+  \def\mst at Gamma{\ifmst at lgr@upper at up\Gammaup\else\Gammait\fi}%
+  \def\mst at Delta{\ifmst at lgr@upper at up\Deltaup\else\Deltait\fi}%
+  \def\mst at Theta{\ifmst at lgr@upper at up\Thetaup\else\Thetait\fi}%
+  \def\mst at Lambda{\ifmst at lgr@upper at up\Lambdaup\else\Lambdait\fi}%
+  \def\mst at Xi{\ifmst at lgr@upper at up\Xiup\else\Xiit\fi}%
+  \def\mst at Pi{\ifmst at lgr@upper at up\Piup\else\Piit\fi}%
+  \def\mst at Sigma{\ifmst at lgr@upper at up\Sigmaup\else\Sigmait\fi}%
+  \def\mst at Upsilon{\ifmst at lgr@upper at up\Upsilonup\else\Upsilonit\fi}%
+  \def\mst at Phi{\ifmst at lgr@upper at up\Phiup\else\Phiit\fi}%
+  \def\mst at Psi{\ifmst at lgr@upper at up\Psiup\else\Psiit\fi}%
+  \def\mst at Omega{\ifmst at lgr@upper at up\Omegaup\else\Omegait\fi}%
+  %
+  \DeclareMathSymbol{\alphaup}{\mathalpha}{mtgreekup}{97}
+  \DeclareMathSymbol{\betaup}{\mathalpha}{mtgreekup}{98}
+  \DeclareMathSymbol{\gammaup}{\mathalpha}{mtgreekup}{103}
+  \DeclareMathSymbol{\deltaup}{\mathalpha}{mtgreekup}{100}
+  \DeclareMathSymbol{\epsilonup}{\mathalpha}{mtgreekup}{101}
+  \DeclareMathSymbol{\zetaup}{\mathalpha}{mtgreekup}{122}
+  \DeclareMathSymbol{\etaup}{\mathalpha}{mtgreekup}{104}
+  \DeclareMathSymbol{\thetaup}{\mathalpha}{mtgreekup}{106}
+  \DeclareMathSymbol{\iotaup}{\mathalpha}{mtgreekup}{105}
+  \DeclareMathSymbol{\kappaup}{\mathalpha}{mtgreekup}{107}
+  \DeclareMathSymbol{\lambdaup}{\mathalpha}{mtgreekup}{108}
+  \DeclareMathSymbol{\muup}{\mathalpha}{mtgreekup}{109}
+  \DeclareMathSymbol{\nuup}{\mathalpha}{mtgreekup}{110}
+  \DeclareMathSymbol{\xiup}{\mathalpha}{mtgreekup}{120}
+  \DeclareMathSymbol{\omicronup}{\mathalpha}{mtgreekup}{111}
+  \DeclareMathSymbol{\piup}{\mathalpha}{mtgreekup}{112}
+  \DeclareMathSymbol{\rhoup}{\mathalpha}{mtgreekup}{114}
+  \DeclareMathSymbol{\sigmaup}{\mathalpha}{mtgreekup}{115}
+  \DeclareMathSymbol{\tauup}{\mathalpha}{mtgreekup}{116}
+  \DeclareMathSymbol{\upsilonup}{\mathalpha}{mtgreekup}{117}
+  \DeclareMathSymbol{\phiup}{\mathalpha}{mtgreekup}{102}
+  \DeclareMathSymbol{\chiup}{\mathalpha}{mtgreekup}{113}
+  \DeclareMathSymbol{\psiup}{\mathalpha}{mtgreekup}{121}
+  \DeclareMathSymbol{\omegaup}{\mathalpha}{mtgreekup}{119}
+  %
+  \DeclareMathSymbol{\digammaup}{\mathalpha}{mtgreekup}{147}
+  \DeclareMathSymbol{\varsigmaup}{\mathalpha}{mtgreekup}{99}
+  %
+  \DeclareMathSymbol{\alphait}{\mathalpha}{mtgreekit}{97}
+  \DeclareMathSymbol{\betait}{\mathalpha}{mtgreekit}{98}
+  \DeclareMathSymbol{\gammait}{\mathalpha}{mtgreekit}{103}
+  \DeclareMathSymbol{\deltait}{\mathalpha}{mtgreekit}{100}
+  \DeclareMathSymbol{\epsilonit}{\mathalpha}{mtgreekit}{101}
+  \DeclareMathSymbol{\zetait}{\mathalpha}{mtgreekit}{122}
+  \DeclareMathSymbol{\etait}{\mathalpha}{mtgreekit}{104}
+  \DeclareMathSymbol{\thetait}{\mathalpha}{mtgreekit}{106}
+  \DeclareMathSymbol{\iotait}{\mathalpha}{mtgreekit}{105}
+  \DeclareMathSymbol{\kappait}{\mathalpha}{mtgreekit}{107}
+  \DeclareMathSymbol{\lambdait}{\mathalpha}{mtgreekit}{108}
+  \DeclareMathSymbol{\muit}{\mathalpha}{mtgreekit}{109}
+  \DeclareMathSymbol{\nuit}{\mathalpha}{mtgreekit}{110}
+  \DeclareMathSymbol{\xiit}{\mathalpha}{mtgreekit}{120}
+  \DeclareMathSymbol{\omicronit}{\mathalpha}{mtgreekit}{111}
+  \DeclareMathSymbol{\piit}{\mathalpha}{mtgreekit}{112}
+  \DeclareMathSymbol{\rhoit}{\mathalpha}{mtgreekit}{114}
+  \DeclareMathSymbol{\sigmait}{\mathalpha}{mtgreekit}{115}
+  \DeclareMathSymbol{\tauit}{\mathalpha}{mtgreekit}{116}
+  \DeclareMathSymbol{\upsilonit}{\mathalpha}{mtgreekit}{117}
+  \DeclareMathSymbol{\phiit}{\mathalpha}{mtgreekit}{102}
+  \DeclareMathSymbol{\chiit}{\mathalpha}{mtgreekit}{113}
+  \DeclareMathSymbol{\psiit}{\mathalpha}{mtgreekit}{121}
+  \DeclareMathSymbol{\omegait}{\mathalpha}{mtgreekit}{119}
+  %
+  \DeclareMathSymbol{\digammait}{\mathalpha}{mtgreekit}{147}
+  \DeclareMathSymbol{\varsigmait}{\mathalpha}{mtgreekit}{99}
+  %
+  \def\mst at alpha{\ifmst at lgr@lower at up\alphaup\else\alphait\fi}%
+  \def\mst at beta{\ifmst at lgr@lower at up\betaup\else\betait\fi}%
+  \def\mst at gamma{\ifmst at lgr@lower at up\gammaup\else\gammait\fi}%
+  \def\mst at delta{\ifmst at lgr@lower at up\deltaup\else\deltait\fi}%
+  \def\mst at epsilon{\ifmst at lgr@lower at up\epsilonup\else\epsilonit\fi}%
+  \def\mst at zeta{\ifmst at lgr@lower at up\zetaup\else\zetait\fi}%
+  \def\mst at eta{\ifmst at lgr@lower at up\etaup\else\etait\fi}%
+  \def\mst at theta{\ifmst at lgr@lower at up\thetaup\else\thetait\fi}%
+  \def\mst at iota{\ifmst at lgr@lower at up\iotaup\else\iotait\fi}%
+  \def\mst at kappa{\ifmst at lgr@lower at up\kappaup\else\kappait\fi}%
+  \def\mst at lambda{\ifmst at lgr@lower at up\lambdaup\else\lambdait\fi}%
+  \def\mst at mu{\ifmst at lgr@lower at up\muup\else\muit\fi}%
+  \def\mst at nu{\ifmst at lgr@lower at up\nuup\else\nuit\fi}%
+  \def\mst at xi{\ifmst at lgr@lower at up\xiup\else\xiit\fi}%
+  \def\mst at omicron{\ifmst at lgr@lower at up\omicronup\else\omicronit\fi}%
+  \def\mst at pi{\ifmst at lgr@lower at up\piup\else\piit\fi}%
+  \def\mst at rho{\ifmst at lgr@lower at up\rhoup\else\rhoit\fi}%
+  \def\mst at sigma{\ifmst at lgr@lower at up\sigmaup\else\sigmait\fi}%
+  \def\mst at tau{\ifmst at lgr@lower at up\tauup\else\tauit\fi}%
+  \def\mst at upsilon{\ifmst at lgr@lower at up\upsilonup\else\upsilonit\fi}%
+  \def\mst at phi{\ifmst at lgr@lower at up\phiup\else\phiit\fi}%
+  \def\mst at chi{\ifmst at lgr@lower at up\chiup\else\chiit\fi}%
+  \def\mst at psi{\ifmst at lgr@lower at up\psiup\else\psiit\fi}%
+  \def\mst at omega{\ifmst at lgr@lower at up\omegaup\else\omegait\fi}%
+    %
+  \def\mst at digamma{\ifmst at lgr@lower at up\digammaup\else\digammait\fi}%
+  \def\mst at varsigma{\ifmst at lgr@lower at up\varsigmaup\else\varsigmait\fi}%
 \fi
 \newcommand*{\MTstandardgreek}{}
 \newcommand*{\MTcustomgreek}{}
@@ -1425,58 +1596,68 @@
     \let\ell\mst at origell
 }% \MTstandardgreek
 \renewcommand*{\MTcustomgreek}{%
-    \let\Alpha\mst at Alpha
-    \let\Beta\mst at Beta
-    \let\Epsilon\mst at Epsilon
-    \let\Zeta\mst at Zeta
-    \let\Eta\mst at Eta
-    \let\Iota\mst at Iota
-    \let\Kappa\mst at Kappa
-    \let\Mu\mst at Mu
-    \let\Nu\mst at Nu
-    \let\Omicron\mst at Omicron
-    \let\Rho\mst at Rho
-    \let\Tau\mst at Tau
-    \let\Chi\mst at Chi
-    \ifmst at symbolgreek\else\let\Digamma\mst at Digamma\fi
-    \let\Gamma\mst at Gamma
-    \let\Delta\mst at Delta
-    \let\Theta\mst at Theta
-    \let\Lambda\mst at Lambda
-    \let\Xi\mst at Xi
-    \let\Pi\mst at Pi
-    \let\Sigma\mst at Sigma
-    \let\Upsilon\mst at Upsilon
-    \let\Phi\mst at Phi
-    \let\Psi\mst at Psi
-    \let\Omega\mst at Omega
+  \expanded{%
+    \let\noexpand\Alpha\mst at Alpha
+    \let\noexpand\Beta\mst at Beta
+    \let\noexpand\Epsilon\mst at Epsilon
+    \let\noexpand\Zeta\mst at Zeta
+    \let\noexpand\Eta\mst at Eta
+    \let\noexpand\Iota\mst at Iota
+    \let\noexpand\Kappa\mst at Kappa
+    \let\noexpand\Mu\mst at Mu
+    \let\noexpand\Nu\mst at Nu
+    \let\noexpand\Omicron\mst at Omicron
+    \let\noexpand\Rho\mst at Rho
+    \let\noexpand\Tau\mst at Tau
+    \let\noexpand\Chi\mst at Chi
+  }% end of first big \expanded
+    \ifmst at symbolgreek\else
+        \expanded{\let\noexpand\Digamma\mst at Digamma}%
+    \fi
+  \expanded{%
+    \let\noexpand\Gamma\mst at Gamma
+    \let\noexpand\Delta\mst at Delta
+    \let\noexpand\Theta\mst at Theta
+    \let\noexpand\Lambda\mst at Lambda
+    \let\noexpand\Xi\mst at Xi
+    \let\noexpand\Pi\mst at Pi
+    \let\noexpand\Sigma\mst at Sigma
+    \let\noexpand\Upsilon\mst at Upsilon
+    \let\noexpand\Phi\mst at Phi
+    \let\noexpand\Psi\mst at Psi
+    \let\noexpand\Omega\mst at Omega
+  }% end of second big \expanded
  \ifmst at selfGreek\else
-    \let\alpha\mst at alpha
-    \let\beta\mst at beta
-    \let\gamma\mst at gamma
-    \let\delta\mst at delta
-    \let\epsilon\mst at epsilon
-    \let\zeta\mst at zeta
-    \let\eta\mst at eta
-    \let\theta\mst at theta
-    \let\iota\mst at iota
-    \let\kappa\mst at kappa
-    \let\lambda\mst at lambda
-    \let\mu\mst at mu
-    \let\nu\mst at nu
-    \let\xi\mst at xi
-    \let\omicron\mst at omicron
-    \let\pi\mst at pi
-    \let\rho\mst at rho
-    \let\sigma\mst at sigma
-    \let\tau\mst at tau
-    \let\upsilon\mst at upsilon
-    \let\phi\mst at phi
-    \let\chi\mst at chi
-    \let\psi\mst at psi
-    \let\omega\mst at omega
-    \ifmst at LGRgreek\let\digamma\mst at digamma\fi
-    \let\varsigma\mst at varsigma
+  \expanded{%
+    \let\noexpand\alpha\mst at alpha
+    \let\noexpand\beta\mst at beta
+    \let\noexpand\gamma\mst at gamma
+    \let\noexpand\delta\mst at delta
+    \let\noexpand\epsilon\mst at epsilon
+    \let\noexpand\zeta\mst at zeta
+    \let\noexpand\eta\mst at eta
+    \let\noexpand\theta\mst at theta
+    \let\noexpand\iota\mst at iota
+    \let\noexpand\kappa\mst at kappa
+    \let\noexpand\lambda\mst at lambda
+    \let\noexpand\mu\mst at mu
+    \let\noexpand\nu\mst at nu
+    \let\noexpand\xi\mst at xi
+    \let\noexpand\omicron\mst at omicron
+    \let\noexpand\pi\mst at pi
+    \let\noexpand\rho\mst at rho
+    \let\noexpand\sigma\mst at sigma
+    \let\noexpand\tau\mst at tau
+    \let\noexpand\upsilon\mst at upsilon
+    \let\noexpand\phi\mst at phi
+    \let\noexpand\chi\mst at chi
+    \let\noexpand\psi\mst at psi
+    \let\noexpand\omega\mst at omega
+    \let\noexpand\varsigma\mst at varsigma
+  }% end of third big \expanded
+    \ifmst at LGRgreek
+        \expanded{\let\noexpand\digamma\mst at digamma}%
+    \fi
     \ifmst at LGRgreek\else
       \let\varepsilon\mst at varepsilon
       \let\vartheta\mst at vartheta
@@ -1489,7 +1670,7 @@
     \fi
  \fi
 }% \MTcustomgreek
-\fi
+\fi% end of \ifcustomgreek
 \let\Mathastextstandardgreek\MTstandardgreek
 \let\Mathastextcustomgreek\MTcustomgreek
 \ifmst at subdued\else\MTcustomgreek\fi
@@ -1729,7 +1910,7 @@
       \typeout{** Latin letters in math version `#2\string' will use the font
                   #3/#4/#5/\mst at ltsh^^J%
                ** Other characters (digits, ...) and \protect\log-like names
-                    will be in #6 shape.}%
+                    will be in `#6\string' shape.}%
       \expandafter\edef\csname mst at ltshape@\mst at version\endcsname{\mst at ltsh}%
     \else
       \SetSymbolFont{mtletterfont}{#2}{#3}{#4}{#5}{#6}%
@@ -1742,7 +1923,7 @@
     \typeout{** Latin letters in math version `#2\string' will use the font
                 #3/#4/#5/#1^^J%
              ** Other characters (digits, ...) and \protect\log-like
-                names will be in #6 shape.}%
+                names will be in `#6\string' shape.}%
       \expandafter\edef\csname mst at ltshape@\mst at version\endcsname{#1}%
   \fi
   \ifmst at nonormalbold\else
@@ -1759,11 +1940,23 @@
   \fi
   \def\mst at greek@lsh at loc{\csname mst at ltshape@\mst at version\endcsname}%
   \def\mst at greek@ush at loc{\csname mst at shape@\mst at version\endcsname}%
-  \ifmst at itgreek\def\mst at greek@lsh at loc{\itdefault}%
-                     \def\mst at greek@ush at loc{\itdefault}%
+  \mst at lgr@lower at uptrue
+      \expandafter\in@\expanded{{\mst at greek@lsh at loc.}}{it.,sl.}%
+      \ifin@\mst at lgr@lower at upfalse\fi
+  \mst at lgr@upper at uptrue
+      \expandafter\in@\expanded{{\mst at greek@ush at loc.}}{it.,sl.}%
+      \ifin@\mst at lgr@upper at upfalse\fi
+  \ifmst at itgreek
+    \def\mst at greek@lsh at loc{\MTgreekitdefault}%
+    \def\mst at greek@ush at loc{\MTgreekitdefault}%
+      \mst at lgr@lower at upfalse
+      \mst at lgr@upper at upfalse
   \fi
-  \ifmst at upgreek\def\mst at greek@lsh at loc{\updefault}%
-                     \def\mst at greek@ush at loc{\updefault}%
+  \ifmst at upgreek
+    \def\mst at greek@lsh at loc{\MTgreekupdefault}%
+    \def\mst at greek@ush at loc{\MTgreekupdefault}%
+      \mst at lgr@lower at uptrue
+      \mst at lgr@upper at uptrue
   \fi
   \ifmst at frenchmath
       \ifmst at itgreek\else
@@ -1770,33 +1963,59 @@
       \ifmst at upgreek\else
         \def\mst at greek@lsh at loc{\csname mst at shape@\mst at version\endcsname}%
         \def\mst at greek@ush at loc{\csname mst at shape@\mst at version\endcsname}%
+        \mst at lgr@lower at uptrue
+        \mst at lgr@upper at uptrue
       \fi\fi
   \fi
   \ifcase\mst at greek@select
-        \or\def\mst at greek@ush at loc{\itdefault}%
-        \or\def\mst at greek@ush at loc{\updefault}%
+        \or
+          \def\mst at greek@ush at loc{\MTgreekitdefault}%
+          \mst at lgr@upper at upfalse
+        \or
+          \def\mst at greek@ush at loc{\MTgreekupdefault}%
+          \mst at lgr@upper at uptrue
   \fi
   \ifmst at LGRgreeks
-      \SetSymbolFont{mtlgrfontlower}{#2}{LGR}{#4}{#5}{\mst at greek@lsh at loc}%
-      \SetSymbolFont{mtlgrfontupper}{#2}{LGR}{#4}{#5}{\mst at greek@ush at loc}%
-    \typeout{** Greek letters (\mst at greek@lsh at loc/\mst at greek@ush at loc) will use
-                LGR font #4\ifmst at subdued ^^J** (in non subdued versions)\fi}%
+    \SetSymbolFont{mtgreekup}{#2}{LGR}{#4}{#5}{\MTgreekupdefault}%
+    \SetSymbolFont{mtgreekit}{#2}{LGR}{#4}{#5}{\MTgreekitdefault}%
+    \expandafter\let\csname ifmst at lgr@\mst at version @upper at up\expandafter\endcsname
+                    \csname ifmst at lgr@upper at up\endcsname
+    \expandafter\let\csname ifmst at lgr@\mst at version @lower at up\expandafter\endcsname
+                    \csname ifmst at lgr@lower at up\endcsname
+    \typeout{** Greek letters (upper:
+      `\ifmst at lgr@upper at up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
+                               lower:
+      `\ifmst at lgr@lower at up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
+                will use
+                font family `#4\string' (LGR)^^J**
+                in mathastext math version `\mst at version\string'.}%
   \else
    \ifmst at selfGreeks
       \SetSymbolFont{mtselfGreekfont}{#2}{OT1}{#4}{#5}{\mst at greek@ush at loc}%
-     \typeout{** Capital Greek letters (\mst at greek@lsh at loc/\mst at greek@ush at loc)
-                 will use OT1 font #4\ifmst at subdued ^^J** (in non subdued versions)\fi}%
+     \typeout{** Capital Greek letters (shape `\mst at greek@ush at loc\string')
+                 will use font family `#4\string' (OT1)^^J**
+                 in mathastext math version `\mst at version\string'.}%
    \else
     \ifmst at LGRgreek
-      \SetSymbolFont{mtlgrfontlower}{#2}{LGR}{\mst at greekfont}{#5}{\mst at greek@lsh at loc}%
-      \SetSymbolFont{mtlgrfontupper}{#2}{LGR}{\mst at greekfont}{#5}{\mst at greek@ush at loc}%
-    \typeout{** Greek letters (\mst at greek@lsh at loc/\mst at greek@ush at loc) will use
-                LGR font \mst at greekfont\ifmst at subdued ^^J** (in non subdued versions)\fi}%
+      \SetSymbolFont{mtgreekup}{#2}{LGR}{\mst at greekfont}{#5}{\MTgreekupdefault}%
+      \SetSymbolFont{mtgreekit}{#2}{LGR}{\mst at greekfont}{#5}{\MTgreekitdefault}%
+      \expandafter\let\csname ifmst at lgr@\mst at version @upper at up\expandafter\endcsname
+                      \csname ifmst at lgr@upper at up\endcsname
+      \expandafter\let\csname ifmst at lgr@\mst at version @lower at up\expandafter\endcsname
+                      \csname ifmst at lgr@lower at up\endcsname
+      \typeout{** Greek letters (upper:
+      `\ifmst at lgr@upper at up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
+                                 lower:
+      `\ifmst at lgr@lower at up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
+               will use font family `\mst at greekfont\string' (LGR)^^J**
+               in mathastext math version `\mst at version\string'.}%
     \else
      \ifmst at selfGreek
        \SetSymbolFont{mtselfGreekfont}{#2}{OT1}{\mst at greekfont}{#5}{\mst at greek@ush at loc}%
-       \typeout{** Capital Greek letters (\mst at greek@lsh at loc/\mst at greek@ush at loc)
-                   will use OT1 font \mst at greekfont\ifmst at subdued ^^J** (in non subdued versions)\fi}%
+       \typeout{** Capital Greek letters
+                   (shape `\mst at greek@ush at loc\string')
+                   will use font family `\mst at greekfont\string' (OT1)^^J**
+                   in mathastext math version `\mst at version\string'.}%
      \fi
     \fi
    \fi
@@ -1890,6 +2109,10 @@
           \mst at subduedminus
         \else
           \mst at setalphabets
+    \expandafter\let\csname ifmst at lgr@upper at up\expandafter\endcsname
+                    \csname ifmst at lgr@\math at version @upper at up\endcsname
+    \expandafter\let\csname ifmst at lgr@lower at up\expandafter\endcsname
+                    \csname ifmst at lgr@\math at version @lower at up\endcsname
           \MTcustomgreek
           \mst at nonsubduedhbar
           \mst at nonsubduedinodot
@@ -1898,6 +2121,10 @@
         \fi
       \fi
     \else
+    \expandafter\let\csname ifmst at lgr@upper at up\expandafter\endcsname
+                    \csname ifmst at lgr@\math at version @upper at up\endcsname
+    \expandafter\let\csname ifmst at lgr@lower at up\expandafter\endcsname
+                    \csname ifmst at lgr@\math at version @lower at up\endcsname
       \MTcustomgreek % new with 1.3d
       \mst at nonsubduedhbar
       \mst at nonsubduedinodot
@@ -2067,14 +2294,14 @@
   \fi
   \ifmst at subdued\else
    \ifmst at LGRgreek
-    \SetSymbolFont{mtlgrfontlower}{normal}{LGR}%
-            {\mst at greekfont}{\mst at series@normal}{\mst at greek@lsh}%
-    \SetSymbolFont{mtlgrfontlower}{bold}{LGR}%
-            {\mst at greekfont}{\mst at boldvariant@normal}{\mst at greek@lsh}%
-    \SetSymbolFont{mtlgrfontupper}{normal}{LGR}%
-            {\mst at greekfont}{\mst at series@normal}{\mst at greek@ush}%
-    \SetSymbolFont{mtlgrfontupper}{bold}{LGR}%
-            {\mst at greekfont}{\mst at boldvariant@bold}{\mst at greek@ush}%
+    \SetSymbolFont{mtgreekup}{normal}{LGR}%
+            {\mst at greekfont}{\mst at series@normal}{\MTgreekupdefault}%
+    \SetSymbolFont{mtgreekup}{bold}{LGR}%
+            {\mst at greekfont}{\mst at boldvariant@normal}{\MTgreekupdefault}%
+    \SetSymbolFont{mtgreekit}{normal}{LGR}%
+            {\mst at greekfont}{\mst at series@normal}{\MTgreekitdefault}%
+    \SetSymbolFont{mtgreekit}{bold}{LGR}%
+            {\mst at greekfont}{\mst at boldvariant@bold}{\MTgreekitdefault}%
    \else
     \ifmst at selfGreek
      \SetSymbolFont{mtselfGreekfont}{normal}{OT1}%
@@ -2085,14 +2312,17 @@
    \fi
   \fi
   \ifmst at subdued
-   \typeout{** subdued mode will be activated for the normal and bold math versions}%
+   \typeout{** subdued mode will be activated for the `normal\string' and `bold\string' math versions}%
   \else
-   \typeout{** Latin letters in the normal (resp. bold) math versions are now^^J%
+   \typeout{** Latin letters in the `normal\string' (resp. `bold\string') math versions are now^^J%
             ** set up to use the fonts
    \mst at encoding@normal/\mst at family@normal/\mst at series@normal%
                (\mst at boldvariant@normal)/\mst at ltshape@normal}%
-   \ifmst at LGRgreek\typeout{** Greek letters (\mst at greek@lsh/\mst at greek@ush)
-                              will use LGR/\mst at greekfont}%
+   \ifmst at LGRgreek\typeout{** Greek letters (upper:
+      `\ifmst at lgr@upper at up\MTgreekupdefault\else\MTgreekitdefault\fi\string',
+                                             lower:
+      `\ifmst at lgr@lower at up\MTgreekupdefault\else\MTgreekitdefault\fi\string')
+      will use font family `\mst at greekfont\string' (LGR)}%
    \fi
    \ifmst at nodigits\else
      \typeout{** Other characters (digits, ...) and \protect\log-like names will be^^J%
@@ -2140,13 +2370,13 @@
 \ifmst at eulergreek
       \typeout{** Greek letters will use the Euler font. Use \protect\MathastextEulerScale{<factor>} to scale the
                font.}%
-      \ifmst at subdued{\typeout{** (subdued mode: normal and bold math
+      \ifmst at subdued{\typeout{** (subdued mode: `normal\string' and `bold\string' math
           version with default Greek letters.)}}\fi
 \else
 \ifmst at symbolgreek
        \typeout{** Greek letters will use the PostScript Symbol font. Use^^J%
                 ** \protect\MathastextSymbolScale{<factor>} to scale the font.}%
-      \ifmst at subdued{\typeout{** (subdued mode: normal and bold math
+      \ifmst at subdued{\typeout{** (subdued mode: `normal\string' and `bold\string' math
           version with default Greek letters.)}}\fi
 \fi\fi
 \ifmst at defaultsizes\else
@@ -2313,6 +2543,8 @@
 \do\MathastextitGreek
 \do\MTgreekfont
 \do\Mathastextgreekfont
+\do\MTgreekupdefault
+\do\MTgreekitdefault
 \do\MTDeclareVersion
 \do\MathastextDeclareVersion
 \do\MTWillUse



More information about the tex-live-commits mailing list.