diff options
author | Karl Berry <karl@freefriends.org> | 2024-06-17 20:10:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-06-17 20:10:33 +0000 |
commit | dcdc58507a6eadb2b206527a11fb3c36b7a7e5d9 (patch) | |
tree | c8ffe4e67bedbe5bacc6ed067034a59e14ede8b8 /Master/texmf-dist/tex/latex | |
parent | fb638b031640e9ff2c4d989bfa29c6810f8d94f4 (diff) |
mismath (17jun24)
git-svn-id: svn://tug.org/texlive/trunk@71549 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/mismath/mismath.sty | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/mismath/mismath.sty b/Master/texmf-dist/tex/latex/mismath/mismath.sty index 6a57500d1e0..e083da52d96 100644 --- a/Master/texmf-dist/tex/latex/mismath/mismath.sty +++ b/Master/texmf-dist/tex/latex/mismath/mismath.sty @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{mismath} - [2024/05/04 v3.0 .dtx Miscellaneous mathematical macros] + [2024/06/16 v3.1 .dtx Miscellaneous mathematical macros] \newif\ifmm@ibrackets % initialized to false \DeclareOption{ibrackets}{\mm@ibracketstrue} @@ -38,6 +38,7 @@ \ProcessOptions \relax \@ifpackageloaded{mathtools}{}{\RequirePackage{mathtools}} \@ifpackageloaded{esvect}{}{\RequirePackage[b]{esvect}} +\RequirePackage{mleftright} \RequirePackage{ifthen} \RequirePackage{xparse} % provides \NewDocumentCommand, now in LaTeX3 \RequirePackage{xspace} % for \iif command @@ -340,8 +341,11 @@ \newcommand{\tensor}{\mathbfsfit} % isomath uses \mathsfbfit +\mm@macro{di}{\operatorname{d}\mathopen{}} +\mm@macro{upDelta}{\Delta} +\mm@macro{opDelta}{\operatorname{\upDelta}\mathopen{}} +\mm@macro{opdelta}{\operatorname{\updelta}\mathopen{}} -\mm@macro{di}{\mathop{}\!\mathup{d}} \newcommand\probastyle{} \let\Par\P % end of paragraph symbol \renewcommand{\P}{\operatorname{\probastyle{P}}} @@ -425,11 +429,9 @@ \mm@macro{mathset}{\mathbf} \mm@macro{R}{\mathset{R}} -\AtBeginDocument{ - \@ifpackageloaded{hyperref}% - {\iftutex\onlymathC\fi}% LuaTex or XeTeX engines - {\mm@macro{C}{\mathset{C}}} -} +\mm@macro{C}{\mathset{C}} +\AtBeginDocument{% \iftutex = LuaTex or XeTeX engines + \@ifpackageloaded{hyperref}{\iftutex\onlymathC\fi}{} } \providecommand\onlymathC{\let\oldC\C \renewcommand{\C}{\TextOrMath{\oldC}{\mathset{C}}} } \mm@macro{N}{\mathset{N}} @@ -450,21 +452,21 @@ \providecommand*{\hlbar}[1]{\overline{\vphantom{A}#1}}}{ \mm@warning{hlbar} } \newcommand\@eqdef{\stackrel{\mathup{def}}{=}} -\newcommand\@@eqdef{\stackrel{\mathrm{\Delta}}{=}} +\newcommand\@@eqdef{\stackrel{\upDelta}{=}} \mm@macro{eqdef}{\@ifstar{\@@eqdef}{\@eqdef}} \mm@macro{unbr}{\underbrace} \mm@macro{iif}{if and only if\xspace} +\mm@macro{then}{\implies} -\mm@macro{then}{\ \Longrightarrow \ \mbox{} } \@ifundefined{txt}{ \providecommand*{\txt}[1]{\quad\text{#1}\quad} }{ \mm@warning{txt} } -\mm@macro{mul}{\mathord{\times}} +\mm@macro{mul}{\mathclose{}\mathord{\times}\mathopen{}} \@ifundefined{pow}{ \providecommand*{\pow}[2]{\left( #1 \right)^{\!#2}} }{ \mm@warning{pow} } \@ifundefined{abs}{ - \providecommand*{\abs}[1]{\left\vert#1\right\vert} }{ + \providecommand*{\abs}[1]{{\left\vert#1\right\vert}} }{ \mm@warning{abs} } \@ifundefined{lfrac}{ \providecommand*{\lfrac}[3][7mu]{% |