texlive[65495] Master/texmf-dist: mismath (8jan23)

commits+karl at tug.org commits+karl at tug.org
Sun Jan 8 22:13:25 CET 2023


Revision: 65495
          http://tug.org/svn/texlive?view=revision&revision=65495
Author:   karl
Date:     2023-01-08 22:13:24 +0100 (Sun, 08 Jan 2023)
Log Message:
-----------
mismath (8jan23)

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	2023-01-08 21:00:08 UTC (rev 65494)
+++ trunk/Master/texmf-dist/source/latex/mismath/mismath.dtx	2023-01-08 21:13:24 UTC (rev 65495)
@@ -20,7 +20,7 @@
 %<*package> 
 \NeedsTeXFormat{LaTeX2e}[2005/12/01]
 \ProvidesPackage{mismath}   
-    [2022/12/26 v2.1 .dtx mismath file]
+    [2023/01/06 v2.2 .dtx mismath file]
 %</package>
 %<*driver>
 \documentclass{ltxdoc}
@@ -29,10 +29,15 @@
 %\usepackage{textcomp}
 \usepackage[english]{babel}
 \usepackage[charter]{mathdesign} % in case of font change, modify 2.1 (3rd §)
-\usepackage{mismath}
+\usepackage[ibrackets]{mismath}
 %\usepackage{amssymb} incompatible with mathdesign
 \usepackage{multicol}
 \usepackage[Euler]{upgreek}
+\usepackage{sectsty}
+\usepackage{xcolor}
+
+\definecolor{darkbrown}{rgb}{0.5,0.1,0.1}
+\allsectionsfont{\color{darkbrown}}
 %\enumber % commented because I need italicized e in vectors section
 \inumber
 \pinumber[piup]
@@ -63,7 +68,7 @@
 %</driver>
 % \fi
 %
-%% \CheckSum{454}
+%% \CheckSum{459}
 %
 % \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
@@ -151,6 +156,10 @@
 %     - a small change in norm command -> bars in small size
 %     - several changes in documentation}
 %
+% \changes{v2.2}{2023/01/06}{
+%      - Loading of ibrackets package is now optional, due to an error
+%         when using DeclarePairedDelimiter with square brackets.}
+%
 % \GetFileInfo{mismath.sty}
 %
 % \title{\textsf{mismath}\\ Miscellaneous mathematical macros\thanks{This document
@@ -157,7 +166,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{December 26, 2022}
+% \date{January 6, 2023}
 %
 % \maketitle
 % \tableofcontents
@@ -699,15 +708,18 @@
 % \[ \lbar{Z} = \lfrac{\lbar{z_1-z_2}}{\lbar{z_1+z_2}} \]
 % \end{minipage}
 %
-% \DescribeMacro{brackets}
+% \DescribeMacro{[ibrackets]}
 % Open intervals are usually represented with parenthesis, e.g.\@ $(0, +\infty)$,
 % but sometimes we find also
-% brackets, for example in French mathematics.
+% square brackets, for example in French mathematics.
 % In that case the space around them is often unsuitable, 
 % e.g.\@ $x \in \mathclose{]} 0, +\infty[$.
 %
 % We have redefine brackets in the \textsf{ibrackets} package~\cite{BRACKET} 
-% which is loaded by \textsf{mismath}.
+% which can be optionally\footnote{This functionality is optional because it causes
+% error when using a command defined by \texttt{\bslash DeclarePairedDelimiter}~\cite{TOOL}
+% with square brackets.}
+% loaded by \textsf{mismath}.
 % Simply type |$x\in ]-\pi,0[ \cup ]2\pi,3\pi[$| to get
 % \begin{align*} 
 % x\in ]-\pi, 0[ \cup ]2\pi, 3\pi[ &\mbox{\quad with \textsf{ibrackets}}, \\
@@ -721,9 +733,9 @@
 % it is always possible to transform them 
 % into delimiters with |\left| and |\right|.
 %
-% With \textsf{ibrackets}: a bracket become an ordinary character 
+% With \textsf{ibrackets}: a bracket becomes an ordinary character 
 % but an open delimiter when it is immediately followed by a + or - character.
-% Thus, when the left boundary contains an operator sign,
+% Thus, when the left bound contains an operator sign,
 % \emph{you don't have to leave a space between the first bracket and the sign},
 % otherwise, the spaces surrounding the operator will be too large:
 % e.g.\@ |$x \in ] -\infty, 0]$| yields $x \in  ] -\infty, 0]$.
@@ -733,10 +745,11 @@
 % e.g.\@ |$[a, b] + [c, d]$| yields $[a, b] + [c, d]$
 % but |$[a, b]+ [c, d]$| yields $[a, b]+ [c, d]$.
 %
-% Let us also mention other approaches e.g.\@ |\DeclarePairedDelimiters|, a macro from
-% the \textsf{mathtools} package~\cite{TOOL}, or
-% the \textsf{interval} package~\cite{INT} with his
-% |\interval| macro. Nevertheless our solution is lighter.
+% Let us also mention other approaches with the |\interval| macro
+% from the \textsf{interval} package~\cite{INT},
+% or |\DeclarePairedDelimiters| from the \textsf{mathtool} package~\cite{TOOL}
+% (but the latter is incompatible with \textsf{ibrackets}
+% for brackets management).
 %
 % \subsection{Environments for systems of equations and small matrices}
 %
@@ -868,14 +881,16 @@
 % \section{Implementation}
 %
 %    \begin{macrocode}
+\RequirePackage{ifthen}
+\newboolean{ibrackets}
+\DeclareOption{ibrackets}{\setboolean{ibrackets}{true}}
 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{amsmath}}
 \ProcessOptions \relax
 \@ifpackageloaded{amsmath}{}{\RequirePackage{amsmath}}
 \@ifpackageloaded{esvect}{}{\RequirePackage[b]{esvect}}
-\RequirePackage{ifthen}
 \RequirePackage{xspace}
 \RequirePackage{mathtools}
-\RequirePackage{ibrackets}
+\ifthenelse{\boolean{ibrackets}}{\RequirePackage{ibrackets}}{}
 
 %    \end{macrocode}
 % The above conditional packages loading avoids ``option clash'' errors if the packages 

Modified: trunk/Master/texmf-dist/tex/latex/mismath/mismath.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mismath/mismath.sty	2023-01-08 21:00:08 UTC (rev 65494)
+++ trunk/Master/texmf-dist/tex/latex/mismath/mismath.sty	2023-01-08 21:13:24 UTC (rev 65495)
@@ -22,16 +22,18 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2005/12/01]
 \ProvidesPackage{mismath}
-    [2022/12/26 v2.1 .dtx mismath file]
-%% \CheckSum{454}
+    [2023/01/06 v2.2 .dtx mismath file]
+%% \CheckSum{459}
+\RequirePackage{ifthen}
+\newboolean{ibrackets}
+\DeclareOption{ibrackets}{\setboolean{ibrackets}{true}}
 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{amsmath}}
 \ProcessOptions \relax
 \@ifpackageloaded{amsmath}{}{\RequirePackage{amsmath}}
 \@ifpackageloaded{esvect}{}{\RequirePackage[b]{esvect}}
-\RequirePackage{ifthen}
 \RequirePackage{xspace}
 \RequirePackage{mathtools}
-\RequirePackage{ibrackets}
+\ifthenelse{\boolean{ibrackets}}{\RequirePackage{ibrackets}}{}
 
 {\catcode`\|=\z@ \catcode`\\=12 |gdef|bslash{\}} % \bslash command
 



More information about the tex-live-commits mailing list.