diff options
author | Karl Berry <karl@freefriends.org> | 2015-09-10 20:56:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-09-10 20:56:38 +0000 |
commit | d55d075d6e1c947a2332b90c36d75147a6919180 (patch) | |
tree | 234dee7bb517a05e1dc3de0145e27cf9dba8b120 /Master | |
parent | ca4208ab5d96c12b345e9ebe3462cb7dfb81591c (diff) |
mathastext (10sep15)
git-svn-id: svn://tug.org/texlive/trunk@38338 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/mathastext/README | 7 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/mathastext/mathastext.pdf | bin | 383766 -> 385062 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/mathastext/mathastext.dtx | 137 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/mathastext/mathastext.ins | 6 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mathastext/mathastext.sty | 8 |
5 files changed, 91 insertions, 67 deletions
diff --git a/Master/texmf-dist/doc/latex/mathastext/README b/Master/texmf-dist/doc/latex/mathastext/README index a2376d6715d..eebaed71263 100644 --- a/Master/texmf-dist/doc/latex/mathastext/README +++ b/Master/texmf-dist/doc/latex/mathastext/README @@ -4,7 +4,7 @@ Copyright (C) 2011-2015 Jean-Francois Burnol. + mathastext + + + + `Use the text font in math mode' + - + v1.3d 2014/05/23 + + + v1.3e 2015/09/10 + + jfbu (at) free.fr + +-------------------------------------------+ @@ -133,6 +133,11 @@ can be customized to change the font size or set other options therein. CHANGE LOG +1.3e [2015/09/10] + + * bugfix regarding option nosmalldelims and bad side effet on +\lbrace, \rbrace. + [2015/02/26]: mention is made in the documentation of the improved compatibility of mathastext with the latest (3.34) beamer release. diff --git a/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf b/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf Binary files differindex f01da333876..1fc963a75d9 100644 --- a/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf +++ b/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf diff --git a/Master/texmf-dist/source/latex/mathastext/mathastext.dtx b/Master/texmf-dist/source/latex/mathastext/mathastext.dtx index 8f12dfcc1cd..8bf3f667bdc 100644 --- a/Master/texmf-dist/source/latex/mathastext/mathastext.dtx +++ b/Master/texmf-dist/source/latex/mathastext/mathastext.dtx @@ -1,14 +1,14 @@ % -*- coding: iso-latin-1; -*- %<*dtx> -{\def\dtxtimestamp {Time-stamp: <26-02-2015 23:33:58 CET>}% +{\def\dtxtimestamp {Time-stamp: <10-09-2015 13:09:59 CEST>}% \def\getdtxtimestamp #1 <#2 #3 #4>{#2 at #3 #4}% \xdef\dtxtimestamp {\expandafter\getdtxtimestamp\dtxtimestamp }}% -\def\docdate{2015/02/26} +\def\docdate{2015/09/10} %</dtx> %%---------------------------------------------------------------- %% Package: mathastext %<package>%% Use the text font in math mode (jfB) -%% Version: 1.3d (2014/05/23; doc of 2015/02/26) +%% Version: 1.3e (2015/09/10; doc of 2015/09/10) %% License: LPPL 1.3c %% Copyright (C) 2011-2015 Jean-Francois Burnol <jfbu at free dot fr> %% Examples of use of mathastext: @@ -27,8 +27,8 @@ % % The Author of this Work is: Jean-Francois Burnol <jfbu at free dot fr> %<*drv|ins> -\def\MSTpkgdate {2014/05/23} -\def\MSTpkgversion {1.3d} +\def\MSTpkgdate {2015/09/10} +\def\MSTpkgversion {1.3e} %</drv|ins> % Installation: % ============= @@ -896,10 +896,15 @@ LGRgreek]{mathastext} \subsection{Recent changes} This is the documentation for version \texttt{\MSTpkgversion} of -\texttt{\MSTpkgdate}. Updated \texttt{\docdate} to mention -\hyperref[ssec:beamer]{better compatibility} with |beamer|. +\texttt{\MSTpkgdate}. -Changes for this release: +Changes for release |1.3e| of |2015/09/10|: bugfix regarding option +§nosmalldelims§ and its side effect on the use of |\{,\}| as delimiters. + +% Updated \texttt{2015/02/26} to mention +% \hyperref[ssec:beamer]{better compatibility} with |beamer|. + +Changes for release |1.3d| of |2014/05/23|: \begin{enumerate}[noitemsep] \item if one of the Greek related options (§LGRgreek§(s), §selfGreek§(s), §eulergreek§, §symbolgreek§) has been passed to the @@ -946,7 +951,6 @@ Changes for release |1.3a| of |2013/09/04|: \end{enumerate} -{\small Version |1.2f|: addition of the ``change log'' at the end of this user manual, and some minor code improvements not changing neither features nor user interface. @@ -978,7 +982,7 @@ version. These issues are commented upon in the Earlier, version |1.15| introduced the concept of the \hyperref[sec:subdued]{{subdued} math versions.} \par -} + \subsection{Installation} \begin{verbatim} @@ -1942,44 +1946,50 @@ for activation.\footnote{these commands are to be used outside of math mode. last after all packages dealing with math things). \end{framed} -The brace control sequences |\{| and |\}| have their own (supplementary) switch, -which is (even) less activated by default. The reason is that after -\csb{MTexplicitbracesobeymathxx}, they regrettably can not be used anymore as -delimiters: |\big\{| or |\big\}| cease to function and must be replaced by -|\big\lbrace| and |\big\rbrace|. But -\MTmathoperatorsobeymathxx\MTnonlettersobeymathxx\MTexplicitbracesobeymathxx we -can now enjoy $\mathtt{\{a, a>b\}}$, $\mathbf{\{a, a>b\}}$, $\mathsf{\{a, - a>b\}}$, or even $\mathnormalbold{\{a, a>b\}}$.\footnote{this last example - uses the \cs{mathnormalbold} additional alphabet defined by \mst.} - -There is no such restriction with $($, $)$ or the brackets $[$, $]$. When used -as delimiters though, they will become again unreactive to the math alphabets: -the same applies to $<$ and $>$ or to any of the other characters such as the -slashes $/$, $\backslash$, when they are used as delimiters. This is a rather -obvious restriction except possibly for the smallest size delimiters (the -so-called `small variants'), as all other sizes will be anyway absent from the -text fonts. Even the small variants may not be really available in the text -fonts: for example the standard $<$ used as a delimiter is in \LaTeX{} a -\cs{langle}: $\langle$. With standard \LaTeX{} |$\left< x\right>$| gives -$\langle x\rangle$. - - -Actually, \mst does try to pick up most of the `small variants' in the text -font: |$\left<x\right>$| gives $\left<x\right>$ (but |$\left<b\right>$| gives $\left<b\right>$.) If you don't like that use the -option §nosmalldelims§ (it is indeed perhaps a bit strange to have $\left< - x\right>$ next to $\left< X\right>$, again before blaming me, consider using -§nosmalldelims§.) At any rate, whether `small' or not, delimiters are not under -the extended law of math alphabets, this is a general rule of the way \mst -manages these things. - -Examples: |\mathbf{<a,b>}| gives $\mathbf{<a,b>}$. -|\mathbf{\left<a,b\right>}| gives $\mathbf{\left<a,b\right>}$. -|\mathbf{\mathopen{<}a,b \mathclose{>}}| gives $\mathbf{\mathopen{<} a,b - \mathclose{>}}$. -The \LaTeX{} standard behavior for -|\mathbf{\mathopen{<}a,b\mathclose{>}}| is +The braces |\{| and |\}| remain unresponsive to the alphabet changing commands +even after \csb{MTnonlettersobeymathxx}. One must issue also +\csb{MTexplicitbracesobeymathxx}, but it has the disadvantage that |\{| and +|\}| become then unusable as variable-size delimiters: |\big\{| or |\big\}| +create errors and one must make use of |\big\lbrace| and |\big\rbrace|. But +\MTmathoperatorsobeymathxx\MTnonlettersobeymathxx\MTexplicitbracesobeymathxx +one can now enjoy $\mathtt{\{a, a>b\}}$, $\mathbf{\{a, a>b\}}$, +$\mathsf{\{a, a>b\}}$, or even $\mathnormalbold{\{a, a>b\}}$.\footnote{this + last example uses the \cs{mathnormalbold} additional alphabet defined by + \mst.} + +Even with \csb{MTnonlettersobeymathxx}, the parentheses $($, $)$, brackets +$[$, $]$, $<$ and $>$ or the slashes $/$, $\backslash$, \emph{when used as + left/right delimiters}, 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 made the delimiters pick up their glyphs +there. + +But \mst does try to pick up most of the `small variants' of the delimiters +from the text font: |$\left<x\right>$| gives $\left<x\right>$ (but +|$\left<b\right>$| gives $\left<b\right>$.) Notice that this differs from +standard \LaTeX{} for which |$\left< x\right>$| gives $\langle x\rangle$. As +it is perhaps a bit strange to have $\left< x\right>$ next to +$\left< X\right>$ there is option §nosmalldelims§: with this option the +small-sized variants of the delimiters are not modified by \mst (option +§nosmalldelims§ has the side effect that, for the non-delimiter uses of +|\{, \}| +to be \mst-ified it is necessary to issue \csb{MTnonlettersobeymathxx} and +\csb{MTexplicitbracesobeymathxx}.) + +At any rate, +as said above, whether `small' or not, delimiters are unresponsive to +math alphabet commands, due to technical aspects of \TeX, and the way \mst +handles these things. +Examples: +|\mathbf{<a,b>}| gives $\mathbf{<a,b>}$ (brackets do respond), +|\mathbf{\left<a,b\right>}| gives $\mathbf{\left<a,b\right>}$ (brackets do not +respond), |\mathbf{\mathopen{<}a,b \mathclose{>}}| gives +$\mathbf{\mathopen{<} a,b \mathclose{>}}$ (do respond). + \endgroup -$\mathbf{\mathopen{<} a,b \mathclose{>}}$. +The \LaTeX{} standard behavior for |\mathbf{\mathopen{<}a,b\mathclose{>}}| is +$\mathbf{\mathopen{<} a,b \mathclose{>}}$ (neither brackets nor the comma do +respond). @@ -3065,10 +3075,14 @@ treated. Use this option in case of a mono-width \item §nosmalldelims§: this prevents \mst from trying to pick up in the text font the `small variants' of some math delimiters; it only affects what happens when a character such as a left parenthesis $($ or $[$ is used as a - delimiter, and \TeX{} has chosen the smallest sized variant. This has no - impact on what happens when they are not used as delimiters: then, and if not - disabled by the corresponding options, these characters are always picked up - from the text font. + delimiter, and in the event that \TeX{} has chosen the smallest sized + variant. This has no impact on what happens when they are not used as + delimiters: then, and if not disabled by the corresponding options, these + characters are always picked up from the text font.\footnote{in this very + special situation of option nosmalldelims, the braces are an exception to + this rule and they require both of \csb{MTnonlettersobeymathxx} and + \csb{MTexplicitbracesobeymathxx} for being picked up from the text font + when not used as delimiters.} \item §symbolgreek§, §symboldigits§: to let Greek letters (digits) use the Symbol font. \item §symbolre§: replaces \cs{Re} and \cs{Im} by the @@ -3170,6 +3184,11 @@ Numerous examples will be found there:\\ \begin{multicols}{2} \begin{verbatim} +1.3e [2015/09/10] + + * bugfix: under option nosmalldelims, \lbrace and \rbrace were redefined as +math symbols and could not be used as delimiters. + 1.3d [2014/05/23] * new commands \MTstandardgreek and \MTcustomgreek. @@ -3536,7 +3555,7 @@ encodings, Unicode inclusive. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage {mathastext} - [2014/05/23 v1.3d Use the text font in math mode (jfB)] + [2015/09/10 v1.3e 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 @@ -5749,7 +5768,9 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} % |\def\lbrack{[}\def\rbrack{]}| so this fits well with what we do here. % \cs{lparen} and \cs{rparen} are similarly defined in |mathtools|. On the % other hand in |latex.ltx| with |\{| and |\}| are defined (in math mode) in -% terms of the control sequences \cs{lbrace} and \cs{rbrace}. +% terms of the control sequences \cs{lbrace} and \cs{rbrace}. Such control +% sequences can not be simultaneously math symbols and math delimiters, +% thus, this complicates things for the mathastextification. % \begin{macrocode} \ifmst@noparen\else\typeout{** parentheses \string( \string) \string[ \string] and slash \string/} \ifmst@nosmalldelims @@ -5859,13 +5880,13 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} % preserve robustness. % % For |1.3| I make |\lbrace| and |\rbrace| undefined first, else problems -% may arise with some packages. +% may arise with some packages. |1.3e| suppresses under option +% |nosmalldelims| the definitions of |\lbrace| and |\rbrace| as math +% symbols as this bug made |\left\lbrace| cause an error, naturally. % \begin{macrocode} -\let\lbrace\undefined \let\rbrace\undefined \ifmst@nosmalldelims - \DeclareMathSymbol{\lbrace}{\mathopen}{\mst@font@tbu}{123} - \DeclareMathSymbol{\rbrace}{\mathclose}{\mst@font@tbu}{125} \else + \let\lbrace\undefined \let\rbrace\undefined \DeclareMathDelimiter{\lbrace} {\mathopen}{\mst@font@tbu}{123}{largesymbols}{"08} \DeclareMathDelimiter{\rbrace} @@ -6692,7 +6713,7 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} Grave accent \` Left brace \{ Vertical bar \| Right brace \} Tilde \~} -\CheckSum{5184} +\CheckSum{5176} \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 7e0af9f4f90..ccc67d1ff5d 100644 --- a/Master/texmf-dist/source/latex/mathastext/mathastext.ins +++ b/Master/texmf-dist/source/latex/mathastext/mathastext.ins @@ -1,14 +1,14 @@ %%---------------------------------------------------------------- %% Package: mathastext -%% Version: 1.3d (2014/05/23; doc of 2015/02/26) +%% Version: 1.3e (2015/09/10; doc of 2015/09/10) %% License: LPPL 1.3c %% Copyright (C) 2011-2015 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 %%---------------------------------------------------------------- -\def\MSTpkgdate {2014/05/23} -\def\MSTpkgversion {1.3d} +\def\MSTpkgdate {2015/09/10} +\def\MSTpkgversion {1.3e} %% This is a generated file. "tex mathastext.ins" extracts mathastext.sty from %% mathastext.dtx as well as mathastext.tex (for typesetting the documentation), %% and some test files to check the package commands. diff --git a/Master/texmf-dist/tex/latex/mathastext/mathastext.sty b/Master/texmf-dist/tex/latex/mathastext/mathastext.sty index be0d49725a8..abed3fbcfd0 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 %% Use the text font in math mode (jfB) -%% Version: 1.3d (2014/05/23; doc of 2015/02/26) +%% Version: 1.3e (2015/09/10; doc of 2015/09/10) %% License: LPPL 1.3c %% Copyright (C) 2011-2015 Jean-Francois Burnol <jfbu at free dot fr> %% Examples of use of mathastext: @@ -32,7 +32,7 @@ %%---------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} \ProvidesPackage {mathastext} - [2014/05/23 v1.3d Use the text font in math mode (jfB)] + [2015/09/10 v1.3e Use the text font in math mode (jfB)] \newif\ifmst@XeTeX \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname XeTeXinterchartoks\endcsname\relax @@ -1307,11 +1307,9 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} \DeclareMathSymbol{\mid}{\mathrel}{\mst@font@tbu}{124} \mst@do@nonletters\expandafter{\the\mst@do@nonletters \def\mid{\mathrel\mst@varfam@vbar}} -\let\lbrace\undefined \let\rbrace\undefined \ifmst@nosmalldelims - \DeclareMathSymbol{\lbrace}{\mathopen}{\mst@font@tbu}{123} - \DeclareMathSymbol{\rbrace}{\mathclose}{\mst@font@tbu}{125} \else + \let\lbrace\undefined \let\rbrace\undefined \DeclareMathDelimiter{\lbrace} {\mathopen}{\mst@font@tbu}{123}{largesymbols}{"08} \DeclareMathDelimiter{\rbrace} |