summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/commath/commath.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/commath/commath.sty')
-rw-r--r--Master/texmf-dist/tex/latex/commath/commath.sty42
1 files changed, 33 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/commath/commath.sty b/Master/texmf-dist/tex/latex/commath/commath.sty
index 19b5875fe47..76a60c9e9e7 100644
--- a/Master/texmf-dist/tex/latex/commath/commath.sty
+++ b/Master/texmf-dist/tex/latex/commath/commath.sty
@@ -1,18 +1,16 @@
%%% ====================================================================
%%% @LaTeX-file{
%%% filename = "commath.sty",
-%%% version = "0.2",
-%%% date = "2005",
-%%% checksum = "",
+%%% version = "0.3",
+%%% date = "2006",
%%% author = "Wolfgang Putschögl",
%%% address = "Johann Radon Institute for Computational and Applied Mathematics (RICAM)
%%% Austrian Academy of Sciences
-%%% Altenbergerstraße 54
+%%% Altenbergerstraße 69
%%% A-4040 Linz, Austria",
%%% email = "Wolfgang.Putschoegl@oeaw.ac.at",
%%% codetable = "Western European, iso 8859-15",
%%% keywords = "LaTeX",
-%%% abstract = "",
%%% }
%%% ====================================================================
\NeedsTeXFormat{LaTeX2e} % LaTeX 2.09 can't be used (nor non-LaTeX)
@@ -23,6 +21,8 @@
% Differential (upface d)
\DeclareMathOperator{\dif}{d \!}
+% Derivative (upface D)
+\DeclareMathOperator{\Dif}{D \!}
% Command for partial derivatives. The first argument denotes the function and the second argument denotes the variable with respect to which the derivative is taken. The optional argument denotes the order of differentiation. The style (text style/display style) is determined automatically
\providecommand{\pd}[3][]{\ensuremath{
@@ -44,8 +44,30 @@
\dfrac{\partial{^{#1}}#2}{\partial{#3^{#1}}}
}}}
-% normal derivative - analogous to the partial derivative command
-\providecommand{\nd}[3][]{\ensuremath{
+% mixed derivative - analogous to the partial derivative command
+% \md{f}{5}{x}{2}{y}{3}
+\providecommand{\md}[6]{\ensuremath{
+\ifinner
+\tfrac{\partial{^{#2}}#1}{\partial{#3^{#4}}\partial{#5^{#6}}}
+\else
+\dfrac{\partial{^{#2}}#1}{\partial{#3^{#4}}\partial{#5^{#6}}}
+\fi
+}}
+
+% \tpd[2]{f}{k} denotes the second partial derivative of f with respect to k
+% The first letter t means "text style"
+\providecommand{\tmd}[6]{\ensuremath{\mathinner{
+\tfrac{\partial{^{#2}}#1}{\partial{#3^{#4}}\partial{#5^{#6}}}
+}}}
+% \dpd[2]{f}{k} denotes the second partial derivative of f with respect to k
+% The first letter d means "display style"
+\providecommand{\dmd}[6]{\ensuremath{\mathinner{
+\dfrac{\partial{^{#2}}#1}{\partial{#3^{#4}}\partial{#5^{#6}}}
+}}}
+
+
+% ordinary derivative - analogous to the partial derivative command
+\providecommand{\od}[3][]{\ensuremath{
\ifinner
\tfrac{\dif{^{#1}}#2}{\dif{#3^{#1}}}
\else
@@ -53,13 +75,15 @@
\fi
}}
-\providecommand{\tnd}[3][]{\ensuremath{\mathinner{
+\providecommand{\tod}[3][]{\ensuremath{\mathinner{
\tfrac{\dif{^{#1}}#2}{\dif{#3^{#1}}}
}}}
-\providecommand{\dnd}[3][]{\ensuremath{\mathinner{
+\providecommand{\dod}[3][]{\ensuremath{\mathinner{
\dfrac{\dif{^{#1}}#2}{\dif{#3^{#1}}}
}}}
+
+
\providecommand{\thmref}[1]{Theorem~\ref{#1}}
\providecommand{\exref}[1]{Example~\ref{#1}}
\providecommand{\defnref}[1]{Definition~\ref{#1}}