summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-11-30 23:33:48 +0000
committerKarl Berry <karl@freefriends.org>2012-11-30 23:33:48 +0000
commit8ab66d606786573ed631ffed697b63fc1a48c54c (patch)
treefbb0eec24d2116dd6a124d416b1fc31a4032088b /Master/texmf-dist/tex/latex
parente5046e6899a74738971f588716d03accf66cab88 (diff)
mdsymbol (29nov12)
git-svn-id: svn://tug.org/texlive/trunk@28399 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/mdsymbol/mdsymbol.sty68
1 files changed, 67 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/mdsymbol/mdsymbol.sty b/Master/texmf-dist/tex/latex/mdsymbol/mdsymbol.sty
index dd07a817920..7a4d476c323 100644
--- a/Master/texmf-dist/tex/latex/mdsymbol/mdsymbol.sty
+++ b/Master/texmf-dist/tex/latex/mdsymbol/mdsymbol.sty
@@ -24,7 +24,7 @@
%% and the derived files mdsymbol.pdf and mdsymbol.sty.
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesPackage{mdsymbol}[2012/01/07 v0.3 MdSymbol support package]
+\ProvidesPackage{mdsymbol}[2012/11/18 v0.5 MdSymbol support package]
\RequirePackage{xkeyval}
\newcommand*\mdsy@choicekey[3]{%
\define@choicekey*{mdsymbol.sty}{#1}[\@tempa\@tempb]{#2}{#3}%
@@ -733,6 +733,8 @@
\mdsy@DeclareSymbol{daleth}{symbols}{\mathord}
\mdsy@DeclareSymbol{wp}{symbols}{\mathord}
\mdsy@DeclareSymbol{nabla}{symbols}{\mathord}
+\mdsy@DeclareSymbol{smallprodi}{symbols}{\mathop}
+\mdsy@DeclareSymbol{smallcoprodi}{symbols}{\mathop}
\mdsy@setslot{0}
\mdsy@DeclareSymbol{equal}{relations}{\mathrel}
\mdsy@DeclareSymbol{equiv}{relations}{\mathrel}
@@ -1871,6 +1873,10 @@
\mdsy@DeclareAlias{dointclockwise}{largesymbols}{\mathop}
\mdsy@DeclareSymbol{tsumint}{largesymbols}{\mathop}
\mdsy@DeclareSymbol{dsumint}{largesymbols}{\mathop}
+\mdsy@DeclareSymbol{tprodi}{largesymbols}{\mathop}
+\mdsy@DeclareSymbol{dprodi}{largesymbols}{\mathop}
+\mdsy@DeclareSymbol{tcoprodi}{largesymbols}{\mathop}
+\mdsy@DeclareSymbol{dcoprodi}{largesymbols}{\mathop}
\mdsy@DeclareOperator{bigplus}{\dbigplus}{\tbigplus}
\mdsy@DeclareOperator{bigtimes}{\dbigtimes}{\tbigtimes}
@@ -1910,6 +1916,8 @@
\mdsy@DeclareOperator{modtwosum}{\dmodtwosum}{\tmodtwosum}
\mdsy@DeclareOperator{prod}{\dprod}{\tprod}
\mdsy@DeclareOperator{coprod}{\dcoprod}{\tcoprod}
+\mdsy@DeclareOperator{prodi}{\dprodi}{\tprodi}
+\mdsy@DeclareOperator{coprodi}{\dcoprodi}{\tcoprodi}
\mdsy@DeclareIntegral{int}{\dint}{\tint}
\mdsy@DeclareIntegral{iint}{\diint}{\tiint}
\mdsy@DeclareIntegral{iiint}{\diiint}{\tiiint}
@@ -2150,6 +2158,64 @@
}
\mdsy@DeclareRobustCommandArg{c@ncel}{2}{\m@th\ooalign{$\hfil#1/\hfil$\crcr$#1#2$}}
\mdsy@DeclareRobustCommandArg{not}{1}{\mathrel{\m@th\mathpalette\c@ncel{#1}}}
+\RequirePackage{calc}
+\newsavebox\overliningbox
+
+\def\ovlg@eat#1#2#3#4#5{\futurelet\ovlg@let@token\ovlg@eat@}
+\def\ovlg@eat@#1\ovlg@eat{%
+\ifx\ovlg@let@token\bgroup
+\else\ifx\ovlg@let@token\mathop
+ \mathop
+\else\ifx\ovlg@let@token\mathbin
+ \mathbin
+\else\ifx\ovlg@let@token\mathrel
+ \mathrel
+\else\ifx\ovlg@let@token\mathopen
+ \mathopen
+\else\ifx\ovlg@let@token\mathop
+ \mathop
+\else\ifx\ovlg@let@token\mathpunct
+ \mathpunct
+\else\ifcat.\ifcat a\noexpand\ovlg@let@token.\else\noexpand\ovlg@let@token\fi
+ \afterassignment\ovlg@mathchar\count@\mathcode`#1\relax\ovlg@eat
+\else\ifx\ovlg@let@token\mathchar
+ \afterassignment\ovlg@mathchar\expandafter\count@\@gobble#1\relax\ovlg@eat
+\else
+ \xdef\meaning@{\meaning\ovlg@let@token}%
+ \expandafter\ovlg@mchar@test\meaning@""\@nil
+\fi\fi\fi\fi\fi\fi\fi\fi\fi
+}
+
+\edef\ovlg@mchar@{\meaning\mathchar}
+
+\def\ovlg@mchar@test#1"#2"#3\@nil{%
+ \xdef\meaning@{#1}%
+ \ifx\meaning@\ovlg@mchar@
+ \count@"#2\relax
+ \ovlg@mathchar\ovlg@eat
+ \fi
+}
+
+\def\ovlg@mathchar#1\ovlg@eat{%
+ \divide\count@"1000 }
+
+\mdsy@DeclareRobustCommandArg{overlining}{1}{%
+\begingroup
+\let\protect\empty
+\expandafter\ovlg@eat\romannumeral`\Q#1\relax\ovlg@eat
+ \ifcase\count@
+ \or
+ \mathop\or
+ \mathbin\or
+ \mathrel\or
+ \mathopen\or
+ \mathclose\or
+ \mathpunct\or
+ \fi
+ {\text{\savebox\overliningbox{$\m@th#1$}\fboxsep\z@%
+ \makebox[0pt][l]{$\m@th#1$}%
+ \rule[\ht\overliningbox+1.2pt]{\wd\overliningbox}{.8\fontdimen8\textfont3}}}%
+\endgroup}
%%
%%
%% End of file `mdsymbol.sty'.