From c946b2e792715f6030486d5214be1df081de37a8 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 7 Jan 2023 03:07:46 +0000 Subject: CTAN sync 202301070307 --- macros/latex/contrib/mismath/mismath.dtx | 45 ++++++++++++++++++++----------- macros/latex/contrib/mismath/mismath.pdf | Bin 257797 -> 258065 bytes 2 files changed, 30 insertions(+), 15 deletions(-) (limited to 'macros/latex/contrib/mismath') diff --git a/macros/latex/contrib/mismath/mismath.dtx b/macros/latex/contrib/mismath/mismath.dtx index 2f64b37985..7571aa54c4 100644 --- a/macros/latex/contrib/mismath/mismath.dtx +++ b/macros/latex/contrib/mismath/mismath.dtx @@ -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] % %<*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 @@ % % \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,13 +156,17 @@ % - 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 % 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{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 diff --git a/macros/latex/contrib/mismath/mismath.pdf b/macros/latex/contrib/mismath/mismath.pdf index 85e97af3c0..0e8f3a9dda 100644 Binary files a/macros/latex/contrib/mismath/mismath.pdf and b/macros/latex/contrib/mismath/mismath.pdf differ -- cgit v1.2.3