diff options
author | Karl Berry <karl@freefriends.org> | 2017-01-28 22:59:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-01-28 22:59:01 +0000 |
commit | 9c982d89c5b240ffd6176bf0b997a80462ad0b58 (patch) | |
tree | 7e7812eeaf1373656cc21c1ac9847c972283d1a9 /Master/texmf-dist/source/latex/breqn/flexisym.dtx | |
parent | f00b1aae5e501fea4099673dfcdfc20c60ec983d (diff) |
breqn (28jan17)
git-svn-id: svn://tug.org/texlive/trunk@43071 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/breqn/flexisym.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/breqn/flexisym.dtx | 152 |
1 files changed, 77 insertions, 75 deletions
diff --git a/Master/texmf-dist/source/latex/breqn/flexisym.dtx b/Master/texmf-dist/source/latex/breqn/flexisym.dtx index a5648c1a682..42188753a26 100644 --- a/Master/texmf-dist/source/latex/breqn/flexisym.dtx +++ b/Master/texmf-dist/source/latex/breqn/flexisym.dtx @@ -3,7 +3,8 @@ % Copyright (C) 1997-2003 by Michael J. Downes % Copyright (C) 2007-2008 by Morten Hoegholm % Copyright (C) 2007-2014 by Lars Madsen -% Copyright (C) 2007-2014 by Will Robertson +% Copyright (C) 2007-2017 by Will Robertson +% Copyright (C) 2010-2017 by Joseph Wright % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -82,7 +83,8 @@ This is a generated file. Copyright (C) 1997-2003 by Michael J. Downes Copyright (C) 2007-2010 by Morten Hoegholm Copyright (C) 2007-2014 by Lars Madsen -Copyright (C) 2007-2014 by Will Robertson +Copyright (C) 2007-2017 by Will Robertson +Copyright (C) 2010-2017 by Joseph Wright This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either @@ -132,7 +134,7 @@ and the derived files %</ignore> %<*driver> \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{flexisym.drv}[2015/08/11 v0.98d flexisym (MH)] +\ProvidesFile{flexisym.drv}[2017/01/27 0.98e flexisym] \documentclass{ltxdoc} \CodelineIndex \EnableCrossrefs @@ -169,13 +171,13 @@ and the derived files % % \StopEventually{} % \part*{Implementation} -% +% % \section{flexisym} % % \begin{macrocode} %<*package> \RequirePackage{expl3}[2009/08/05] -\ProvidesExplPackage{flexisym}{2015/08/11}{0.98d}{Make math characters macros} +\ProvidesExplPackage{flexisym}{2017/01/27}{0.98e}{Make math characters macros} \edef\do{% \noexpand\AtEndOfPackage{% @@ -572,14 +574,14 @@ and the derived files \check@mathfonts \cs_set_eq:NN \text@script@char #1 \cs_set_eq:NN \@sym \text@char@sym - \cs_set_eq:NN \@symtype \use_ii:nn + \cs_set_eq:NN \@symtype \use_ii:nn \cs_set_eq:NN \OrdSymbol \use:n - \cs_set_eq:NN \ifmmode \iftrue + \cs_set_eq:NN \ifmmode \iftrue \everymath{$\use_none:n}%$ \def\mkern{\muskip\z@} \cs_set_eq:NN\mskip\mkern \ifcat\relax\noexpand#2% true if #2 is a cs. - #2% + #2% \else \lccode\z@=\expandafter`\string#2\relax \lowercase{^^@}% @@ -619,13 +621,13 @@ and the derived files % \begin{macrocode} \def\binrel@sym#1#2#3#4{% \xdef\binrel@@##1{% - \ifx\math_sym_Ord:Nn #2 \math_csym_Ord:Nn - \else\ifx\math_sym_Var:Nn#2 \math_csym_Var:Nn - \else\ifx\math_sym_COs:Nn#2 \math_csym_COs:Nn - \else\ifx\math_sym_COi:Nn#2 \math_csym_COi:Nn + \ifx\math_sym_Ord:Nn #2 \math_csym_Ord:Nn + \else\ifx\math_sym_Var:Nn#2 \math_csym_Var:Nn + \else\ifx\math_sym_COs:Nn#2 \math_csym_COs:Nn + \else\ifx\math_sym_COi:Nn#2 \math_csym_COi:Nn \else\ifx\math_sym_Bin:Nn#2 \math_csym_Bin:Nn - \else\ifx\math_sym_Rel:Nn#2 \math_csym_Rel:Nn - \else\ifx\math_sym_Pun:Nn#2 \math_csym_Pun:Nn + \else\ifx\math_sym_Rel:Nn#2 \math_csym_Rel:Nn + \else\ifx\math_sym_Pun:Nn#2 \math_csym_Pun:Nn \else\exp_not:N\@symErr \fi\fi\fi\fi\fi\fi\fi ?{\exp_not:N\OrdSymbol{##1}}}% } @@ -676,14 +678,14 @@ and the derived files \lccode`\.=`\_ \lowercase{\endgroup \def\@sym@ord@a#1.#2.}#3#4\@nil#5#6{% \if D#3 - %\math_ord_delim_aux:Nn #5{#6} + %\math_ord_delim_aux:Nn #5{#6} \math_sd_del_aux:Nnn 0 #5{#6}% check if this works! \else \math_char:NNn 0 #5{#6} - \fi + \fi } \cs_set:Nn \math_ord_delim_aux:Nn { - \math_sd_aux:nn { \math_char:NNn 0 } {#1{#2}} + \math_sd_aux:nn { \math_char:NNn 0 } {#1{#2}} } % \end{macrocode} % @@ -702,7 +704,7 @@ and the derived files % later. [\fn{amsmath.dtx}] % \end{quote} % The problem arises because \pkg{flexisym} sets the mathcode of all -% symbols to $32768$ which is illegal for a \cs{mathchardef}. +% symbols to $32768$ which is illegal for a \cs{mathchardef}. % % We have to remove the assignments from the \cs{AtBeginDocument} hook % as they will cause an error there. @@ -750,13 +752,13 @@ and the derived files % The extra check. Don't do anything if \texttt{-} is math active. % \begin{macrocode} \ifnum\mathcode`\-=32768\space - \else + \else \mathchardef \std@minus \mathcode `\-\relax \fi \fi - \mathcode `\-45\space + \mathcode `\-45\space \mathcode `\/47\space - \mathcode `\:"603A\space\relax + \mathcode `\:"603A\space\relax }% } % \end{macrocode} @@ -801,12 +803,12 @@ and the derived files % Open question on \verb"!" and \verb"?": maybe they % should have type `Pun' instead of `DeR'. Need to % search for uses in math in AMS archives. Or, maybe add a special -% `Clo' type for them: non-extensible closing delimiter. +% `Clo' type for them: non-extensible closing delimiter. % \end{aside} -% -% -% -% Default mathgroup setup. +% +% +% +% Default mathgroup setup. % \changes{v0.3}{2010/07/11}{fixed bugs regarding capital greek % letters in mathpazo and mathptmx} % \begin{macrocode} @@ -843,11 +845,11 @@ and the derived files \cs_gset_eq:NN \mg@ord \mg@bin \cs_gset_eq:NN \mg@cop \mg@del % \end{macrocode} -% -% -% Symbols from the 128-character \fn{cmr} encoding. +% +% +% Symbols from the 128-character \fn{cmr} encoding. % Paren and square bracket delimiters from this encoding are covered -% by the definitions in the \fn{cmex} section, however. +% by the definitions in the \fn{cmex} section, however. % \begin{macrocode} \DeclareFlexSymbol{!} {Pun}{OT1}{21} \DeclareFlexSymbol{+} {Bin}{OT1}{2B} @@ -862,7 +864,7 @@ and the derived files % (variable), to eliminate the glaring inconsistency with lowercase % Greek. (In plain \TeX , \verb"{\bf\Delta}" works, while % \verb"{\bf\delta}" doesn't.) Let us try to make them both -% variable (fonts permitting) instead of nonvariable. +% variable (fonts permitting) instead of nonvariable. % \begin{macrocode} \DeclareFlexSymbol{\Gamma} {Var}{Greek}{00} \DeclareFlexSymbol{\Delta} {Var}{Greek}{01} @@ -876,7 +878,7 @@ and the derived files \DeclareFlexSymbol{\Psi} {Var}{Greek}{09} \DeclareFlexSymbol{\Omega} {Var}{Greek}{0A} % \end{macrocode} -% Decimal digits. +% Decimal digits. % \begin{macrocode} \DeclareFlexSymbol{0}{Var}{digit}{30} \DeclareFlexSymbol{1}{Var}{digit}{31} @@ -889,7 +891,7 @@ and the derived files \DeclareFlexSymbol{8}{Var}{digit}{38} \DeclareFlexSymbol{9}{Var}{digit}{39} % \end{macrocode} -% Symbols from the 128-character \fn{cmmi} encoding. +% Symbols from the 128-character \fn{cmmi} encoding. % \begin{macrocode} \DeclareFlexSymbol{,}{Pun}{OML}{3B} \DeclareFlexSymbol{.}{Ord}{OML}{3A} @@ -897,7 +899,7 @@ and the derived files \DeclareFlexSymbol{<}{Rel}{OML}{3C} \DeclareFlexSymbol{>}{Rel}{OML}{3E} % \end{macrocode} -% To do: make the Var property of lc Greek work properly. +% To do: make the Var property of lc Greek work properly. % \begin{macrocode} \DeclareFlexSymbol{\alpha} {Var}{greek}{0B} \DeclareFlexSymbol{\beta} {Var}{greek}{0C} @@ -932,7 +934,7 @@ and the derived files % Note that in plain \TeX\ \cs{imath} and \cs{jmath} are % not variable-font. But if a \verb"j" changes font to, let's % say, sans serif or calligraphic, a dotless \verb"j" in the same -% context should change font in the same way. +% context should change font in the same way. % \begin{macrocode} \DeclareFlexSymbol{\imath} {Var}{OML}{7B} \DeclareFlexSymbol{\jmath} {Var}{OML}{7C} @@ -1010,14 +1012,14 @@ and the derived files % The \cs{ldotPun} glyph is used in constructing the % \cs{ldots} symbol. It is just a period with a different math % symbol class. \cs{lhookRel} and \cs{rhookRel} are used -% in a similar way for building hooked arrow symbols. +% in a similar way for building hooked arrow symbols. % \begin{macrocode} \DeclareFlexSymbol{\ldotPun}{Pun}{OML}{3A} \def\ldotp{\ldotPun} \DeclareFlexSymbol{\lhookRel}{Rel}{OML}{2C} \DeclareFlexSymbol{\rhookRel}{Rel}{OML}{2D} % \end{macrocode} -% Symbols from the 128-character \fn{cmsy} encoding. +% Symbols from the 128-character \fn{cmsy} encoding. % \begin{macrocode} \DeclareFlexSymbol{*} {Bin}{bin}{03} % \ast \DeclareFlexSymbol{-} {Bin}{bin}{00} @@ -1041,7 +1043,7 @@ and the derived files \DeclareFlexSymbol{\spadesuit} {Ord}{ord}{7F} \DeclareFlexSymbol{\smallint} {COs}{OMS}{73} % \end{macrocode} -% Binary operators. +% Binary operators. % \begin{macrocode} \DeclareFlexSymbol{\bigtriangleup} {Bin}{bin}{34} \DeclareFlexSymbol{\bigtriangledown}{Bin}{bin}{35} @@ -1073,7 +1075,7 @@ and the derived files \DeclareFlexSymbol{\ast} {Bin}{bin}{03} \DeclareFlexSymbol{\times} {Bin}{bin}{02} % \end{macrocode} -% Relation symbols. +% Relation symbols. % \begin{macrocode} \DeclareFlexSymbol{\propto} {Rel}{rel}{2F} \DeclareFlexSymbol{\sqsubseteq} {Rel}{rel}{76} @@ -1115,20 +1117,20 @@ and the derived files % \end{macrocode} % The \cs{notRel} glyph is a special zero-width glyph intended only % for use in constructing negated symbols. \cs{mapstoRel} and -% \cs{cdotPun} have similar but more restricted applications. +% \cs{cdotPun} have similar but more restricted applications. % \begin{macrocode} \DeclareFlexSymbol{\notRel} {Rel}{rel}{36} \DeclareFlexSymbol{\mapstoOrd}{Ord}{OMS}{37} \DeclareFlexSymbol{\cdotOrd} {Ord}{OMS}{01} \cs_set:Npn\cdotp{\mathpunct{\cdotOrd}} % \end{macrocode} -% Symbols from the 128-character \fn{cmex} encoding. +% Symbols from the 128-character \fn{cmex} encoding. % \verb"COs" stands for `cumulative operator -% (sum-like)'. +% (sum-like)'. % \verb"COi" stands for `cumulative operator % (integral-like)'. These typically differ only in the % default placement of limits. \verb"cop" stands for -% `cumulative operator math group'. +% `cumulative operator math group'. % \begin{macrocode} \DeclareFlexSymbol{\coprod} {COs}{cop}{60} \DeclareFlexSymbol{\bigvee} {COs}{cop}{57} @@ -1145,13 +1147,13 @@ and the derived files \DeclareFlexSymbol{\oint} {COi}{cop}{48} \DeclareFlexSymbol{\bigsqcup} {COs}{cop}{46} % \end{macrocode} -% Delimiter symbols. -% \verb"DeL" stands for `delimiter (left)'. -% \verb"DeR" stands for `delimiter (right)'. -% \verb"DeB" stands for `delimiter (bidirectional)'. +% Delimiter symbols. +% \verb"DeL" stands for `delimiter (left)'. +% \verb"DeR" stands for `delimiter (right)'. +% \verb"DeB" stands for `delimiter (bidirectional)'. % The principal encoding point for an extensible delimiter is the % first link in the list of linked sizes as specified in the font metric -% information. +% information. % For a math encoding such as OT1/OML/OMS/OMX where not all sizes of a % given delimiter reside in a given font, the extra encoding point for the % smallest delimiter must be supplied by defining @@ -1181,17 +1183,17 @@ and the derived files \DeclareFlexDelimiter{\vert} {DeB}{del}{0C}{OMS}{6A} % \end{macrocode} % Maybe make the vert bars mathord instead of delimiter, to discourage -% poor usage. +% poor usage. % \begin{macrocode} \DeclareFlexDelimiter{|}{DeB}{del}{0C}{OMS}{6A} \DeclareFlexDelimiter{/}{DeB}{del}{0E}{OML}{3D} % \end{macrocode} -% -% +% +% % These wacky delimiters need to be supported I guess for -% compabitility reasons. +% compabitility reasons. % The DeA delimiter type is a special case used only for these -% arrows. +% arrows. % \begin{macrocode} \DeclareFlexDelimiter{\lmoustache} {DeL}{del}{40}{del}{7A} \DeclareFlexDelimiter{\rmoustache} {DeR}{del}{41}{del}{7B} @@ -1208,18 +1210,18 @@ and the derived files \DeclareFlexDelimiter{\Updownarrow}{DeA}{del}{77}{OMS}{6D} \DeclareFlexDelimiter{\backslash} {DeB}{del}{0F}{OMS}{6E} % \end{macrocode} -% -% -% -% +% +% +% +% % \section{Some compound symbols} -% The following symbols are not robust in standard \LaTeX\ +% The following symbols are not robust in standard \LaTeX\ % because they use \verb"#" or \cs{mathpalette} (which is not % robust and contains a \verb"#" in its expansion): \cs{angle}, -% \cs{cong}, \cs{notin}, \cs{rightleftharpoons}. -% +% \cs{cong}, \cs{notin}, \cs{rightleftharpoons}. +% % In this definition of \cs{hbar}, the symbol is cobbled together -% from a math italic h and the cmr overbar accent glyph. +% from a math italic h and the cmr overbar accent glyph. % \begin{macrocode} \DeclareFlexSymbol{\hbarOrd}{Ord}{OT1}{16} \DeclareFlexCompoundSymbol{\hbar}{Ord}{\hbarOrd\mkern-9mu h} @@ -1233,7 +1235,7 @@ and the derived files \DeclareFlexCompoundSymbol{\surd}{Ord}{\mathop{\surdOrd}} % \end{macrocode} % As shown in this definition of \cs{angle}, rule dimens are not -% allowed to use math-units, unfortunately. +% allowed to use math-units, unfortunately. % \begin{macrocode} \DeclareFlexCompoundSymbol{\angle}{Ord}{% \vbox{\ialign{% @@ -1245,11 +1247,11 @@ and the derived files } % \end{macrocode} % The \cs{not} function, which is defined in the \pkg{flexisym} -% package, requires a suitably defined \cs{notRel} symbol. +% package, requires a suitably defined \cs{notRel} symbol. % \begin{macrocode} \DeclareFlexCompoundSymbol{\neq}{Rel}{\not{=}} % \end{macrocode} -% . +% . % \begin{macrocode} \DeclareFlexCompoundSymbol{\mapsto}{Rel}{\mapstoOrd\rightarrow} % \end{macrocode} @@ -1257,14 +1259,14 @@ and the derived files % construction on the math axis, unlike \cs{buildrel} where the base % symbol remains at its normal altitude. Furthermore, % \cs{@vereq} leaves the math style of the top symbol as given -% instead of downsizing to scriptstyle. +% instead of downsizing to scriptstyle. % \begin{macrocode} \DeclareFlexCompoundSymbol{\cong}{Rel}{\mathpalette\@vereq\sim} % \end{macrocode} % The \cs{m@th} in the \fn{fontmath.ltx} definition of % \cs{notin} is superfluous unless \cs{c@ncel} doesn't include % it (which was perhaps true in an older version of -% \fn{plain.tex}?). +% \fn{plain.tex}?). % \begin{macrocode} \providecommand*\joinord{} %<cmbase|mathptmx>\renewcommand*\joinord{\mkern-3mu } @@ -1284,7 +1286,7 @@ and the derived files \DeclareFlexCompoundSymbol{\longleftrightarrow}{Rel}{\leftarrow\joinord\rightarrow} \DeclareFlexCompoundSymbol{\Longleftrightarrow}{Rel}{\Leftarrow\joinord\Rightarrow} % \end{macrocode} -% Here is what you get from the old definition of \cs{iff}. +% Here is what you get from the old definition of \cs{iff}. % \begin{verbatim} % \glue 2.77771 plus 2.77771 % \glue(\thickmuskip) 2.77771 plus 2.77771 @@ -1298,13 +1300,13 @@ and the derived files % \end{verbatim} % Looks like it could be simplified slightly. But it's not so % easy as it looks to do it without screwing up the line breaking -% possibilities. +% possibilities. % \begin{macrocode} \renewcommand*\iff{% \mskip\thickmuskip\Longleftrightarrow\mskip\thickmuskip } % \end{macrocode} -% Some dotly symbols. +% Some dotly symbols. % \begin{macrocode} \DeclareFlexCompoundSymbol{\cdots}{Inn}{\cdotp\cdotp\cdotp}% \DeclareFlexCompoundSymbol{\vdots}{Ord}{% @@ -1316,7 +1318,7 @@ and the derived files \raise4\p@\hbox{.}\mkern2mu\raise\p@\hbox{.}\mkern1mu% } % \end{macrocode} -% . +% . % \begin{macrocode} \def\relbar{\begingroup \def\smash@{tb}% in case amsmath is loaded \mathpalette\mathsm@sh{\mathchar"200 }\endgroup} @@ -1342,7 +1344,7 @@ and the derived files % \cs{to} for \cs{rightarrow} are defined in % \pkg{flexisym} with \cs{def} instead of \cs{let}, for % slower execution speed but smaller chance of synchronization -% problems. +% problems. % % % @@ -1466,9 +1468,9 @@ and the derived files \DeclareFlexSymbol{\Subset} {Rel}{MSA}{62} \DeclareFlexSymbol{\Supset} {Rel}{MSA}{63} \DeclareFlexSymbol{\Cup} {Bin}{MSA}{64} - \let\doublecup\Cup + \let\doublecup\Cup \DeclareFlexSymbol{\Cap} {Bin}{MSA}{65} - \let\doublecap\Cap + \let\doublecap\Cap \DeclareFlexSymbol{\curlywedge} {Bin}{MSA}{66} \DeclareFlexSymbol{\curlyvee} {Bin}{MSA}{67} \DeclareFlexSymbol{\leftthreetimes} {Bin}{MSA}{68} @@ -1478,9 +1480,9 @@ and the derived files \DeclareFlexSymbol{\bumpeq} {Rel}{MSA}{6C} \DeclareFlexSymbol{\Bumpeq} {Rel}{MSA}{6D} \DeclareFlexSymbol{\lll} {Rel}{MSA}{6E} - \let\llless\lll + \let\llless\lll \DeclareFlexSymbol{\ggg} {Rel}{MSA}{6F} - \let\gggtr\ggg + \let\gggtr\ggg \DeclareFlexSymbol{\circledS} {Ord}{MSA}{73} \DeclareFlexSymbol{\pitchfork} {Rel}{MSA}{74} \DeclareFlexSymbol{\dotplus} {Bin}{MSA}{75} |