texlive[64993] Master/texmf-dist: mismath (11nov22)
commits+karl at tug.org
commits+karl at tug.org
Fri Nov 11 22:06:44 CET 2022
Revision: 64993
http://tug.org/svn/texlive?view=revision&revision=64993
Author: karl
Date: 2022-11-11 22:06:43 +0100 (Fri, 11 Nov 2022)
Log Message:
-----------
mismath (11nov22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/mismath/mismath.pdf
trunk/Master/texmf-dist/source/latex/mismath/mismath.dtx
trunk/Master/texmf-dist/tex/latex/mismath/mismath.sty
Modified: trunk/Master/texmf-dist/doc/latex/mismath/mismath.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/mismath/mismath.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/mismath/mismath.dtx 2022-11-11 21:06:28 UTC (rev 64992)
+++ trunk/Master/texmf-dist/source/latex/mismath/mismath.dtx 2022-11-11 21:06:43 UTC (rev 64993)
@@ -20,24 +20,29 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{mismath}
- [2022/10/25 v1.10 .dtx mismath file]
+ [2022/11/11 v2.0 .dtx mismath file]
%</package>
%<*driver>
\documentclass{ltxdoc}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
+%\usepackage{textcomp}
\usepackage[english]{babel}
-\usepackage{mathpazo}
-\DeclareTextFontCommand{\extrafont}{\fontfamily{cmr}\selectfont}
-% used for showing original \i and \j in text mode.
+\usepackage[charter]{mathdesign} % if changing font, modify 2.1 (3rd §)
\usepackage{mismath}
-\usepackage{amssymb}
+%\usepackage{amssymb} incompatible with mathdesign
\usepackage{multicol}
-
-%\enumber
+\usepackage[Euler]{upgreek}
+%\enumber % commented because I need italicized e in vectors section
\inumber
-\pinumber[Euler]
-% for an example in this doc we substitute [ and ] by \OB and \CB
+\pinumber[piup]
+% For using in this doc only:
+\usepackage[LGR,T1]{fontenc}
+\DeclareSymbolFont{UpGr}{LGR}{lmr}{m}{n}
+\DeclareMathSymbol{\mypi}\mathalpha{UpGr}{"70}
+% For showing original \i and \j in text mode:
+\DeclareTextFontCommand{\extrafont}{\fontfamily{lmr}\selectfont}
+% For an example in this doc we substitute [ and ] by \OB and \CB:
\DeclareMathSymbol{\OB}\mathclose{operators}{093}
\DeclareMathSymbol{\CB}\mathopen{operators}{091}
@@ -61,7 +66,7 @@
%</driver>
% \fi
%
-%% \CheckSum{430}
+%% \CheckSum{440}
%
% \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
@@ -103,10 +108,15 @@
% 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}
+% changing font in documentation, now Palatino (mathpazo)}
% \changes{v1.10}{2020/10/25}{\bslash pinumber command code adapted to avoid
% incompatibility with the new release of frenchmath,
% default option (in upgreek) changed from Symbol to Euler.}
+% \changes{v2.0}{2022/11/11}{pinumber command has been improved using by default
+% LGR encoding, it is no longer compatible with the older,
+% paren command has been removed,
+% hvect and hlbar have been slighlty modified (phantom t instead of phantom h),
+% several changes in documentation, now using the charter font (mathdesign).}
%
% \GetFileInfo{mismath.sty}
%
@@ -114,7 +124,7 @@
% corresponds to \textsf{mismath}~\fileversion, dated \filedate.
% Thanks to François Bastouil for help in English translation.}}
% \author{Antoine Missier \\ \texttt{antoine.missier at ac-toulouse.fr}}
-% \date{October 25, 2022}
+% \date{November 11, 2022}
%
% \maketitle
% \tableofcontents
@@ -123,8 +133,8 @@
%
% 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$
-% should be typeset in upright shape and not in italic (sloping shape) like
-% variables (see~\cite{TYPMA}~\cite{NIST}~\cite{ICTNS}~\cite{ISO}).
+% should be typeset in roman (upright shape) and not in italic (sloping shape) like
+% variables (see~\cite{TYPMA}~\cite{NIST}~\cite{SI}~\cite{ICTNS}).
% This package provides some tools to achieve this (automatically).
%
% \medskip
@@ -174,10 +184,11 @@
%
% \medskip
% A recommendation, seldom observed, is to typeset uppercase Greek letters in italic shape
-% like other variables~\cite{ICTNS}. This is automatically done with
-% the \textsf{fixmath} package by Walter Schmidt~\cite{FIXM}
-% or the \textsf{isomath} package by Günter Milde~\cite{ISOM},
-% but this feature is not implemented in \textsf{mismath} because this rule is conflicting
+% like other variables~\cite{ICTNS}. This is automatically done with the packages
+% \textsf{fixmath} by Walter Schmidt~\cite{FIXM}
+% or \textsf{isomath} by Günter Milde~\cite{ISOM} and many others
+% (for instance \textsf{mathpazo} or \textsf{mathptmx} with the option \texttt{slantedGreek}),
+% but this feature is not implemented here because this rule is conflicting
% to the one used in France where all mathematics capitals
% have to be typeset in upright shape\footnote{The \textsf{frenchmath} package~\cite{FR}
% takes this rule into account.}.
@@ -204,10 +215,10 @@
% 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 ``\extrafont{\i,\ \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 |\i| invalid in math mode on input line \meta{line}''.
-% Redefining |\i| and |\j| concerns only mathematical mode\footnote{Due to this
+% ``\texttt{LaTeX Warning: Command \bslash i invalid in math mode on input line} \meta{line}''.
+% Te new definition of |\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.
% A solution is to use the classic \texttt{\bslash \textasciicircum i}
@@ -219,7 +230,7 @@
% with many formulas containing $\e$ or $\i$.
% So a way is proposed here to free of it by placing |\enumber|, |\inumber| or |\jnumber|
% in the preamble:
-% $\e$, $i$ or $\j$ will then automatically be set in upright shape
+% $\e$, $i$ or $\j$ will then automatically be set in roman
% in the whole document, no need to type |\e|, |\i| or |\j|,
% let's hope that there are not many other $\mathit{e}$, $\mathit{i}$ or $j$ as variables.
% However, you can still get italicized
@@ -229,31 +240,45 @@
% by their nature rather than their typographical characteristics,
% defined in the preamble. But these macros are really handy and
% thanks to them it is possible to bring a document up to the standards
-% afterwards; besides anyone is free to use them or not.
+% afterwards; moreover anyone is free to use them or not.
%
% \medskip
-% \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$.
+% \DescribeMacro{\pinumber\oarg{command}}
+% The mathematical constant $\pi$ should also be typeset in upright shape
+% (see~\cite{TYPMA}, \cite{NIST}, \cite{ICTNS}), which differs from italicized $\itpi$.
% 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\footnote{Many other packages deal with this problem, let us
-% mention \textsf{mathdesign}, \textsf{fourier}, \textsf{pm-isomath},
-% \textsf{alphabeta}, \textsf{kpfonts}, \textsf{pxgreeks}, \textsf{libgreek}, etc.}
-% 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{Euler} (by default), \texttt{Symbol}
-% or \texttt{Symbolsmallscale} (see~\cite{GREEK}). It also redefines the |\pi|
-% command to typeset all |\pi| in the selected upright font.
-
-% By activating |\enumer|, |\inumber| and |\pinumber|
-% in the preamble, you can get for instance:
+% Several packages allow to typeset mathematical Greek letters in upright shape,
+% let us mention \textsf{upgreek}~\cite{GREEK}, \textsf{mathdesign}~\cite{DESIGN}
+% (used here), \textsf{kpfonts}, \textsf{fourier}, \textsf{libertinust1math},
+% \textsf{pxgreeks}, \textsf{txgreeks}, \textsf{libgreek} etc.
+% These packages provide commands like |\uppi| (\textsf{upgreek}),
+% |\piup| (\textsf{mathdesign}, \textsf{kpfonts}),
+% |\otherpi| (\textsf{fourier}), etc.\footnote{They also have options to
+% typeset all the Greek lowercase letters in upright shape by default,
+% but this in not our goal here.}
+% To preserve default sloped lowercase Greek letters except for pi, and to
+% avoid typing a lot of |\uppi| or |\piup|, we provide the |\pinumber| macro,
+% which has to be put in the preamble. This command redefines |\pi| to match
+% the optional command given, for instance |piup|, assuming the appropriate
+% package has been loaded before.
+%
+% By activating |\enumer|, |\inumber| and |\pinumber[piup]| in the preamble,
+% you can get for instance :
% \begin{center}
-% |$e^{i\pi} = -1$| \hspace{6em} $\e^{i\pi}=-1$
+% |$e^{i\pi} = -1$| \enskip \hspace{3em} \enskip $\e^{i\pi}=-1$.
% \end{center}
%
+% When no argument is given, |\pinumber| defines |\pi| with an LGR encoding of Greek letters
+% to produce $\mypi$. It looks the same as the one supplied with
+% the \textsf{textalpha} package by Günter Milde~\cite{ALPHA}.
+% This $\mypi$ is particularly suitable
+% for use with the default Computer Modern or Latin Modern font\footnote{This
+% default $\mypi$ doesn't fit well with many text fonts, more bold than Computer Modern;
+% the \textsf{upgreek} package~\cite{GREEK} provides often a better $\uppi$
+% and it has also a \texttt{Symbol} option (using Adobe Symbol font)
+% that fits well with several text fonts, for instance Times.}.
+%
% \DescribeMacro{\itpi}
% When |\pinumber| is activated, the original italic $\itpi$ is still available with |\itpi|.
%
@@ -275,14 +300,15 @@
% |\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}|
+% e.g.\@ |\usepackage[d]{esvect}|
% will give the arrows produced by default in~\cite{VECT}.
%
% \medskip
% \DescribeMacro{\boldvect}
-% |\vect| makes also possible to typeset vector's names using bold italic
-% (according to ISO recommendation~\cite{ISO}) rather than arrows.
-% For this, calling |\boldvect| will modify the behavior of |\vect|:\\[1ex]
+% The |\vect| macro allow to typeset vector's names using bold italic
+% (according to ISO recommendation~\cite{NIST}~\cite{SI}) rather than arrows.
+% For this, calling |\boldvect| will modify the behavior of |\vect|,
+% globally or locally, depending on where |\boldvect| is placed:\\[1ex]
% \begin{minipage}{8cm}
% \begin{verbatim}
%\[ \boldvect \vect{v}
@@ -301,8 +327,8 @@
% But other packages producing bold italic can be preferred, e.g.\@
% \texttt{\bslash bm} from \textsf{bm} package or |\mathbold| from \textsf{fixmath}
% package or |\mathbfit| from \textsf{isomath}.
-% For that, redefine |\boldvectcommand|:
-% for instance |\renewcommand\boldvectcommand{\mathbold}|.
+% For that, redefine |\boldvectcommand|, for instance:
+% \begin{center} |\renewcommand\boldvectcommand{\mathbold}|. \end{center}
%
% By setting |\boldvectcommand| to |\mathbf|, |\vect| produces vectors
% in bold \emph{upright} shape,
@@ -319,26 +345,25 @@
% \medskip
% \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$)
+% arrows can be set up a bit higher (with a vertical phantom box containing $t$)
% 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}|;
-% \item $\vect{a} \cdot \vect{b}=0$ is less than $\hvect{a} \cdot \vect{b}=0$,
-% obtained with |\hvect{a}|.
+% \item $\vect{AB}=\hvect{u}+ \vect{AC}$, obtained with |\hvect{u}|,
+% is better than $\vect{AB}=\vect{u}+ \vect{AC}$;
+% \item $\hvect{a} \cdot \vect{b}=0$, obtained with |\hvect{a}|,
+% is better thant $\vect{a} \cdot \vect{b}=0$.
% \end{itemize}
-% The |\boldvect| switch has no effect on the |\hvect| macro which always typesets
-% arrows on vectors (with the |\vv| command from the \textsf{esvect} package).
+% The |\boldvect| switch has the same effect on |\hvect| than on |\vect|.
%
% \medskip
% \DescribeMacro{\hvec}
% In a similar way, |\hvec| raises the little arrow produced by
-% the \LaTeX\ command |\vec| (but only from height of $t$ letter):
+% the \LaTeX\ command |\vec| (from height of $t$ letter):
% \begin{itemize}
-% \item $\mathcal{P}=\vec{f}\cdot\vec{v}$ is less than
-% $\mathcal{P}=\vec{f}\cdot\hvec{v}$, obtained with |\hvec{v}|;
-% \item $\vec{f} =m \vec{a}$ is less than $\vec{f} =m \hvec{a}$,
-% obtained with |\hvec{a}|.
+% \item $\mathcal{P}=\vec{f}\cdot\hvec{v}$, obtained with |\hvec{v}|,
+% is better than $\mathcal{P}=\vec{f}\cdot\vec{v}$.
+% \item $\vec{f} =m \hvec{a}$, obtained with |\hvec{a}|,
+% is better than $\vec{f} =m \vec{a}$.
% \end{itemize}
%
% \DescribeMacro{\norm}
@@ -495,8 +520,9 @@
% Symbols with limits behave differently for in-line formulas or for displayed equations.
% In the latter case, ``limits'' are put under or above whereas for in-line math mode,
% 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}.\]
+% $\zeta(s)=\sum_{n=1}^{\infty }\frac{1}{n^s}$ with
+% \[\zeta(s)=\sum_{n=1}^{\infty}\frac{1}{n^s}.\]
+%
% 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,
@@ -505,7 +531,7 @@
% \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:
+% the 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}$.
%
@@ -516,8 +542,8 @@
% Such as for vectors, you can raise the bar (from the height of $h$) with
% the |\hlbar| command, in order to correct uneven bars heights.
% \begin{center}
-% $\lbar{z+z'}=\lbar{z}+\lbar{z'}$ is less than $\lbar{z+z'}=\hlbar{z}+\lbar{z'}$,
-% obtained with |\hlbar{z}|.
+% $\lbar{z+z'}=\hlbar{z}+\lbar{z'}$, obtained with |\hlbar{z}|,
+% is better than $\lbar{z+z'}=\lbar{z}+\lbar{z'}$.
% \end{center}
%
% \DescribeMacro{\eqdef}
@@ -554,57 +580,56 @@
%
% \subsection{Improving some spacing in mathematical formulas}
%
-% \DescribeMacro{\mul}
-% The multiplication symbol obtained with |\times| produces the same spacing than addition
-% 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|:
-% \begin{center}
-% $\lambda+\alpha \times b-\beta \times c$
-% is less than $\lambda+\alpha \mul b-\beta \mul c$, obtained with |\mul|.
-% \end{center}
-%
-% When using |\mul| before an operator name
-% 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}
-% Compare $x\mul\sin x$ with $x\mul{\sin x}$
-% obtained with |x\mul{\sin x}|.
-% \end{center}
-%
% \DescribeMacro{\then}
% The |\then| macro produces the symbol $\Longrightarrow$ surrounded by large spaces
% as the standard macro |\iff| does it with $\Longleftrightarrow$.
% In a similar way, |\txt| \DescribeMacro{\txt}
% based on the |\text| macro (from the \textsf{amstext} package,
-% automatically loaded by \textsf{amsmath}),
+% loaded by \textsf{amsmath}),
% leaves em quad spaces (|\quad|) around the text. See the following example:
% \begin{center}
-% |\ln x=a\then x=\e^a \txt{rather than} \ln x=a\Longrightarrow x=\e^a| \\[1ex]
+% |\[ \ln x=a \then x=\e^a \txt{rather than}| \\
+% | \ln x=a \Longrightarrow x=\e^a \]| \\[1ex]
% $ \ln x=a \then x=\e^a \txt{rather than} \ln x=a \Longrightarrow x=\e^a$
% \end{center}
-
-% \DescribeMacro{\paren}
-% Spaces around parenthesis produced by |\left(...\right)| may be too large, for example
-% after a function name or a point name with coordinates.
-% A solution is to add a thin negative space |\!| before the opening (or after the closing)
-% parenthesis, or to enclose the
-% |\left(...\right)| structure by brackets, or to use the |\paren| macro:
+%
+% \DescribeMacro{\mul}
+% The multiplication symbol obtained with |\times| produces the same spacing than addition
+% or subtraction operators, whereas division obtained with $/$ is closer to its operands.
+% 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|:
% \begin{center}
-% $\sin\left(\frac{\pi}{3}\right)\mul 2$ is less than $\sin\paren{\frac{\pi}{3}}\mul 2$
-% obtained with \\[1ex] |\sin\paren{\frac{\pi}{3}}\mul 2|.
+% $\lambda+\alpha \mul b-\beta \mul c$, obtained with |\mul|,
+% is better than $\lambda+\alpha \times b-\beta \times c$.
% \end{center}
%
+% When using |\mul| before a function name or around a |\left...\right| structure,
+% the space may be too large on one side of |\mul|.
+% To get the same amount of space on the two sides of |\mul|,
+% you can use thin negative spaces |\!|
+% or enclose the function or the structure with brackets:
+% \begin{center}
+% $x\mul{\sin x}$, obtained with |x\mul{\sin x}|, is slightly better than $x\mul\sin x$.\\[1ex]
+% |$\sin\!{\left( \frac{\pi}{3} \right)} \mul 2$| gives\\
+% $\sin\!{\left(\frac{\pi}{3}\right)}\mul 2$ which is better than
+% $\sin\left(\frac{\pi}{3}\right)\mul 2$.
+% \end{center}
+% The thin negative space after the function name is not relative to |\mul|,
+% but is due to the fact that spaces around a |\left...\right| structure
+% are bigger than those produced by single parenthesis |(...)|.
+%
+% \medskip
% \DescribeMacro{\pow}
-% When typesetting an exponent after a closing \emph{big} parenthesis produced by |\right)|,
+% In the same way, when typesetting an exponent after a closing \emph{big}
+% parenthesis produced by |\right)|,
% the exponent is little to far from the parenthesis.
% The command |\pow|\marg{expr}\marg{pow} sets
% \meta{expr} between parentheses and puts the exponent \meta{pow}
% slightly closer to the right parenthesis\footnote{This macro gives bad
% results with normal sized parenthesis.}. Compare:
-% \[ \e^a \sim\left(1+\frac{a}{n}\right)^n \txt{and} \e^a \sim\pow{1+\frac{a}{n}}{n}.\]
+% \[ \e^a \sim\pow{1+\frac{a}{n}}{n} \txt{may be better than}
+% \e^a \sim\left(1+\frac{a}{n}\right)^n.\]
%
% \DescribeMacro{\abs}
% Absolute value (or modular for a complex number) should be typeset with
@@ -616,6 +641,7 @@
% \texttt{\bslash DeclarePairedDelimiter} command
% from the \textsf{mathtool} package~\cite{TOOL}.}.
%
+% \medskip
% \DescribeMacro{\lfrac}
% This macro behaves like |\frac|
% but with thick spaces around the arguments,
@@ -631,12 +657,15 @@
% \end{minipage}
%
% \DescribeMacro{[ ]}
-% Brackets symbols $[$ and $]$ have been redefined for mathematical mode because,
-% in standard \LaTeX, the space before them can be unsuitable\footnote{The
-% \textsf{interval} package~\cite{INT} gives another solution, less direct,
-% based on an \texttt{\bslash interval} macro.}:
+% Open intervals may be represented with parenthesis but sometimes we find also
+% brackets. In that case the space before them is often unsuitable.
+% Brackets symbols $[$ and $]$ have been redefined for mathematical mode\footnote{We
+% could also use the macro \texttt{\bslash DeclarePairedDelimiters} from
+% the \textsf{mathtools} package ; let us also mention
+% the \textsf{interval} package~\cite{INT} with his
+% \texttt{\bslash interval} macro.}:
% \begin{center}
-% |$x\in ]0,\pi[ \cup ]2\pi,3\pi[$| \hspace{0.5em}
+% |$x\in ]0,\pi[ \cup ]2\pi,3\pi[$| \\[1ex]
% $\begin{cases}
% x\in \OB 0,\pi \CB \cup \OB2\pi, 3\pi \CB &\text{ without \textsf{mismath}}\\
% x\in ]0, \pi[ \cup ]2\pi, 3\pi[ &\text{ with \textsf{mismath}}
@@ -643,14 +672,15 @@
% \end{cases}$
% \end{center}
% In our code, $[$ and $]$ symbols are not defined anymore as delimiters.
-% Thereby a line break could occur between the two, but
+% Thereby a line break could occur between the two brackets, but
% it is always possible to transform them
-% into delimiters with |\left| and |\right|\footnote{Is \LaTeX\ definition
-% of [ as |mathopen| really appropriate
-% where this symbol could almost also logically have been defined as |mathclose|?}.
-% And consider that these symbols are most of the time preceded or followed by relational,
-% binary or punctuation symbols and therefore spaces are correct
-% without a delimiter definition.
+% into delimiters with |\left| and |\right|.
+% Another problem occurs when the left boundary contains an operator sign ;
+% the spaces surrounding the operator will then be too large :
+% |$[-1, 1]$| yields $[-1, 1]$ instead of $[{-1}, 1]$\footnote{A problem pointed out
+% by J.F.\@ Burnol, which does not detract from the interest of this redefinition.}.
+% To get correct spaces, we have to surround
+% the sign $-$ or $-1$ by braces, or use |\left| and |\right|.
%
% \subsection{Environments for systems of equations and small matrices}
%
@@ -676,7 +706,7 @@
% set by default to |\medspace|. This gap may be reduced, for instance:
% |\renewcommand{\systemsep}{\thinspace}|,
% or enlarged with |\thickspace| (and with |\renewcommand\systemsep}{}|
-% we get back to what \texttt{cases} do).
+% we obtain what \texttt{cases} do).
%
% \medskip
% \DescribeEnv{system\oarg{coldef}}
@@ -779,7 +809,6 @@
% \end{verbatim}
%
% \StopEventually{}
-% \vspace{-4ex}
% \section{Implementation}
%
% \begin{macrocode}
@@ -798,11 +827,11 @@
% The three following internal commands are meta commands for a
% 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|
+% The |\bslash| macro comes from \textsf{doc.sty} package by Frank Mittelbach.
+% It can also be used in other documents instead of |\textbackslash|
% (which doesn't work here).
% \begin{macrocode}
-{\catcode`\|=\z@ \catcode`\\=12 |gdef|bslash{\}} % the \bslash command
+{\catcode`\|=\z@ \catcode`\\=12 |gdef|bslash{\}} % \bslash command
\newcommand\@mwarning[1]{
\PackageWarningNoLine{mismath}{
Command \bslash #1 already exist and will not be redefined}
@@ -840,7 +869,7 @@
%
% \medskip
% \begin{macrocode}
-\providecommand{\mathup}[1]{{\operatorfont #1}} % exist also in kpfonts
+\providecommand{\mathup}[1]{{\operatorfont #1}} % also in kpfonts
\@mmacro{e}{\mathup{e}}
\AtBeginDocument{\let\oldi\i \let\oldj\j
\renewcommand{\i}{\TextOrMath{\oldi}{\mathup{i}}}
@@ -847,23 +876,40 @@
\renewcommand{\j}{\TextOrMath{\oldj}{\mathup{j}}} }
\newcommand{\enumber}{
- \AtBeginDocument{\DeclareMathSymbol{e}\mathalpha{operators}{`e}} }
+ \AtBeginDocument{\DeclareMathSymbol{e}\mathalpha{operators}{`e}}}
\newcommand{\inumber}{
- \AtBeginDocument{\DeclareMathSymbol{i}\mathalpha{operators}{`i}} }
+ \AtBeginDocument{\DeclareMathSymbol{i}\mathalpha{operators}{`i}}}
\newcommand{\jnumber}{
- \AtBeginDocument{\DeclareMathSymbol{j}\mathalpha{operators}{`j}} }
-\newcommand*{\pinumber}[1][Euler]{
- \@ifpackageloaded{upgreek}{}{\usepackage[#1]{upgreek}}
+ \AtBeginDocument{\DeclareMathSymbol{j}\mathalpha{operators}{`j}}}
+\newcommand*{\pinumber}[1][defaultpi]{
\@ifundefined{itpi}{\let\itpi\pi}{\@mwarning{itpi}}
- \renewcommand{\pi}{\uppi} }
+ \ifthenelse{\equal{#1}{defaultpi}}{
+ \usepackage[LGR,T1]{fontenc}
+ \DeclareSymbolFont{UpGr}{LGR}{lmr}{m}{n}
+ \DeclareMathSymbol{\pi}\mathalpha{UpGr}{"70}
+ }{
+ \@ifundefined{#1}{
+ \PackageWarningNoLine{mismath}{
+ \bslash pinumber command has changed since v2.0,
+ \MessageBreak
+ option #1 must be a command name \MessageBreak
+ (look at the documentation),
+ but command \bslash #1 is undefined, \MessageBreak
+ I cannot use it for replacement to \bslash pi.
+ \MessageBreak
+ Perhaps a missing package}
+ }{\renewcommand{\pi}{\csname #1\endcsname}}
+ }
+}
\newboolean{arrowvect}
\setboolean{arrowvect}{true}
\newcommand{\arrowvect}{\setboolean{arrowvect}{true}}
\newcommand{\boldvect}{\setboolean{arrowvect}{false}}
-\newcommand{\boldvectcommand}{\boldsymbol} % needs bm package
-\@mmacro{vect}{\ifthenelse{\boolean{arrowvect}}{\vv}{\boldvectcommand}}
-\newcommand*{\hvect}[1]{\vv{\vphantom{h}#1}}
+\newcommand{\boldvectcommand}{\boldsymbol} % from amsbsy package
+\@mmacro{vect}{\ifthenelse{\boolean{arrowvect}}{
+ \vv}{\boldvectcommand}}
+\newcommand*{\hvect}[1]{\vect{\vphantom{t}#1}}
\newcommand*{\hvec}[1]{\vec{\vphantom{t}#1}}
\newcommand*{\@norm}[1]{
@@ -877,8 +923,9 @@
\mbox{\tiny\raisebox{1pt}{$\Vert$}} #1
\mbox{\tiny\raisebox{1pt}{$\Vert$}} }
\@ifundefined{norm}{\providecommand*{\norm}[1]{
- \mathchoice{\@norm{#1}}{\@norm{#1}}{\@@norm{#1}}{\@@@norm{#1}} }}{
- \@mwarning{norm} }
+ \mathchoice{\@norm{#1}}{\@norm{#1}}{\@@norm{#1}}{\@@@norm{#1}}
+ }
+ }{\@mwarning{norm} } % bad result with libertinust1math
\@mmacro{di}{\mathop{}\!\mathup{d}}
\newcommand\probastyle{}
@@ -952,13 +999,12 @@
\@mmacro{lbar}{\overline}
\@ifundefined{hlbar}{
- \providecommand*{\hlbar}[1]{\overline{\vphantom{h}#1}}}{
+ \providecommand*{\hlbar}[1]{\overline{\vphantom{t}#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{} }
% \end{macrocode}
% Without |\mbox{}|, the space produced by |\| would be suppressed in tables.
@@ -967,9 +1013,9 @@
\@ifundefined{txt}{
\providecommand*{\txt}[1]{\quad\text{#1}\quad} }{
\@mwarning{txt} }
-\@ifundefined{paren}{
- \providecommand*{\paren}[1]{\mathopen{\left(#1\right)}} }{
- \@mwarning{paren} }
+\@mmacro{mul}{\mathord{\times}}
+\PackageWarningNoLine{mismath}{Command \bslash paren
+ is no longer supported}
\@ifundefined{pow}{
\providecommand*{\pow}[2]{\left( #1 \right)^{\!#2}} }{
\@mwarning{pow} }
@@ -1014,34 +1060,47 @@
% \begin{raggedright}
% \bibitem{TYPMA} \emph{Typesetting mathematics for science and technology according
% to ISO 31/XI}, Claudio Beccari, TUGboat Volume 18 (1997), No.~1.
+% \url{http://www.tug.org/TUGboat/tb18-1/tb54becc.pdf}.
% \bibitem{NIST} \emph{Typefaces for Symbols in Scientific Manuscripts}.
% \url{https://www.physics.nist.gov/cuu/pdf/typefaces.pdf}.
+% \bibitem{SI} \emph{Guide for the Use of the International System of Units (SI)},
+% NIST (National Institute of Standards and Technology), updated March 4, 2020
+% \url{https://www.nist.gov/pml/special-publication-811}.
% \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 Terminology, Nomenclature and Symbols), dec 1999.
-% \bibitem{ISO} \emph{ISO 80000-2}. \url{https://en.wikipedia.org/wiki/ISO\_80000-2}.
+% \url{https://old.iupac.org/standing/idcns/italic-roman_dec99.pdf}.
+% \bibitem{VECT} \emph{Typesetting vectors with beautiful arrow with \LaTeXe}.
+% \textsf{esvect} package by Eddie Saudrais, CTAN, v1.3 2013/07/11.
% \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.
% \bibitem{TOOL} \emph{The \textsf{mathtool} package}. Morten Høgholm, Lars Madsen, CTAN,
% v1.21 2018/01/08.
-% \bibitem{VECT} \emph{Typesetting vectors with beautiful arrow with \LaTeXe}.
-% \textsf{esvect} package by Eddie Saudrais, CTAN, v1.3 2013/07/11.
-% \bibitem{GREEK} \emph{The \textsf{upgreek} package for \LaTeXe}, Walter Schmidt,
-% CTAN, v2.0 2003/02/12.
% \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 2012/09/04.
-% \bibitem{PMISO} \emph{PM-ISOmath, The Poor Man ISO math bundle},
+% \bibitem{PMISO} \emph{\textsf{PM-ISOmath}, The Poor Man ISO math bundle},
% \textsf{pm-isomath} package by Claudio Beccari, CTAN, v1.2.00 2021/08/04.
+% \bibitem{GREEK} \emph{The \textsf{upgreek} package for \LaTeXe}, Walter Schmidt,
+% CTAN, v2.0 2003/02/12.
+% \bibitem{DESIGN} \emph{The \textsf{mathdesign} package}.
+% Paul Pichaureau, CTAN, v2.31 2013/08/29.
+% \bibitem{ALPHA} \emph{The \textsf{textalpha} package}
+% (part of the \textsf{greek-fontenc} bundle). Günter Milde, CTAN, v2.1 14/06/2022.
+% \bibitem{KPF} \emph{\textsf{Kp-Fonts} -- The Johannes Kepler project}.
+% Christophe Caignaert, CTAN, v3.34 20/09/2022.
+% \bibitem{FOUR} \textsf{Fourier-GUT\hspace{-0.1em}\emph{enberg}}.
+% Michel Bovani, CTAN, v1.3 30/01/2005.
% \bibitem{INT} \emph{The \textsf{interval} package}. Lars Madsen, CTAN,
-% v0.3 2014/08/04.
+% v0.4 2019/03/06.
% \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, v2.0 2022/10/25.
+% \bibitem{FR} \emph{L'extension \textsf{frenchmath}}. Antoine Missier, CTAN, v2.1 2022/11/11.
% \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.
+% Tobias Oetiker, Hubert Partl, Irene Hyna and Elisabeth Schlegl, CTAN, v6.4 2021/04/09.
+% \url{http://tug.ctan.org/info/lshort/english/lshort.pdf}.
% \bibitem{COMP} \emph{The \LaTeX\ Companion}. Frank Mittelbach, Michel Goossens,
% Johannes Braams, David Carlisle, Chris Rowley, 2nd edition, Pearson Education, 2004.
% \end{raggedright}
Modified: trunk/Master/texmf-dist/tex/latex/mismath/mismath.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mismath/mismath.sty 2022-11-11 21:06:28 UTC (rev 64992)
+++ trunk/Master/texmf-dist/tex/latex/mismath/mismath.sty 2022-11-11 21:06:43 UTC (rev 64993)
@@ -22,10 +22,8 @@
%%
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{mismath}
- [2022/10/25 v1.10 .dtx mismath file]
-%% \CheckSum{430}
-
-
+ [2022/11/11 v2.0 .dtx mismath file]
+%% \CheckSum{440}
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{amsmath}}
\ProcessOptions \relax
\@ifpackageloaded{amsmath}{}{\RequirePackage{amsmath}}
@@ -33,7 +31,7 @@
\RequirePackage{ifthen}
\RequirePackage{xspace}
\RequirePackage{mathtools}
-{\catcode`\|=\z@ \catcode`\\=12 |gdef|bslash{\}} % the \bslash command
+{\catcode`\|=\z@ \catcode`\\=12 |gdef|bslash{\}} % \bslash command
\newcommand\@mwarning[1]{
\PackageWarningNoLine{mismath}{
Command \bslash #1 already exist and will not be redefined}
@@ -55,7 +53,7 @@
}
}
-\providecommand{\mathup}[1]{{\operatorfont #1}} % exist also in kpfonts
+\providecommand{\mathup}[1]{{\operatorfont #1}} % also in kpfonts
\@mmacro{e}{\mathup{e}}
\AtBeginDocument{\let\oldi\i \let\oldj\j
\renewcommand{\i}{\TextOrMath{\oldi}{\mathup{i}}}
@@ -62,23 +60,40 @@
\renewcommand{\j}{\TextOrMath{\oldj}{\mathup{j}}} }
\newcommand{\enumber}{
- \AtBeginDocument{\DeclareMathSymbol{e}\mathalpha{operators}{`e}} }
+ \AtBeginDocument{\DeclareMathSymbol{e}\mathalpha{operators}{`e}}}
\newcommand{\inumber}{
- \AtBeginDocument{\DeclareMathSymbol{i}\mathalpha{operators}{`i}} }
+ \AtBeginDocument{\DeclareMathSymbol{i}\mathalpha{operators}{`i}}}
\newcommand{\jnumber}{
- \AtBeginDocument{\DeclareMathSymbol{j}\mathalpha{operators}{`j}} }
-\newcommand*{\pinumber}[1][Euler]{
- \@ifpackageloaded{upgreek}{}{\usepackage[#1]{upgreek}}
+ \AtBeginDocument{\DeclareMathSymbol{j}\mathalpha{operators}{`j}}}
+\newcommand*{\pinumber}[1][defaultpi]{
\@ifundefined{itpi}{\let\itpi\pi}{\@mwarning{itpi}}
- \renewcommand{\pi}{\uppi} }
+ \ifthenelse{\equal{#1}{defaultpi}}{
+ \usepackage[LGR,T1]{fontenc}
+ \DeclareSymbolFont{UpGr}{LGR}{lmr}{m}{n}
+ \DeclareMathSymbol{\pi}\mathalpha{UpGr}{"70}
+ }{
+ \@ifundefined{#1}{
+ \PackageWarningNoLine{mismath}{
+ \bslash pinumber command has changed since v2.0,
+ \MessageBreak
+ option #1 must be a command name \MessageBreak
+ (look at the documentation),
+ but command \bslash #1 is undefined, \MessageBreak
+ I cannot use it for replacement to \bslash pi.
+ \MessageBreak
+ Perhaps a missing package}
+ }{\renewcommand{\pi}{\csname #1\endcsname}}
+ }
+}
\newboolean{arrowvect}
\setboolean{arrowvect}{true}
\newcommand{\arrowvect}{\setboolean{arrowvect}{true}}
\newcommand{\boldvect}{\setboolean{arrowvect}{false}}
-\newcommand{\boldvectcommand}{\boldsymbol} % needs bm package
-\@mmacro{vect}{\ifthenelse{\boolean{arrowvect}}{\vv}{\boldvectcommand}}
-\newcommand*{\hvect}[1]{\vv{\vphantom{h}#1}}
+\newcommand{\boldvectcommand}{\boldsymbol} % from amsbsy package
+\@mmacro{vect}{\ifthenelse{\boolean{arrowvect}}{
+ \vv}{\boldvectcommand}}
+\newcommand*{\hvect}[1]{\vect{\vphantom{t}#1}}
\newcommand*{\hvec}[1]{\vec{\vphantom{t}#1}}
\newcommand*{\@norm}[1]{
@@ -91,8 +106,9 @@
\mbox{\tiny\raisebox{1pt}{$\Vert$}} #1
\mbox{\tiny\raisebox{1pt}{$\Vert$}} }
\@ifundefined{norm}{\providecommand*{\norm}[1]{
- \mathchoice{\@norm{#1}}{\@norm{#1}}{\@@norm{#1}}{\@@@norm{#1}} }}{
- \@mwarning{norm} }
+ \mathchoice{\@norm{#1}}{\@norm{#1}}{\@@norm{#1}}{\@@@norm{#1}}
+ }
+ }{\@mwarning{norm} } % bad result with libertinust1math
\@mmacro{di}{\mathop{}\!\mathup{d}}
\newcommand\probastyle{}
@@ -166,20 +182,19 @@
\@mmacro{lbar}{\overline}
\@ifundefined{hlbar}{
- \providecommand*{\hlbar}[1]{\overline{\vphantom{h}#1}}}{
+ \providecommand*{\hlbar}[1]{\overline{\vphantom{t}#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{} }
\@ifundefined{txt}{
\providecommand*{\txt}[1]{\quad\text{#1}\quad} }{
\@mwarning{txt} }
-\@ifundefined{paren}{
- \providecommand*{\paren}[1]{\mathopen{\left(#1\right)}} }{
- \@mwarning{paren} }
+\@mmacro{mul}{\mathord{\times}}
+\PackageWarningNoLine{mismath}{Command \bslash paren
+ is no longer supported}
\@ifundefined{pow}{
\providecommand*{\pow}[2]{\left( #1 \right)^{\!#2}} }{
\@mwarning{pow} }
More information about the tex-live-commits
mailing list.