summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-10-16 23:02:03 +0000
committerKarl Berry <karl@freefriends.org>2015-10-16 23:02:03 +0000
commit493a8c505aa811973d893d883d523582f756cf47 (patch)
tree44a50540b362c1b471313e4c0c292309068f35e3 /Master/texmf-dist
parentb4817ac338ffd79bbd0bd9e407649af39cfdc6cf (diff)
mathastext (16oct15)
git-svn-id: svn://tug.org/texlive/trunk@38661 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/mathastext/README.md18
-rw-r--r--Master/texmf-dist/doc/latex/mathastext/mathastext.pdfbin388209 -> 389357 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.pdfbin41615 -> 41522 bytes
-rw-r--r--Master/texmf-dist/source/latex/mathastext/mathastext.dtx189
-rw-r--r--Master/texmf-dist/source/latex/mathastext/mathastext.ins6
-rw-r--r--Master/texmf-dist/tex/latex/mathastext/mathastext.sty141
6 files changed, 193 insertions, 161 deletions
diff --git a/Master/texmf-dist/doc/latex/mathastext/README.md b/Master/texmf-dist/doc/latex/mathastext/README.md
index 77fd20790cc..3e3ab771be1 100644
--- a/Master/texmf-dist/doc/latex/mathastext/README.md
+++ b/Master/texmf-dist/doc/latex/mathastext/README.md
@@ -3,7 +3,7 @@
+ +
+ mathastext +
+ +
- + 'Use the text font in math mode' +
+ + 'Use the text font in math mode' +
+ +
+-------------------------------------------+
@@ -14,7 +14,7 @@ The Author of this Work is Jean-Francois Burnol
Copyright (C) 2011-2015 Jean-Francois Burnol (`jfbu at free dot fr`)
- Source: mathastext.dtx 1.3f 2015/09/12
+ Source: mathastext.dtx 1.3g 2015/10/15
> cumulative Change Log at bottom of this file.
@@ -70,7 +70,7 @@ Main options: `italic`, `subdued`, `LGRgreek`.
- `eulergreek`: use the Euler font for the Greek letters,
- `symbolgreek`: use the Postscript Symbol font for the
Greek letters.
- - `LGRgreek`: use the document text font in LGR encoding
+ - `LGRgreek`: use the document text font in LGR encoding.
Further options specify the shape of the lowercase
and uppercase Greek glyphs; starting with v1.15c it is
possible to use multiple distinct LGR fonts in the
@@ -85,7 +85,7 @@ INSTALLATION
### From `mathastext.tds.zip`
-This is the fastest way is: `unzip -d <destfolder> mathastext.tds.zip`,
+This is the fastest way: `unzip -d <destfolder> mathastext.tds.zip`,
where `<destfolder>` could be `~/texmf` or (macosx), `~/Library/texmf`.
### From `mathastext.dtx`
@@ -124,6 +124,13 @@ This produces the documentation without the source code.
CHANGE LOG
==========
+1.3g \[2015/10/15\]
+----
+
+* following `2015/10/01` LaTeX release, removal of the `"luatex"`
+ prefix from the names of the LuaLaTeX math primitives. Compatibility
+ maintained with older LaTeX formats.
+
1.3f \[2015/09/12\]
----
@@ -132,8 +139,7 @@ CHANGE LOG
potentially stressful to some users.
* the `README` self-extracts from the `dtx` source, as a text
- file `README.md` with Markdown syntax (which is appropriately
- rendered on the http://ctan.org/pkg/mathastext site).
+ file `README.md` with Markdown syntax.
1.3e \[2015/09/10\]
----
diff --git a/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf b/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf
index edb7e09a98e..dbb962942b2 100644
--- a/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf
+++ b/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.pdf b/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.pdf
index 04c614d2ef7..bd7c0328f12 100644
--- a/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.pdf
+++ b/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/mathastext/mathastext.dtx b/Master/texmf-dist/source/latex/mathastext/mathastext.dtx
index f4ebd5207d7..35ab0a58f34 100644
--- a/Master/texmf-dist/source/latex/mathastext/mathastext.dtx
+++ b/Master/texmf-dist/source/latex/mathastext/mathastext.dtx
@@ -2,14 +2,14 @@
% N.B.: this dtx file does NOT use \DocInput (only docstrip), the
% LaTeX source of the documentation is NOT prefixed with % signs.
%<*dtx>
-{\def\dtxtimestamp {Time-stamp: <12-09-2015 12:23:48 CEST>}%
+{\def\dtxtimestamp {Time-stamp: <15-10-2015 21:35:11 CEST>}%
\def\getdtxtimestamp #1 <#2 #3 #4>{#2 at #3 #4}%
\xdef\dtxtimestamp {\expandafter\getdtxtimestamp\dtxtimestamp }}%
-\def\docdate{2015/09/12}
+\def\docdate{2015/10/15}
%</dtx>
%<*drv|ins>
-\def\MSTpkgdate {2015/09/12}
-\def\MSTpkgversion {1.3f}
+\def\MSTpkgdate {2015/10/15}
+\def\MSTpkgversion {1.3g}
%</drv|ins>
%<*dtx>
\iffalse % meta-comment
@@ -20,7 +20,7 @@
+ +
+ mathastext +
+ +
- + 'Use the text font in math mode' +
+ + 'Use the text font in math mode' +
+ +
+-------------------------------------------+
@@ -31,7 +31,7 @@ The Author of this Work is Jean-Francois Burnol
Copyright (C) 2011-2015 Jean-Francois Burnol (`jfbu at free dot fr`)
- Source: mathastext.dtx 1.3f 2015/09/12
+ Source: mathastext.dtx 1.3g 2015/10/15
%</readme>
%<*dtx>
@@ -47,7 +47,7 @@ not include the documented source code then, in contrast to 1a)+1b) method
%%----------------------------------------------------------------
%% Package: mathastext
%% Info: Use the text font in math mode (jfB)
-%% Version: 1.3f 2015/09/12
+%% Version: 1.3g 2015/10/15
%% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt)
%% Copyright (C) 2011-2015 Jean-Francois Burnol <jfbu at free dot fr>
%% Examples of use of mathastext:
@@ -181,7 +181,7 @@ Main options: `italic`, `subdued`, `LGRgreek`.
- `eulergreek`: use the Euler font for the Greek letters,
- `symbolgreek`: use the Postscript Symbol font for the
Greek letters.
- - `LGRgreek`: use the document text font in LGR encoding
+ - `LGRgreek`: use the document text font in LGR encoding.
Further options specify the shape of the lowercase
and uppercase Greek glyphs; starting with v1.15c it is
possible to use multiple distinct LGR fonts in the
@@ -197,13 +197,11 @@ INSTALLATION
### From `mathastext.tds.zip`
-
-This is the fastest way is: `unzip -d <destfolder> mathastext.tds.zip`,
+This is the fastest way: `unzip -d <destfolder> mathastext.tds.zip`,
where `<destfolder>` could be `~/texmf` or (macosx), `~/Library/texmf`.
### From `mathastext.dtx`
-
- with mathastext.ins: run tex on mathastext.ins to generate the package
style file mathastext.sty as well as mathastext.tex and some test
files.
@@ -238,6 +236,14 @@ This produces the documentation without the source code.
CHANGE LOG
==========
+1.3g \[2015/10/15\]
+----
+
+* following `2015/10/01` LaTeX release, removal of the `"luatex"`
+ prefix from the names of the LuaLaTeX math primitives. Compatibility
+ maintained with older LaTeX formats.
+
+
1.3f \[2015/09/12\]
----
@@ -246,8 +252,7 @@ CHANGE LOG
potentially stressful to some users.
* the `README` self-extracts from the `dtx` source, as a text
- file `README.md` with Markdown syntax (which is appropriately
- rendered on the http://ctan.org/pkg/mathastext site).
+ file `README.md` with Markdown syntax.
1.3e \[2015/09/10\]
@@ -1348,6 +1353,13 @@ LGRgreek]{mathastext}
% \hyperref[ssec:beamer]{better compatibility} with |beamer|.
\begin{description}[leftmargin=0.5em]
+\item [Changes for release |1.3g| of |2015/10/15|]
+\begin{itemize}[noitemsep]
+\item following |2015/10/01| LaTeX release, removal of the |"luatex"|
+ prefix from the names of LuaLaTeX math primitives. Compatibility
+ maintained with older LaTeX formats.
+\end{itemize}
+
\item [Changes for release |1.3f| of |2015/09/12|]
\begin{itemize}[noitemsep]
\item if the package needs to replace |amsmath|'s
@@ -3661,7 +3673,7 @@ Numerous examples will be found there:\\
\catcode`\\ 12
|long|gdef|@DTXLOGhelper #1 ----#2|par{|@@DTXLOGhelper #1\[\]|par}
|long|gdef|@@DTXLOGhelper #1\[#2\]#3|par%
- {|textbf{#1}%
+ {|textbf{#1}% le #1 ici contient un espace
|ifx|relax #2|relax|else [#2]|fi
|par|nopagebreak}
|endgroup
@@ -3741,19 +3753,37 @@ Numerous examples will be found there:\\
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage {mathastext}
- [2015/09/12 v1.3f Use the text font in math mode (jfB)]
+ [2015/10/15 v1.3g Use the text font in math mode (jfB)]
% \end{macrocode}
% Testing for XeTeX and LuaLaTeX. I should load some package for this code which
% I copied somewhere (perhaps from the |iftex| package? or some post on
% |comp.text.tex|). 2013/01/01: at least
% the code now does not overwrite previous \cs{ifXeTeX} or \cs{ifLuaTeX}...
+%
+% |1.3g 2015/10/15|: update for the naming of primitives, the situation has
+% evolved both on XeTeX side and on the LuaLaTeX side (LaTeX base 2015/10/01):
+% I was told "U" named math primitives were always available for LuaLaTeX. For
+% XeTeX, XeTeX prefix got replaced by U prefix with 0.99.. a certain number of
+% 9. I opted for rather simple approach of just trying the "modern" names and
+% if they don't exist fall back on earlier (and in danger of being deprecated)
+% names.
% \begin{macrocode}
+ \let\mst@Umathcharnumdef\Umathcharnumdef
+ \let\mst@Umathcodenum \Umathcodenum
+ \let\mst@Umathcode \Umathcode
+ \let\mst@Umathchardef \Umathchardef
\newif\ifmst@XeTeX
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname XeTeXinterchartoks\endcsname\relax
\mst@XeTeXfalse
\else
\mst@XeTeXtrue
+ \ifx\mst@Umathcharnumdef\undefined
+ \let\mst@Umathcharnumdef\XeTeXmathcharnumdef
+ \let\mst@Umathcodenum \XeTeXmathcodenum
+ \let\mst@Umathcode \XeTeXmathcode
+ \let\mst@Umathchardef \XeTeXmathchardef
+ \fi
\fi
\newif\ifmst@LuaTeX
\begingroup\expandafter\expandafter\expandafter\endgroup
@@ -3761,7 +3791,16 @@ Numerous examples will be found there:\\
\mst@LuaTeXfalse
\else
\mst@LuaTeXtrue
+ \ifx\mst@Umathcharnumdef\undefined
+ \let\mst@Umathcharnumdef\luatexUmathcharnumdef
+ \let\mst@Umathcodenum \luatexUmathcodenum
+ \let\mst@Umathcode \luatexUmathcode
+ \let\mst@Umathchardef \luatexUmathchardef
+ \fi
\fi
+\newif\ifmst@Unicode
+\ifmst@LuaTeX\mst@Unicodetrue\fi
+\ifmst@XeTeX \mst@Unicodetrue\fi
% \end{macrocode}
% |1.2|: all inner macros of \mst now starts with |\mst@| for a cleaner
% name-space.
@@ -5726,17 +5765,15 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
% XeTeX, not for LuaLatex. Also I do my modifications to \cs{relbar}
% in a manner testing for the presence of amsmath.
% \begin{macrocode}
-\ifmst@nominus\else
-\ifmst@XeTeX
-\XeTeXmathcharnumdef\mst@minus@sign=\XeTeXmathcodenum`\-\relax
+\ifmst@nominus
\else
-\ifmst@LuaTeX
-\luatexUmathcharnumdef\mst@minus@sign=\luatexUmathcodenum`\-\relax
+ \ifmst@Unicode
+ \mst@Umathcharnumdef\mst@minus@sign=\mst@Umathcodenum`\-\relax
%% I used this prior to the new \luatexUmathcodenum, as available with TL2013:
%% \mathchardef\mst@minus@sign=8704\relax % "2200
-\else
-\mathchardef\mst@minus@sign=\mathcode`\-\relax
-\fi\fi
+ \else
+ \mathchardef\mst@minus@sign=\mathcode`\-\relax
+ \fi
\@ifpackageloaded{amsmath}
{\def\relbar{\mathrel{\mathpalette\mathsm@sh\mst@minus@sign}}}
{\DeclareRobustCommand\relbar{\mathrel{\smash\mst@minus@sign}}}
@@ -5764,14 +5801,14 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\def\do@the@endashstuff{\edef\mst@tmp@enc{\encodingdefault}
\ifx\mst@tmp@enc\mst@eui % xetex+fontspec
\AtBeginDocument{%
- \XeTeXmathcode`\-="2 \symmtoperatorfont "2013\relax
- \XeTeXmathchardef\mst@varfam@minus="7 \symmtoperatorfont "2013\relax
+ \mst@Umathcode`\-="2 \symmtoperatorfont "2013\relax
+ \mst@Umathchardef\mst@varfam@minus="7 \symmtoperatorfont "2013\relax
}
\else
\ifx\mst@tmp@enc\mst@euii % luatex+fontspec
\AtBeginDocument{%
- \luatexUmathcode`\-="2 \symmtoperatorfont "2013\relax
- \luatexUmathchardef\mst@varfam@minus="7 \symmtoperatorfont "2013\relax
+ \mst@Umathcode`\-="2 \symmtoperatorfont "2013\relax
+ \mst@Umathchardef\mst@varfam@minus="7 \symmtoperatorfont "2013\relax
}
\else
\ifx\mst@tmp@enc\mst@ti % T1
@@ -5786,23 +5823,23 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\DeclareMathSymbol{-}{\mathbin}{mtoperatorfont}{150}
\DeclareMathSymbol{\mst@varfam@minus}{\mathalpha}{mtoperatorfont}{150}
\else % make sure we have neither xetex nor luatex
- \ifmst@XeTeX\mst@aborttrue\else\ifmst@LuaTeX\mst@aborttrue\else
+ \ifmst@Unicode\mst@aborttrue\else
\DeclareMathSymbol{-}{\mathbin}{mtoperatorfont}
\DeclareMathSymbol{\mst@varfam@minus}{\mathalpha}{mtoperatorfont}
{\expandafter\the\expandafter\csname\mst@tmp@enc\string\textendash\endcsname}
- \fi\fi
+ \fi
\fi\fi\fi\fi\fi}
\def\do@the@emdashstuff{\edef\mst@tmp@enc{\encodingdefault}
\ifx\mst@tmp@enc\mst@eui % xetex+fontspec
\AtBeginDocument{%
- \XeTeXmathcode`\-="2 \symmtoperatorfont "2014\relax
- \XeTeXmathchardef\mst@varfam@minus="7 \symmtoperatorfont "2014\relax
+ \mst@Umathcode`\-="2 \symmtoperatorfont "2014\relax
+ \mst@Umathchardef\mst@varfam@minus="7 \symmtoperatorfont "2014\relax
}
\else
\ifx\mst@tmp@enc\mst@euii % luatex+fontspec
\AtBeginDocument{%
- \luatexUmathcode`\-="2 \symmtoperatorfont "2014\relax
- \luatexUmathchardef\mst@varfam@minus="7 \symmtoperatorfont "2014\relax
+ \mst@Umathcode`\-="2 \symmtoperatorfont "2014\relax
+ \mst@Umathchardef\mst@varfam@minus="7 \symmtoperatorfont "2014\relax
}
\else
\ifx\mst@tmp@enc\mst@ti % T1
@@ -5817,11 +5854,11 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\DeclareMathSymbol{-}{\mathbin}{mtoperatorfont}{151}
\DeclareMathSymbol{\mst@varfam@minus}{\mathalpha}{mtoperatorfont}{151}
\else % make sure we have neither xetex nor luatex
- \ifmst@XeTeX\mst@aborttrue\else\ifmst@LuaTeX\mst@aborttrue\else
+ \ifmst@Unicode\mst@aborttrue\else
\DeclareMathSymbol{-}{\mathbin}{mtoperatorfont}
\DeclareMathSymbol{\mst@varfam@minus}{\mathalpha}{mtoperatorfont}
{\expandafter\the\expandafter\csname\mst@tmp@enc\string\textemdash\endcsname}
- \fi\fi
+ \fi
\fi\fi\fi\fi\fi}
\ifmst@nominus\else\typeout{** minus as endash}
\mst@abortfalse
@@ -5863,10 +5900,10 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\def\mst@mathrlapinternal#1#2{\rlap{$\mathsurround=0pt#1{#2}$}}
\def\do@the@hbarstuff{\edef\mst@tmp@enc{\encodingdefault}
\ifx\mst@tmp@enc\mst@eui % xetex and unicode font
- \XeTeXmathchardef\hbar="7 \symmtletterfont "0127 \relax
+ \mst@Umathchardef\hbar="7 \symmtletterfont "0127 \relax
\else
\ifx\mst@tmp@enc\mst@euii % luatex and unicode font
- \luatexUmathchardef\hbar="7 \symmtletterfont "0127 \relax %% or 210F?
+ \mst@Umathchardef\hbar="7 \symmtletterfont "0127 \relax %% or 210F?
\else % I must leave open the T1, OT1 possibility also for XeTeX or LuaTeX
\ifx\mst@ti\mst@tmp@enc
\DeclareMathAccent{\mst@ltbar}{\mathalpha}{mtletterfont}{9}
@@ -5900,14 +5937,11 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\expandafter\mst@addtodo@nonletters\string+\mathbin\mst@varfam@plus
\fi
\ifmst@noequal\else
-\ifmst@XeTeX
-\XeTeXmathcharnumdef\mst@equal@sign=\XeTeXmathcodenum`\=\relax
+\ifmst@Unicode
+ \mst@Umathcharnumdef\mst@equal@sign=\mst@Umathcodenum`\=\relax
\else
-\ifmst@LuaTeX
-\luatexUmathcharnumdef\mst@equal@sign=\luatexUmathcodenum`\=\relax
-\else
-\mathchardef\mst@equal@sign=\mathcode`\=\relax
-\fi\fi
+ \mathchardef\mst@equal@sign=\mathcode`\=\relax
+\fi
\@ifpackageloaded{amsmath}
{\def\Relbar{\mathrel\mst@equal@sign}}
{\DeclareRobustCommand\Relbar{\mathrel{\mst@equal@sign}}}
@@ -6035,13 +6069,11 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
% \begin{macro}{\models}
% |1.15d|: 13 oct 2012. Before modifying \string| we must preserve \cs{models}.
% \begin{macrocode}
-\ifmst@XeTeX
-\XeTeXmathcharnumdef\mst@vert@bar=\XeTeXmathcodenum`\|\relax
+\ifmst@Unicode
+ \mst@Umathcharnumdef\mst@vert@bar=\mst@Umathcodenum`\|\relax
\else
-\ifmst@LuaTeX
-\luatexUmathcharnumdef\mst@vert@bar=\luatexUmathcodenum`\|\relax
-\else\mathchardef\mst@vert@bar=\mathcode`\|\relax
-\fi\fi
+ \mathchardef\mst@vert@bar=\mathcode`\|\relax
+\fi
\DeclareRobustCommand\models{\mathrel{\mst@vert@bar}\joinrel\Relbar}
% \end{macrocode}
% \end{macro}
@@ -6131,33 +6163,23 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
% accomodate more than 16 math families. Code for XeTeX and LuaTeX again added.
% (and since TL2013 no more problems with |\luatexUmathcode|.)
% \begin{macrocode}
-\ifmst@nospecials\else
+\ifmst@nospecials
+\else
\typeout{** \string\#\space\string\mathdollar\space
\string\%\space\string\&\space}
-\ifmst@XeTeX
- \XeTeXmathcode`\#="0 \symmtoperatorfont "0023 \relax
- \XeTeXmathchardef\mathdollar="0 \symmtoperatorfont "0024 \relax
- \XeTeXmathcode`\%="0 \symmtoperatorfont "0025 \relax
- \XeTeXmathcode`\&="0 \symmtoperatorfont "0026 \relax
- \mst@do@easynonletters\expandafter{\the\mst@do@easynonletters
- \XeTeXmathcode`\#="7 \symmtoperatorfont "0023 \relax
- \XeTeXmathchardef\mathdollar="7 \symmtoperatorfont "0024 \relax
- \XeTeXmathcode`\%="7 \symmtoperatorfont "0025 \relax
- \XeTeXmathcode`\&="7 \symmtoperatorfont "0026 \relax
- }
-\else
-\ifmst@LuaTeX
- \luatexUmathcode`\#="0 \symmtoperatorfont "0023 \relax
- \luatexUmathchardef\mathdollar="0 \symmtoperatorfont "0024 \relax
- \luatexUmathcode`\%="0 \symmtoperatorfont "0025 \relax
- \luatexUmathcode`\&="0 \symmtoperatorfont "0026 \relax
- \mst@do@easynonletters\expandafter{\the\mst@do@easynonletters
- \luatexUmathcode`\#="7 \symmtoperatorfont "0023 \relax
- \luatexUmathchardef\mathdollar="7 \symmtoperatorfont "0024 \relax
- \luatexUmathcode`\%="7 \symmtoperatorfont "0025 \relax
- \luatexUmathcode`\&="7 \symmtoperatorfont "0026 \relax
- }
-\else
+ \ifmst@Unicode
+ \mst@Umathcode`\#="0 \symmtoperatorfont "0023 \relax
+ \mst@Umathchardef\mathdollar="0 \symmtoperatorfont "0024 \relax
+ \mst@Umathcode`\%="0 \symmtoperatorfont "0025 \relax
+ \mst@Umathcode`\&="0 \symmtoperatorfont "0026 \relax
+ \mst@do@easynonletters\expandafter{%
+ \the\mst@do@easynonletters
+ \mst@Umathcode`\#="7 \symmtoperatorfont "0023 \relax
+ \mst@Umathchardef\mathdollar="7 \symmtoperatorfont "0024 \relax
+ \mst@Umathcode`\%="7 \symmtoperatorfont "0025 \relax
+ \mst@Umathcode`\&="7 \symmtoperatorfont "0026 \relax
+ }
+ \else
\count255=\symmtoperatorfont
\multiply\count255 by 256
\advance\count255 by 35
@@ -6183,7 +6205,8 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\let\mathdollar\mst@varfam@mathdollar
\mathcode`\%=\mst@varfam@mathpercent
\mathcode`\&=\mst@varfam@mathampersand}
-\fi\fi\fi
+ \fi
+\fi
% \end{macrocode}
% \end{macro}
% \begin{macro}{symbolmisc}
@@ -6764,12 +6787,12 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\edef\mst@tmp@enc{\encodingdefault}
\mst@goaheadtrue
\ifx\mst@tmp@enc\mst@eui % xetex and unicode font
- \XeTeXmathchardef\inodot="7 \symmtletterfont "0131 \relax
- \XeTeXmathchardef\jnodot="7 \symmtletterfont "0237 \relax
+ \mst@Umathchardef\inodot="7 \symmtletterfont "0131 \relax
+ \mst@Umathchardef\jnodot="7 \symmtletterfont "0237 \relax
\else
\ifx\mst@tmp@enc\mst@euii % luatex and unicode font
- \luatexUmathchardef\inodot="7 \symmtletterfont "0131 \relax
- \luatexUmathchardef\jnodot="7 \symmtletterfont "0237 \relax
+ \mst@Umathchardef\inodot="7 \symmtletterfont "0131 \relax
+ \mst@Umathchardef\jnodot="7 \symmtletterfont "0237 \relax
\else
\ifx\mst@tmp@enc\mst@ti % T1
\DeclareMathSymbol{\inodot}{\mathalpha}{mtletterfont}{25}
@@ -6783,12 +6806,12 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\DeclareMathSymbol{\inodot}{\mathalpha}{mtletterfont}{16}
\DeclareMathSymbol{\jnodot}{\mathalpha}{mtletterfont}{17}
\else
- \ifmst@XeTeX\mst@goaheadfalse\else\ifmst@LuaTeX\mst@goaheadfalse\else
+ \ifmst@Unicode\mst@goaheadfalse\else
\DeclareMathSymbol{\inodot}{\mathalpha}{mtletterfont}
{\expandafter\the\expandafter\csname\mst@tmp@enc\string\i\endcsname}
\DeclareMathSymbol{\jnodot}{\mathalpha}{mtletterfont}
{\expandafter\the\expandafter\csname\mst@tmp@enc\string\j\endcsname}
- \fi\fi
+ \fi
\fi\fi\fi\fi\fi
\ifmst@defaultimath\else\typeout{** \string\i\space and \string\j\space}
\ifmst@goahead
@@ -6904,7 +6927,7 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
Grave accent \` Left brace \{ Vertical bar \|
Right brace \} Tilde \~}
-\CheckSum{5176}
+\CheckSum{5153}
\makeatletter\check@checksum\makeatother
\Finale
%%
diff --git a/Master/texmf-dist/source/latex/mathastext/mathastext.ins b/Master/texmf-dist/source/latex/mathastext/mathastext.ins
index 878415c1092..7bd383e6cf4 100644
--- a/Master/texmf-dist/source/latex/mathastext/mathastext.ins
+++ b/Master/texmf-dist/source/latex/mathastext/mathastext.ins
@@ -1,9 +1,9 @@
-\def\MSTpkgdate {2015/09/12}
-\def\MSTpkgversion {1.3f}
+\def\MSTpkgdate {2015/10/15}
+\def\MSTpkgversion {1.3g}
%%----------------------------------------------------------------
%% Package: mathastext
%% Info: Use the text font in math mode (jfB)
-%% Version: 1.3f 2015/09/12
+%% Version: 1.3g 2015/10/15
%% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt)
%% Copyright (C) 2011-2015 Jean-Francois Burnol <jfbu at free dot fr>
%% Examples of use of mathastext:
diff --git a/Master/texmf-dist/tex/latex/mathastext/mathastext.sty b/Master/texmf-dist/tex/latex/mathastext/mathastext.sty
index e9df2b2614b..eb87c370529 100644
--- a/Master/texmf-dist/tex/latex/mathastext/mathastext.sty
+++ b/Master/texmf-dist/tex/latex/mathastext/mathastext.sty
@@ -23,7 +23,7 @@
%%----------------------------------------------------------------
%% Package: mathastext
%% Info: Use the text font in math mode (jfB)
-%% Version: 1.3f 2015/09/12
+%% Version: 1.3g 2015/10/15
%% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt)
%% Copyright (C) 2011-2015 Jean-Francois Burnol <jfbu at free dot fr>
%% Examples of use of mathastext:
@@ -32,13 +32,23 @@
%%----------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage {mathastext}
- [2015/09/12 v1.3f Use the text font in math mode (jfB)]
+ [2015/10/15 v1.3g Use the text font in math mode (jfB)]
+ \let\mst@Umathcharnumdef\Umathcharnumdef
+ \let\mst@Umathcodenum \Umathcodenum
+ \let\mst@Umathcode \Umathcode
+ \let\mst@Umathchardef \Umathchardef
\newif\ifmst@XeTeX
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname XeTeXinterchartoks\endcsname\relax
\mst@XeTeXfalse
\else
\mst@XeTeXtrue
+ \ifx\mst@Umathcharnumdef\undefined
+ \let\mst@Umathcharnumdef\XeTeXmathcharnumdef
+ \let\mst@Umathcodenum \XeTeXmathcodenum
+ \let\mst@Umathcode \XeTeXmathcode
+ \let\mst@Umathchardef \XeTeXmathchardef
+ \fi
\fi
\newif\ifmst@LuaTeX
\begingroup\expandafter\expandafter\expandafter\endgroup
@@ -46,7 +56,16 @@
\mst@LuaTeXfalse
\else
\mst@LuaTeXtrue
+ \ifx\mst@Umathcharnumdef\undefined
+ \let\mst@Umathcharnumdef\luatexUmathcharnumdef
+ \let\mst@Umathcodenum \luatexUmathcodenum
+ \let\mst@Umathcode \luatexUmathcode
+ \let\mst@Umathchardef \luatexUmathchardef
+ \fi
\fi
+\newif\ifmst@Unicode
+\ifmst@LuaTeX\mst@Unicodetrue\fi
+\ifmst@XeTeX \mst@Unicodetrue\fi
\def\mst@oti{OT1}\def\mst@ti{T1}\def\mst@lyi{LY1}
\def\mst@eui{EU1}\def\mst@euii{EU2}
\newif\ifmst@goahead
@@ -1095,17 +1114,15 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\DeclareMathSymbol{\mst@varfam@pointvirgule}{\mathalpha}{\mst@font@tbu}{"3B}
\expandafter\mst@addtodo@nonletters\string;\mathpunct\mst@varfam@pointvirgule
\fi
-\ifmst@nominus\else
-\ifmst@XeTeX
-\XeTeXmathcharnumdef\mst@minus@sign=\XeTeXmathcodenum`\-\relax
+\ifmst@nominus
\else
-\ifmst@LuaTeX
-\luatexUmathcharnumdef\mst@minus@sign=\luatexUmathcodenum`\-\relax
+ \ifmst@Unicode
+ \mst@Umathcharnumdef\mst@minus@sign=\mst@Umathcodenum`\-\relax
%% I used this prior to the new \luatexUmathcodenum, as available with TL2013:
%% \mathchardef\mst@minus@sign=8704\relax % "2200
-\else
-\mathchardef\mst@minus@sign=\mathcode`\-\relax
-\fi\fi
+ \else
+ \mathchardef\mst@minus@sign=\mathcode`\-\relax
+ \fi
\@ifpackageloaded{amsmath}
{\def\relbar{\mathrel{\mathpalette\mathsm@sh\mst@minus@sign}}}
{\DeclareRobustCommand\relbar{\mathrel{\smash\mst@minus@sign}}}
@@ -1119,14 +1136,14 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\def\do@the@endashstuff{\edef\mst@tmp@enc{\encodingdefault}
\ifx\mst@tmp@enc\mst@eui % xetex+fontspec
\AtBeginDocument{%
- \XeTeXmathcode`\-="2 \symmtoperatorfont "2013\relax
- \XeTeXmathchardef\mst@varfam@minus="7 \symmtoperatorfont "2013\relax
+ \mst@Umathcode`\-="2 \symmtoperatorfont "2013\relax
+ \mst@Umathchardef\mst@varfam@minus="7 \symmtoperatorfont "2013\relax
}
\else
\ifx\mst@tmp@enc\mst@euii % luatex+fontspec
\AtBeginDocument{%
- \luatexUmathcode`\-="2 \symmtoperatorfont "2013\relax
- \luatexUmathchardef\mst@varfam@minus="7 \symmtoperatorfont "2013\relax
+ \mst@Umathcode`\-="2 \symmtoperatorfont "2013\relax
+ \mst@Umathchardef\mst@varfam@minus="7 \symmtoperatorfont "2013\relax
}
\else
\ifx\mst@tmp@enc\mst@ti % T1
@@ -1141,23 +1158,23 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\DeclareMathSymbol{-}{\mathbin}{mtoperatorfont}{150}
\DeclareMathSymbol{\mst@varfam@minus}{\mathalpha}{mtoperatorfont}{150}
\else % make sure we have neither xetex nor luatex
- \ifmst@XeTeX\mst@aborttrue\else\ifmst@LuaTeX\mst@aborttrue\else
+ \ifmst@Unicode\mst@aborttrue\else
\DeclareMathSymbol{-}{\mathbin}{mtoperatorfont}
\DeclareMathSymbol{\mst@varfam@minus}{\mathalpha}{mtoperatorfont}
{\expandafter\the\expandafter\csname\mst@tmp@enc\string\textendash\endcsname}
- \fi\fi
+ \fi
\fi\fi\fi\fi\fi}
\def\do@the@emdashstuff{\edef\mst@tmp@enc{\encodingdefault}
\ifx\mst@tmp@enc\mst@eui % xetex+fontspec
\AtBeginDocument{%
- \XeTeXmathcode`\-="2 \symmtoperatorfont "2014\relax
- \XeTeXmathchardef\mst@varfam@minus="7 \symmtoperatorfont "2014\relax
+ \mst@Umathcode`\-="2 \symmtoperatorfont "2014\relax
+ \mst@Umathchardef\mst@varfam@minus="7 \symmtoperatorfont "2014\relax
}
\else
\ifx\mst@tmp@enc\mst@euii % luatex+fontspec
\AtBeginDocument{%
- \luatexUmathcode`\-="2 \symmtoperatorfont "2014\relax
- \luatexUmathchardef\mst@varfam@minus="7 \symmtoperatorfont "2014\relax
+ \mst@Umathcode`\-="2 \symmtoperatorfont "2014\relax
+ \mst@Umathchardef\mst@varfam@minus="7 \symmtoperatorfont "2014\relax
}
\else
\ifx\mst@tmp@enc\mst@ti % T1
@@ -1172,11 +1189,11 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\DeclareMathSymbol{-}{\mathbin}{mtoperatorfont}{151}
\DeclareMathSymbol{\mst@varfam@minus}{\mathalpha}{mtoperatorfont}{151}
\else % make sure we have neither xetex nor luatex
- \ifmst@XeTeX\mst@aborttrue\else\ifmst@LuaTeX\mst@aborttrue\else
+ \ifmst@Unicode\mst@aborttrue\else
\DeclareMathSymbol{-}{\mathbin}{mtoperatorfont}
\DeclareMathSymbol{\mst@varfam@minus}{\mathalpha}{mtoperatorfont}
{\expandafter\the\expandafter\csname\mst@tmp@enc\string\textemdash\endcsname}
- \fi\fi
+ \fi
\fi\fi\fi\fi\fi}
\ifmst@nominus\else\typeout{** minus as endash}
\mst@abortfalse
@@ -1196,10 +1213,10 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\def\mst@mathrlapinternal#1#2{\rlap{$\mathsurround=0pt#1{#2}$}}
\def\do@the@hbarstuff{\edef\mst@tmp@enc{\encodingdefault}
\ifx\mst@tmp@enc\mst@eui % xetex and unicode font
- \XeTeXmathchardef\hbar="7 \symmtletterfont "0127 \relax
+ \mst@Umathchardef\hbar="7 \symmtletterfont "0127 \relax
\else
\ifx\mst@tmp@enc\mst@euii % luatex and unicode font
- \luatexUmathchardef\hbar="7 \symmtletterfont "0127 \relax %% or 210F?
+ \mst@Umathchardef\hbar="7 \symmtletterfont "0127 \relax %% or 210F?
\else % I must leave open the T1, OT1 possibility also for XeTeX or LuaTeX
\ifx\mst@ti\mst@tmp@enc
\DeclareMathAccent{\mst@ltbar}{\mathalpha}{mtletterfont}{9}
@@ -1215,14 +1232,11 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\expandafter\mst@addtodo@nonletters\string+\mathbin\mst@varfam@plus
\fi
\ifmst@noequal\else
-\ifmst@XeTeX
-\XeTeXmathcharnumdef\mst@equal@sign=\XeTeXmathcodenum`\=\relax
-\else
-\ifmst@LuaTeX
-\luatexUmathcharnumdef\mst@equal@sign=\luatexUmathcodenum`\=\relax
+\ifmst@Unicode
+ \mst@Umathcharnumdef\mst@equal@sign=\mst@Umathcodenum`\=\relax
\else
-\mathchardef\mst@equal@sign=\mathcode`\=\relax
-\fi\fi
+ \mathchardef\mst@equal@sign=\mathcode`\=\relax
+\fi
\@ifpackageloaded{amsmath}
{\def\Relbar{\mathrel\mst@equal@sign}}
{\DeclareRobustCommand\Relbar{\mathrel{\mst@equal@sign}}}
@@ -1287,13 +1301,11 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\DeclareMathSymbol{\mst@varfam@setminus}{\mathalpha}{mtoperatorfont}{"5C}
\mst@do@nonletters\expandafter{\the\mst@do@nonletters
\def\setminus{\mathbin{\mst@varfam@setminus}}}
-\ifmst@XeTeX
-\XeTeXmathcharnumdef\mst@vert@bar=\XeTeXmathcodenum`\|\relax
+\ifmst@Unicode
+ \mst@Umathcharnumdef\mst@vert@bar=\mst@Umathcodenum`\|\relax
\else
-\ifmst@LuaTeX
-\luatexUmathcharnumdef\mst@vert@bar=\luatexUmathcodenum`\|\relax
-\else\mathchardef\mst@vert@bar=\mathcode`\|\relax
-\fi\fi
+ \mathchardef\mst@vert@bar=\mathcode`\|\relax
+\fi
\DeclareRobustCommand\models{\mathrel{\mst@vert@bar}\joinrel\Relbar}
\ifmst@nosmalldelims
\DeclareMathSymbol{|}{\mathord}{\mst@font@tbu}{124}
@@ -1327,33 +1339,23 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\newcommand*{\MTexplicitbracesobeymathxx}{\let\mst@dobraces\@firstofone}
\newcommand*{\MTexplicitbracesdonotobeymathxx}{\let\mst@dobraces\@gobble}
\MTexplicitbracesdonotobeymathxx
-\ifmst@nospecials\else
+\ifmst@nospecials
+\else
\typeout{** \string\#\space\string\mathdollar\space
\string\%\space\string\&\space}
-\ifmst@XeTeX
- \XeTeXmathcode`\#="0 \symmtoperatorfont "0023 \relax
- \XeTeXmathchardef\mathdollar="0 \symmtoperatorfont "0024 \relax
- \XeTeXmathcode`\%="0 \symmtoperatorfont "0025 \relax
- \XeTeXmathcode`\&="0 \symmtoperatorfont "0026 \relax
- \mst@do@easynonletters\expandafter{\the\mst@do@easynonletters
- \XeTeXmathcode`\#="7 \symmtoperatorfont "0023 \relax
- \XeTeXmathchardef\mathdollar="7 \symmtoperatorfont "0024 \relax
- \XeTeXmathcode`\%="7 \symmtoperatorfont "0025 \relax
- \XeTeXmathcode`\&="7 \symmtoperatorfont "0026 \relax
- }
-\else
-\ifmst@LuaTeX
- \luatexUmathcode`\#="0 \symmtoperatorfont "0023 \relax
- \luatexUmathchardef\mathdollar="0 \symmtoperatorfont "0024 \relax
- \luatexUmathcode`\%="0 \symmtoperatorfont "0025 \relax
- \luatexUmathcode`\&="0 \symmtoperatorfont "0026 \relax
- \mst@do@easynonletters\expandafter{\the\mst@do@easynonletters
- \luatexUmathcode`\#="7 \symmtoperatorfont "0023 \relax
- \luatexUmathchardef\mathdollar="7 \symmtoperatorfont "0024 \relax
- \luatexUmathcode`\%="7 \symmtoperatorfont "0025 \relax
- \luatexUmathcode`\&="7 \symmtoperatorfont "0026 \relax
- }
-\else
+ \ifmst@Unicode
+ \mst@Umathcode`\#="0 \symmtoperatorfont "0023 \relax
+ \mst@Umathchardef\mathdollar="0 \symmtoperatorfont "0024 \relax
+ \mst@Umathcode`\%="0 \symmtoperatorfont "0025 \relax
+ \mst@Umathcode`\&="0 \symmtoperatorfont "0026 \relax
+ \mst@do@easynonletters\expandafter{%
+ \the\mst@do@easynonletters
+ \mst@Umathcode`\#="7 \symmtoperatorfont "0023 \relax
+ \mst@Umathchardef\mathdollar="7 \symmtoperatorfont "0024 \relax
+ \mst@Umathcode`\%="7 \symmtoperatorfont "0025 \relax
+ \mst@Umathcode`\&="7 \symmtoperatorfont "0026 \relax
+ }
+ \else
\count255=\symmtoperatorfont
\multiply\count255 by 256
\advance\count255 by 35
@@ -1379,7 +1381,8 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\let\mathdollar\mst@varfam@mathdollar
\mathcode`\%=\mst@varfam@mathpercent
\mathcode`\&=\mst@varfam@mathampersand}
-\fi\fi\fi
+ \fi
+\fi
\ifmst@symbolmisc\typeout{** symbolmisc: miscellaneous math symbols from Symbol font}
\let\mst@prod\prod
\let\MToriginalprod\prod
@@ -1842,12 +1845,12 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\edef\mst@tmp@enc{\encodingdefault}
\mst@goaheadtrue
\ifx\mst@tmp@enc\mst@eui % xetex and unicode font
- \XeTeXmathchardef\inodot="7 \symmtletterfont "0131 \relax
- \XeTeXmathchardef\jnodot="7 \symmtletterfont "0237 \relax
+ \mst@Umathchardef\inodot="7 \symmtletterfont "0131 \relax
+ \mst@Umathchardef\jnodot="7 \symmtletterfont "0237 \relax
\else
\ifx\mst@tmp@enc\mst@euii % luatex and unicode font
- \luatexUmathchardef\inodot="7 \symmtletterfont "0131 \relax
- \luatexUmathchardef\jnodot="7 \symmtletterfont "0237 \relax
+ \mst@Umathchardef\inodot="7 \symmtletterfont "0131 \relax
+ \mst@Umathchardef\jnodot="7 \symmtletterfont "0237 \relax
\else
\ifx\mst@tmp@enc\mst@ti % T1
\DeclareMathSymbol{\inodot}{\mathalpha}{mtletterfont}{25}
@@ -1861,12 +1864,12 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue}
\DeclareMathSymbol{\inodot}{\mathalpha}{mtletterfont}{16}
\DeclareMathSymbol{\jnodot}{\mathalpha}{mtletterfont}{17}
\else
- \ifmst@XeTeX\mst@goaheadfalse\else\ifmst@LuaTeX\mst@goaheadfalse\else
+ \ifmst@Unicode\mst@goaheadfalse\else
\DeclareMathSymbol{\inodot}{\mathalpha}{mtletterfont}
{\expandafter\the\expandafter\csname\mst@tmp@enc\string\i\endcsname}
\DeclareMathSymbol{\jnodot}{\mathalpha}{mtletterfont}
{\expandafter\the\expandafter\csname\mst@tmp@enc\string\j\endcsname}
- \fi\fi
+ \fi
\fi\fi\fi\fi\fi
\ifmst@defaultimath\else\typeout{** \string\i\space and \string\j\space}
\ifmst@goahead