summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mismath/mismath.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-09 21:22:38 +0000
committerKarl Berry <karl@freefriends.org>2019-05-09 21:22:38 +0000
commit77f661c409d3236073d4796d376ecf1ad412be49 (patch)
treebbc02feba89e061d42ca89e332bc3212f1335ada /Master/texmf-dist/tex/latex/mismath/mismath.sty
parentb861fecdf19a61679a351bf9620bc69fb74f2e92 (diff)
mismath (9may19)
git-svn-id: svn://tug.org/texlive/trunk@51062 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mismath/mismath.sty')
-rw-r--r--Master/texmf-dist/tex/latex/mismath/mismath.sty18
1 files changed, 10 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/mismath/mismath.sty b/Master/texmf-dist/tex/latex/mismath/mismath.sty
index 518bb153c41..71f81e4b0a3 100644
--- a/Master/texmf-dist/tex/latex/mismath/mismath.sty
+++ b/Master/texmf-dist/tex/latex/mismath/mismath.sty
@@ -22,8 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{mismath}
- [2019/04/27 v1.2 .dtx mismath file]
-
+ [2019/05/08 v1.3 .dtx mismath file]
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{amsmath}}
\ProcessOptions \relax
@@ -32,18 +31,20 @@
\RequirePackage{ifthen}
\RequirePackage{xspace}
\RequirePackage{mathtools}
+\RequirePackage[frac,root]{mathfixs}
+{\catcode`\|=\z@ \catcode`\\=12 |gdef|bslash{\}} % the \bslash command
\newcommand\@mwarning[1]{
\PackageWarning{mismath}{
- Command \ #1 already exist and will not be redefined
- } % TODO \bslash from doc.sty doesn't produce a blank space after \
+ 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
-\ifthenelse{\equal{#1}{}}{
+\newcommand\@moperator[3][]{% this macro is ugly, TODO: by default #1=#3
+ \ifthenelse{\equal{#1}{}}{
\@ifundefined{#3}{
\DeclareMathOperator{#2}{#3}
}{\@mwarning{#3}}
@@ -54,14 +55,14 @@
}
}
-\DeclareSymbolFont{up}{\encodingdefault}{\familydefault}{m}{n}
-
\providecommand{\mathup}[1]{{\operatorfont #1}}
\@mmacro{e}{\mathup{e}}
\AtBeginDocument{\let\oldi\i \let\oldj\j
\renewcommand{\i}{\TextOrMath{\oldi}{\mathup{i}}}
\renewcommand{\j}{\TextOrMath{\oldj}{\mathup{j}}}
}
+
+\DeclareSymbolFont{up}{\encodingdefault}{\familydefault}{m}{n}
\newcommand{\enumber}{
\AtBeginDocument{\DeclareMathSymbol{e}\mathalpha{up}{`e}}
}
@@ -164,6 +165,7 @@
\@mmacro{ds}{\displaystyle}
\@mmacro{dlim}{\lim\limits}
\@mmacro{dsum}{\sum\limits}
+\@mmacro{dprod}{\prod\limits}
\@mmacro{dcup}{\bigcup\limits}
\@mmacro{dcap}{\bigcap\limits}
\@mmacro{lbar}{\overline}