diff options
author | Karl Berry <karl@freefriends.org> | 2022-10-18 20:55:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-10-18 20:55:16 +0000 |
commit | ae700fb14d17b4bbf3394af2a4a58b659561b53c (patch) | |
tree | 1b9ab62fa3d56edeca6229bc1a047c3ff798e856 | |
parent | 3133b2f6f5ab9b219387d63f9fc31d854b03306f (diff) |
mismath (17oct22)
git-svn-id: svn://tug.org/texlive/trunk@64744 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/mismath/mismath.pdf | bin | 531103 -> 360639 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/mismath/mismath.dtx | 167 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/mismath/mismath.ins | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mismath/mismath.sty | 71 |
4 files changed, 132 insertions, 110 deletions
diff --git a/Master/texmf-dist/doc/latex/mismath/mismath.pdf b/Master/texmf-dist/doc/latex/mismath/mismath.pdf Binary files differindex 236b631abfd..24612b9bd94 100644 --- a/Master/texmf-dist/doc/latex/mismath/mismath.pdf +++ b/Master/texmf-dist/doc/latex/mismath/mismath.pdf diff --git a/Master/texmf-dist/source/latex/mismath/mismath.dtx b/Master/texmf-dist/source/latex/mismath/mismath.dtx index a2c59ce7e8f..1475b084fa3 100644 --- a/Master/texmf-dist/source/latex/mismath/mismath.dtx +++ b/Master/texmf-dist/source/latex/mismath/mismath.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2019-2020 by Antoine Missier <antoine.missier@ac-toulouse.fr> +% Copyright (C) 2019-2022 by Antoine Missier <antoine.missier@ac-toulouse.fr> % % This file may be distributed and/or modified under the conditions of % the LaTeX Project Public License, either version 1.3 of this license @@ -20,23 +20,24 @@ %<*package> \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{mismath} - [2020/11/15 v1.8 .dtx mismath file] + [2022/10/17 v1.9 .dtx mismath file] %</package> %<*driver> \documentclass{ltxdoc} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} -\usepackage{lmodern} +\usepackage{lmodern,mathpazo} +\DeclareTextFontCommand{\extrafont}{\fontfamily{cmr}\selectfont} \usepackage{mismath} \usepackage{amssymb} \usepackage{multicol} %\enumber \inumber -\pinumber +\pinumber[Symbol] % for an example in this doc we substitute [ and ] by \OB and \CB -\DeclareMathSymbol{\OB}\mathclose{UpSh}{093} -\DeclareMathSymbol{\CB}\mathopen{UpSh}{091} +\DeclareMathSymbol{\OB}\mathclose{operators}{093} +\DeclareMathSymbol{\CB}\mathopen{operators}{091} \DisableCrossrefs %\CodelineIndex @@ -58,7 +59,7 @@ %</driver> % \fi % -%% \CheckSum{419} +%% \CheckSum{428} % % \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 @@ -96,6 +97,11 @@ % \changes{v1.7}{2019/12/27}{Adding a table of contents to the documentation} % \changes{v1.8}{2020/11/15}{Incompatibility and solution mentioned when using i % with accent in beamer titles small changes in documentation} +% \changes{v1.9}{2020/10/17}{UpSh replaced by operators font in math mode, +% PackageWarning "command exist" replaced by PackageWarningNoLine, +% and also used by commands with arguments, +% medspace replaced by thickspace in the \bslash lfrac command, +% changing font in documentation} % % \GetFileInfo{mismath.sty} % @@ -103,7 +109,7 @@ % corresponds to \textsf{mismath}~\fileversion, dated \filedate. % Thanks to François Bastouil for help in English translation.}} % \author{Antoine Missier \\ \texttt{antoine.missier@ac-toulouse.fr}} -% \date{November 15, 2020} +% \date{October 17, 2022} % % \maketitle % \tableofcontents @@ -112,7 +118,7 @@ % % According to the International Standards ISO~31-0:1992 to ISO~31-13:1992, % superseded by ISO~80000-2:2009, mathematical constants $\e$, $\i$, $\pi$ -% sould be typeset in upright shape and not in italic (sloping shape) like +% should be typeset in upright shape and not in italic (sloping shape) like % variables (see~\cite{TYPMA}~\cite{NIST}~\cite{ICTNS}~\cite{ISO}). % This package provides some tools to achieve this (automatically). % @@ -133,7 +139,7 @@ % \begin{itemize} % \item some standard operator names, % \item a few useful aliases, -% \item improving some spacings in mathematical formulas, +% \item improving some spacing in mathematical formulas, % \item systems of equations and small matrices, % \item displaymath in double columns for long calculation. % \end{itemize} @@ -145,7 +151,7 @@ % compilation will produce a warning message and \textsf{mismath} definition % will simply be ignored. To keep \textsf{mismath} command, % either load \textsf{mismath} before the other package -% with which it is in conflict for the name of the command +% with which it is in conflict for the name of that command % (assuming the other package supports it), or use % |\let\|\meta{command}|\relax| before loading \textsf{mismath}. % @@ -159,7 +165,7 @@ % % Another package, % \textsf{mathtools} by Morten Høgholm and Lars Madsen~\cite{TOOL} -% is also loaded. It provides many usefull macros. +% is also loaded. It provides many useful macros. % % \medskip % A recommendation, seldom observed, is to typeset uppercase Greek letters in italic shape @@ -176,6 +182,7 @@ % \subsection{Mathematical constants} % % \DescribeMacro{\mathup} +% \DescribeMacro{\e} \DescribeMacro{\i} \DescribeMacro{\j} % As for classic functions identifiers, \emph{predefined} mathematical constants % should be typeset in upright shape (generally in roman family), % even if this practice is not really common and tedious @@ -188,13 +195,12 @@ % produces a font with serif in \textsf{beamer}. This problem is solved by % using \texttt{\bslash mathup} instead % of \texttt{\bslash mathrm}.}), -% \DescribeMacro{\e} \DescribeMacro{\i} \DescribeMacro{\j} % the package provides |\e| command for the base of the natural logarithm % and |\i| or |\j| for imaginary numbers. % Let's notice that |\i| and |\j| already exist in \LaTeX: -% using in LR mode, they produce ``\i'' and ``\j'' without the point +% using in LR mode, they produce ``\extrafont{\i,\ \j}'' without the point % so you can place accents on them, and in mathematical mode they produce -% ``Latex warning: Command invalid in math mode''. +% ``LaTeX Warning: Command |\i| invalid in math mode on input line \meta{line}''. % Redefining |\i| and |\j| concerns only mathematical mode\footnote{Due to this % \texttt{\bslash i} command redefinition, there is an incompatibility with % \textsf{beamer} when using i with accents in beamer titles. @@ -223,9 +229,10 @@ % \DescribeMacro{\pinumber\oarg{font}} % Mathematical constant $\pi$ should also be typeset in upright shape % (see~\cite{ICTNS} and~\cite{ISO}), which differs from italicized $\itpi$. -% This recommendation is even less observed than the one concerning $\e$ and $\i$~\cite{TYPMA}. +% This recommendation is even less observed than the one concerning +% $\e$ and $\i$~\cite{TYPMA}. % The \textsf{upgreek} package by Walter Schmidt~\cite{GREEK} makes it possible to typeset -% greek letters in upright font by using commands such as |\upalpha|, |\upbeta|,\ldots\@ +% Greek letters in upright font by using commands such as |\upalpha|, |\upbeta|, \ldots\@ % To avoid typing a lot of |\uppi|, we provide the |\pinumber| macro, % which has to be put in the preamble. This command loads the \textsf{upgreek} package % with an optional \meta{font} argument: \texttt{Symbol} (by default), \texttt{Euler} @@ -258,7 +265,8 @@ % In \textsf{mismath}, \textsf{esvect} is loaded with the option \texttt{b}: % |\vect{AB}| gives $\vect{AB}$. % To choose another type of arrow, \textsf{esvect} must be called -% with the required option \emph{before} \textsf{mismath}, for instance |\usepackage[d]{esvect}| +% with the required option \emph{before} \textsf{mismath}, +% for instance |\usepackage[d]{esvect}| % will give the arrows produced by default in~\cite{VECT}. % % \medskip @@ -303,7 +311,7 @@ % \DescribeMacro{\hvect} % When vectors with arrows are typeset side by side, % arrows can be set up a bit higher (with a vertical phantom box containing $h$) -% to avoid inelegants effects: +% to avoid inelegant effects: % \begin{itemize} % \item $\vect{AB}=\vect{u}+ \vect{AC}$ is less than $\vect{AB}=\hvect{u}+ \vect{AC}$, % obtained with |\hvect{u}|; @@ -328,8 +336,8 @@ % The norm of a vector is classically produced by the delimiters |\lVert| and |\rVert| % (rather than \texttt{\bslash}$\mid$) or |\left\Vert| and |\right\Vert| % for delimiters adapting to the content. Unfortunately, these delimiters -% are always vertically centred, relatively to the middle of the base line, -% whereas vectors with arrows are asymetrics objects, +% are always vertically centered, relatively to the middle of the base line, +% whereas vectors with arrows are asymmetric objects, % the height above the middle of the base line % being superior to the depth under it. % The code |$\norm{\vec{h}}$| raises the double bar to produce $\norm{\vec{h}}$. @@ -429,7 +437,7 @@ % \DescribeMacro{\oldRe} \DescribeMacro{\oldIm} % The |\Re| and |\Im| macros already existed, to refer to real and imaginary part % of a complex number, producing outdated symbols $\oldRe$ and $\oldIm$. -% They have been redefined according to actual use, as mentionned in the above table, +% They have been redefined according to actual use, as mentioned in the above table, % but it's still possible to get the old symbols with |\oldRe| and |\oldIm|. % % \medskip @@ -455,7 +463,7 @@ % that classic sets of numbers are typeset in bold roman: % $\R, \C, \Z, \N, \Q$, % whereas ``openwork'' letters ($\mathbb{R}, \mathbb{Z}, \ldots$) -% are reserved for writing at blakboard~\cite{LSHORT}; +% are reserved for writing at blackboard~\cite{LSHORT}; % and likewise to designate a field: $\F$ or $\K$ (Körper in German). % We get these symbols with the macros: % \begin{center} @@ -480,19 +488,19 @@ % they are placed on the right, as subscript or exponent. Compare: % $\upzeta(s)=\sum_{n=1}^{\infty }\frac{1}{n^s}$ with % \[\upzeta(s)=\sum_{n=1}^{\infty}\frac{1}{n^s}.\] -% \DescribeMacro{\dlim} \DescribeMacro{\dsum} \DescribeMacro{\dprod} -% \DescribeMacro{\dcup} \DescribeMacro{\dcap} % With in-line math mode, displaymath behavior can be forced with |\displaystyle| % or its alias |\ds|, but then, all the rest of the current mathematical % environment will be set in displaymath mode too (in the previous example, % the fraction will be expanded). -% Just like the \textsf{amsmath} command |\dfrac| +% \DescribeMacro{\dlim} \DescribeMacro{\dsum} \DescribeMacro{\dprod} +% \DescribeMacro{\dcup} \DescribeMacro{\dcap} +% Just as the \textsf{amsmath} command |\dfrac| % only transforms the required fraction in display style, we can limit % display style effect to the affected symbol, by using the following macros: % |\dlim|, |\dsum|, |\dprod|, |\dcup|, |\dcap|. % So |$\dlim_{x\to +\infty}\frac{1}{x}$| gives $\dlim_{x \to +\infty}\frac{1}{x}$. % -% \medskip +% \bigskip % \DescribeMacro{\lbar} \DescribeMacro{\hlbar} % Large bars over expressions are obtained with |\overline| % or, shorter, its alias |\lbar|, to get for instance $\lbar{z_1z_2}$. @@ -535,11 +543,11 @@ % \DescribeMacro{\iif} % |\iif| is an alias for ``\iif'', to be used in text mode. % -% \subsection{Improving some spacings in mathematical formulas} +% \subsection{Improving some spacing in mathematical formulas} % % \DescribeMacro{\mul} % The multiplication symbol obtained with |\times| produces the same spacing than addition -% or substraction operators, whereas division obtained with $/$ is closer to its arguments. +% or subtraction operators, whereas division obtained with $/$ is closer to its arguments. % This actually hides the priority of the multiplication on $+$ and $-$. % This is why we provide the |\mul| macro, behaving like $/$ % (ordinary symbol) and leaving less space around than |\times|: @@ -549,7 +557,7 @@ % \end{center} % % When using |\mul| before an operator name -% or a |\left...\right| structure, additionnal spacing occur on the right side of |\mul|. +% or a |\left...\right| structure, additional spacing occur on the right side of |\mul|. % A solution to get the same amount of space on the two sides of |\mul|, is to % enclose the operator name (or the structure) with brackets: % \begin{center} @@ -601,7 +609,7 @@ % % \DescribeMacro{\lfrac} % This macro behaves like |\frac| -% but with medium spaces around the arguments, +% but with thick spaces around the arguments, % so the corresponding fraction bar is perceptibly a little bit longer:\\ % \begin{minipage}[t]{8cm} % \begin{verbatim} @@ -665,7 +673,7 @@ % By default, a system is written like an \texttt{array} environment with only one column, % left aligned. The environment has an optional argument to create several columns, % specifying their alignment, with the same syntax than the \texttt{array} environment of -% \LaTeX : |\begin{system}[cl]| produces a two-column system, the first one being centred, +% \LaTeX : |\begin{system}[cl]| produces a two-column system, the first one being centered, % the second being left aligned, such as in the following example:\\ % \begin{minipage}[t]{7cm} % \begin{verbatim} @@ -685,7 +693,7 @@ % This spacing may be changed by typing |\renewcommand{\systemstretch}|\marg{stretch}, % inside the current mathematical environment (for a local change) or outside % (for a global change). By default, stretch's value is 1.2. -% In addition we can use a carriage return with a spacing option such +% In addition we can use the end of line with a spacing option such % as it has been done above with |\\[1ex]|. % % Another example with |\begin{system}[rl@{\quad}l]|\footnote{\texttt{@\{\ldots\}} @@ -745,7 +753,7 @@ % % \DescribeMacro{\changecol} % The |\changecol| macro causes a change of column; -% aligment is produced using the classic delimiters |&| and |\\|. +% alignment is produced using the classic delimiters |&| and |\\|. % % \begin{verbatim} %\begin{mathcols} @@ -778,7 +786,7 @@ % % \medskip % The three following internal commands are meta commands for a -% conditional macro definition with warning message if the macro already exists. +% conditional macro definition with a warning message if the macro already exists. % \DescribeMacro{\bslash} % The |\bslash| macro used inside |\@mwarning| comes from \textsf{doc.sty} package % by Frank Mittelbach. It can also be used in other documents instead of |\textbackslash| @@ -786,16 +794,15 @@ % \begin{macrocode} {\catcode`\|=\z@ \catcode`\\=12 |gdef|bslash{\}} % the \bslash command \newcommand\@mwarning[1]{ - \PackageWarning{mismath}{ - Command \bslash #1 already exist and will not be redefined - } + \PackageWarningNoLine{mismath}{ + Command \bslash #1 already exist and will not be redefined} } \newcommand\@mmacro[2]{ \@ifundefined{#1}{ \expandafter\def\csname #1\endcsname{#2} }{\@mwarning{#1}} } -\newcommand\@moperator[3][]{% this macro is ugly, TODO: by default #1=#3 +\newcommand\@moperator[3][]{% this macro is ugly, by default #1=#3 \ifthenelse{\equal{#1}{}}{ \@ifundefined{#3}{ \DeclareMathOperator{#2}{#3} @@ -804,17 +811,17 @@ \@ifundefined{#1}{ \DeclareMathOperator{#2}{#3} }{\@mwarning{#1}} - } + } } - + % \end{macrocode} % -% To work correctly with the \textsf{beamer} package, we did not use |\mathrm| -% but |\mathup| (based on |\operatorfont| from the \textsf{mathopn} package) -% to produce the correct upright shape font. +% To produce the correct upright shape font even when working +% with the \textsf{beamer} package, we did not use |\mathrm| +% but |\mathup| (based on |\operatorfont| from the \textsf{amsopn} package). % This command works also fine with other sans serif fonts like \textsf{cmbright}. -% Moreover for \textsf{beamer}, |\enumber| must use -% the family default font defined by the \textsf{beamer} package (sans serif), +% Moreover for \textsf{beamer}, |\enumber| must be typeset in +% the family default font (sans serif), % therefore the |\AtBeginDocument| inside the macro (otherwise it has no effect). % The same holds for |\inumber| and |\jnumber|. % @@ -827,24 +834,18 @@ \@mmacro{e}{\mathup{e}} \AtBeginDocument{\let\oldi\i \let\oldj\j \renewcommand{\i}{\TextOrMath{\oldi}{\mathup{i}}} - \renewcommand{\j}{\TextOrMath{\oldj}{\mathup{j}}} -} + \renewcommand{\j}{\TextOrMath{\oldj}{\mathup{j}}} } -\DeclareSymbolFont{UpSh}{\encodingdefault}{\familydefault}{m}{n} \newcommand{\enumber}{ - \AtBeginDocument{\DeclareMathSymbol{e}\mathalpha{UpSh}{`e}} -} + \AtBeginDocument{\DeclareMathSymbol{e}\mathalpha{operators}{`e}} } \newcommand{\inumber}{ - \AtBeginDocument{\DeclareMathSymbol{i}\mathalpha{UpSh}{`i}} -} + \AtBeginDocument{\DeclareMathSymbol{i}\mathalpha{operators}{`i}} } \newcommand{\jnumber}{ - \AtBeginDocument{\DeclareMathSymbol{j}\mathalpha{UpSh}{`j}} -} + \AtBeginDocument{\DeclareMathSymbol{j}\mathalpha{operators}{`j}} } \newcommand*{\pinumber}[1][Symbol]{ \@ifpackageloaded{upgreek}{}{\usepackage[#1]{upgreek}} \let\itpi\pi - \renewcommand{\pi}{\uppi} -} + \renewcommand{\pi}{\uppi} } \newboolean{arrowvect} \setboolean{arrowvect}{true} @@ -865,10 +866,11 @@ \newcommand*{\@@@norm}[1]{ \mbox{\tiny\raisebox{1pt}{$\Vert$}} #1 \mbox{\tiny\raisebox{1pt}{$\Vert$}} } -\providecommand*{\norm}[1]{ - \mathchoice{\@norm{#1}}{\@norm{#1}}{\@@norm{#1}}{\@@@norm{#1}} } +\@ifundefined{norm}{\providecommand*{\norm}[1]{ + \mathchoice{\@norm{#1}}{\@norm{#1}}{\@@norm{#1}}{\@@@norm{#1}} }}{ + \@mwarning{norm} } -\newcommand{\di}{\mathop{}\!\mathup{d}} +\@mmacro{di}{\mathop{}\!\mathup{d}} \newcommand\probastyle{} \let\Par\P % end of paragraph symbol \renewcommand{\P}{\operatorname{\probastyle{P}}} @@ -876,8 +878,8 @@ \@mmacro{V}{\operatorname{\probastyle{V}}} \newcommand{\PEupright}{ \AtBeginDocument{% necessary for working with beamer - \DeclareMathSymbol{P}\mathalpha{UpSh}{`P} - \DeclareMathSymbol{E}\mathalpha{UpSh}{`E} + \DeclareMathSymbol{P}\mathalpha{operators}{`P} + \DeclareMathSymbol{E}\mathalpha{operators}{`E} } } @@ -922,7 +924,7 @@ \@moperator[bigo]{\bigo}{O} \@moperator[lito]{\lito}{o} -\newcommand{\mathset}{\mathbf} +\@mmacro{mathset}{\mathbf} \@mmacro{R}{\ensuremath{\mathset{R}}\xspace} \@mmacro{C}{\ensuremath{\mathset{C}}\xspace} \@mmacro{N}{\ensuremath{\mathset{N}}\xspace} @@ -937,8 +939,11 @@ \@mmacro{dprod}{\prod\limits} \@mmacro{dcup}{\bigcup\limits} \@mmacro{dcap}{\bigcap\limits} + \@mmacro{lbar}{\overline} -\providecommand*{\hlbar}[1]{\overline{\vphantom{h}#1}} +\@ifundefined{hlbar}{ + \providecommand*{\hlbar}[1]{\overline{\vphantom{h}#1}}}{ + \@mwarning{hlbar} } \@mmacro{eqdef}{\stackrel{\mathup{def}}{=}} \@mmacro{unbr}{\underbrace} \@mmacro{iif}{if and only if\xspace} @@ -949,13 +954,23 @@ % Without |\mbox{}|, the space produced by |\| would be suppressed in tables. % \medskip % \begin{macrocode} -\providecommand*{\txt}[1]{\quad\text{#1}\quad} -\providecommand*{\paren}[1]{\mathopen{\left(#1\right)}} -\providecommand*{\pow}[2]{\left( #1 \right)^{\!#2}} -\providecommand*{\abs}[1]{\left\vert#1\right\vert} -\providecommand*{\lfrac}[2]{\frac{\:#1\:}{\:#2\:}} -\DeclareMathSymbol{]}\mathord{UpSh}{093} % originally \mathclose -\DeclareMathSymbol{[}\mathord{UpSh}{091} % originally \mathopen +\@ifundefined{txt}{ + \providecommand*{\txt}[1]{\quad\text{#1}\quad} }{ + \@mwarning{txt} } +\@ifundefined{paren}{ + \providecommand*{\paren}[1]{\mathopen{\left(#1\right)}} }{ + \@mwarning{paren} } +\@ifundefined{pow}{ + \providecommand*{\pow}[2]{\left( #1 \right)^{\!#2}} }{ + \@mwarning{pow} } +\@ifundefined{abs}{ + \providecommand*{\abs}[1]{\left\vert#1\right\vert} }{ + \@mwarning{abs} } +\@ifundefined{lfrac}{ + \providecommand*{\lfrac}[2]{\frac{\;#1\;}{\;#2\;}} }{ + \@mwarning{lfrac} } +\DeclareMathSymbol{]}\mathord{operators}{093} % originally \mathclose +\DeclareMathSymbol{[}\mathord{operators}{091} % originally \mathopen \newcommand{\systemstretch}{1.2} \newcommand{\systemsep}{\medspace} @@ -984,15 +999,15 @@ \begin{math}\begin{aligned}\displaystyle } % \end{macrocode} -% +% \bigskip % \begin{thebibliography}{17} % \bibitem{TYPMA} \emph{Typesetting mathematics for science and technology according % to ISO 31/XI}, Claudio Beccari, TUGboat Volume 18 (1997), No.~1. % \bibitem{NIST} \emph{Typefaces for Symbols in Scientific Manuscripts}.\\ % https://www.physics.nist.gov/cuu/pdf/typefaces.pdf. % \bibitem{ICTNS} \emph{On the Use of Italic and up Fonts for Symbols in Scientific Text}, -% I.M.~Mills and W.V.~Metanomski, ICTNS (Interdivisional Committee on Nomenclature and Symbols), -% dec 1999. +% I.M.~Mills and W.V.~Metanomski, ICTNS (Interdivisional Committee +% on Nomenclature and Symbols), dec 1999. % \bibitem{ISO} \emph{ISO 80000-2}. https://en.wikipedia.org/wiki/ISO\_80000-2 % \bibitem{AMS} \emph{The \textsf{amsmath} package}. Frank Mittelbach, Rainer Schöpf, % Michael Downes, Davis M.~Jones, David Carlisle, CTAN, v2.17b 2018/12/01. @@ -1005,13 +1020,13 @@ % \bibitem{FIXM} \emph{The \textsf{fixmath} package for \LaTeXe}, Walter Schmidt, % CTAN, v0.9 2000/04/11. % \bibitem{ISOM} \emph{\textsf{isomath}. Mathematical style for science and technology}. -% Günter Milde, CTAN, v0.6.1 04/06/2012. +% Günter Milde, CTAN, v0.6.1 2012/09/04. % \bibitem{INT} \emph{The \textsf{interval} package}. Lars Madsen, CTAN, % v0.3 2014/08/04. % \bibitem{SYST} \emph{L'extension pour \TeX\ et \LaTeX\ \textsf{systeme}}. % Christian Tellechea, CTAN v0.32 2019/01/13. % \bibitem{SPAL} \emph{The \textsf{spalign} package}. Joseph Rabinoff, CTAN, 2016/10/05. -% \bibitem{FR} \emph{L'extension \textsf{frenchmath}}. Antoine Missier, CTAN, v1.5 2020/11/02. +% \bibitem{FR} \emph{L'extension \textsf{frenchmath}}. Antoine Missier, CTAN, v1.6 2022/10/16. % \bibitem{LSHORT} \emph{The Not So Short Introduction to \LaTeXe}. \textsf{lshort} package by % Tobias Oetiker, Hubert Partl, Irene Hyna and Elisabeth Schlegl, CTAN, v6.2 2018/02/28. % \bibitem{COMP} \emph{The \LaTeX\ Companion}. Frank Mittelbach, Michel Goossens, diff --git a/Master/texmf-dist/source/latex/mismath/mismath.ins b/Master/texmf-dist/source/latex/mismath/mismath.ins index e1eb94888ba..8985defb610 100644 --- a/Master/texmf-dist/source/latex/mismath/mismath.ins +++ b/Master/texmf-dist/source/latex/mismath/mismath.ins @@ -1,5 +1,5 @@ %% -%% Copyright (C) 2019-2020 by Antoine Missier <antoine.missier@ac-toulouse.fr> +%% Copyright (C) 2019-2022 by Antoine Missier <antoine.missier@ac-toulouse.fr> %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3 of this license @@ -21,7 +21,7 @@ This is a generated file. -Copyright (C) 2019-2020 by Antoine Missier <antoine.missier@ac-toulouse.fr> +Copyright (C) 2019-2022 by Antoine Missier <antoine.missier@ac-toulouse.fr> This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license diff --git a/Master/texmf-dist/tex/latex/mismath/mismath.sty b/Master/texmf-dist/tex/latex/mismath/mismath.sty index c445f20b497..52318fb5531 100644 --- a/Master/texmf-dist/tex/latex/mismath/mismath.sty +++ b/Master/texmf-dist/tex/latex/mismath/mismath.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2019-2020 by Antoine Missier <antoine.missier@ac-toulouse.fr> +%% Copyright (C) 2019-2022 by Antoine Missier <antoine.missier@ac-toulouse.fr> %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3 of this license @@ -22,8 +22,8 @@ %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{mismath} - [2020/11/15 v1.8 .dtx mismath file] -%% \CheckSum{419} + [2022/10/17 v1.9 .dtx mismath file] +%% \CheckSum{428} \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{amsmath}} @@ -35,16 +35,15 @@ \RequirePackage{mathtools} {\catcode`\|=\z@ \catcode`\\=12 |gdef|bslash{\}} % the \bslash command \newcommand\@mwarning[1]{ - \PackageWarning{mismath}{ - Command \bslash #1 already exist and will not be redefined - } + \PackageWarningNoLine{mismath}{ + Command \bslash #1 already exist and will not be redefined} } \newcommand\@mmacro[2]{ \@ifundefined{#1}{ \expandafter\def\csname #1\endcsname{#2} }{\@mwarning{#1}} } -\newcommand\@moperator[3][]{% this macro is ugly, TODO: by default #1=#3 +\newcommand\@moperator[3][]{% this macro is ugly, by default #1=#3 \ifthenelse{\equal{#1}{}}{ \@ifundefined{#3}{ \DeclareMathOperator{#2}{#3} @@ -60,24 +59,18 @@ \@mmacro{e}{\mathup{e}} \AtBeginDocument{\let\oldi\i \let\oldj\j \renewcommand{\i}{\TextOrMath{\oldi}{\mathup{i}}} - \renewcommand{\j}{\TextOrMath{\oldj}{\mathup{j}}} -} + \renewcommand{\j}{\TextOrMath{\oldj}{\mathup{j}}} } -\DeclareSymbolFont{UpSh}{\encodingdefault}{\familydefault}{m}{n} \newcommand{\enumber}{ - \AtBeginDocument{\DeclareMathSymbol{e}\mathalpha{UpSh}{`e}} -} + \AtBeginDocument{\DeclareMathSymbol{e}\mathalpha{operators}{`e}} } \newcommand{\inumber}{ - \AtBeginDocument{\DeclareMathSymbol{i}\mathalpha{UpSh}{`i}} -} + \AtBeginDocument{\DeclareMathSymbol{i}\mathalpha{operators}{`i}} } \newcommand{\jnumber}{ - \AtBeginDocument{\DeclareMathSymbol{j}\mathalpha{UpSh}{`j}} -} + \AtBeginDocument{\DeclareMathSymbol{j}\mathalpha{operators}{`j}} } \newcommand*{\pinumber}[1][Symbol]{ \@ifpackageloaded{upgreek}{}{\usepackage[#1]{upgreek}} \let\itpi\pi - \renewcommand{\pi}{\uppi} -} + \renewcommand{\pi}{\uppi} } \newboolean{arrowvect} \setboolean{arrowvect}{true} @@ -97,10 +90,11 @@ \newcommand*{\@@@norm}[1]{ \mbox{\tiny\raisebox{1pt}{$\Vert$}} #1 \mbox{\tiny\raisebox{1pt}{$\Vert$}} } -\providecommand*{\norm}[1]{ - \mathchoice{\@norm{#1}}{\@norm{#1}}{\@@norm{#1}}{\@@@norm{#1}} } +\@ifundefined{norm}{\providecommand*{\norm}[1]{ + \mathchoice{\@norm{#1}}{\@norm{#1}}{\@@norm{#1}}{\@@@norm{#1}} }}{ + \@mwarning{norm} } -\newcommand{\di}{\mathop{}\!\mathup{d}} +\@mmacro{di}{\mathop{}\!\mathup{d}} \newcommand\probastyle{} \let\Par\P % end of paragraph symbol \renewcommand{\P}{\operatorname{\probastyle{P}}} @@ -108,8 +102,8 @@ \@mmacro{V}{\operatorname{\probastyle{V}}} \newcommand{\PEupright}{ \AtBeginDocument{% necessary for working with beamer - \DeclareMathSymbol{P}\mathalpha{UpSh}{`P} - \DeclareMathSymbol{E}\mathalpha{UpSh}{`E} + \DeclareMathSymbol{P}\mathalpha{operators}{`P} + \DeclareMathSymbol{E}\mathalpha{operators}{`E} } } @@ -154,7 +148,7 @@ \@moperator[bigo]{\bigo}{O} \@moperator[lito]{\lito}{o} -\newcommand{\mathset}{\mathbf} +\@mmacro{mathset}{\mathbf} \@mmacro{R}{\ensuremath{\mathset{R}}\xspace} \@mmacro{C}{\ensuremath{\mathset{C}}\xspace} \@mmacro{N}{\ensuremath{\mathset{N}}\xspace} @@ -169,21 +163,34 @@ \@mmacro{dprod}{\prod\limits} \@mmacro{dcup}{\bigcup\limits} \@mmacro{dcap}{\bigcap\limits} + \@mmacro{lbar}{\overline} -\providecommand*{\hlbar}[1]{\overline{\vphantom{h}#1}} +\@ifundefined{hlbar}{ + \providecommand*{\hlbar}[1]{\overline{\vphantom{h}#1}}}{ + \@mwarning{hlbar} } \@mmacro{eqdef}{\stackrel{\mathup{def}}{=}} \@mmacro{unbr}{\underbrace} \@mmacro{iif}{if and only if\xspace} \@mmacro{mul}{\mathord{\times}} \@mmacro{then}{\ \Longrightarrow \ \mbox{} } -\providecommand*{\txt}[1]{\quad\text{#1}\quad} -\providecommand*{\paren}[1]{\mathopen{\left(#1\right)}} -\providecommand*{\pow}[2]{\left( #1 \right)^{\!#2}} -\providecommand*{\abs}[1]{\left\vert#1\right\vert} -\providecommand*{\lfrac}[2]{\frac{\:#1\:}{\:#2\:}} -\DeclareMathSymbol{]}\mathord{UpSh}{093} % originally \mathclose -\DeclareMathSymbol{[}\mathord{UpSh}{091} % originally \mathopen +\@ifundefined{txt}{ + \providecommand*{\txt}[1]{\quad\text{#1}\quad} }{ + \@mwarning{txt} } +\@ifundefined{paren}{ + \providecommand*{\paren}[1]{\mathopen{\left(#1\right)}} }{ + \@mwarning{paren} } +\@ifundefined{pow}{ + \providecommand*{\pow}[2]{\left( #1 \right)^{\!#2}} }{ + \@mwarning{pow} } +\@ifundefined{abs}{ + \providecommand*{\abs}[1]{\left\vert#1\right\vert} }{ + \@mwarning{abs} } +\@ifundefined{lfrac}{ + \providecommand*{\lfrac}[2]{\frac{\;#1\;}{\;#2\;}} }{ + \@mwarning{lfrac} } +\DeclareMathSymbol{]}\mathord{operators}{093} % originally \mathclose +\DeclareMathSymbol{[}\mathord{operators}{091} % originally \mathopen \newcommand{\systemstretch}{1.2} \newcommand{\systemsep}{\medspace} |