diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:55:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:55:02 +0000 |
commit | 18f89b440332c1271e14f3a835ee6d4611bf0bed (patch) | |
tree | 068a82542e7b976cf579a0d0546b8e9925de84e9 /Master/texmf-dist/tex/latex/esdiff | |
parent | 91f6a50595e5936ee4bfa015bba61aeedde08fdf (diff) |
esdiff
git-svn-id: svn://tug.org/texlive/trunk@874 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/esdiff')
-rw-r--r-- | Master/texmf-dist/tex/latex/esdiff/esdiff.sty | 145 |
1 files changed, 145 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/esdiff/esdiff.sty b/Master/texmf-dist/tex/latex/esdiff/esdiff.sty new file mode 100644 index 00000000000..ef8eec0a729 --- /dev/null +++ b/Master/texmf-dist/tex/latex/esdiff/esdiff.sty @@ -0,0 +1,145 @@ +%% +%% This is file `esdiff.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% esdiff.dtx (with options: `package') +%% +%% Package for the notation of derivatives. +%% Eddie Saudrais, 08/09/1999. +%% Version 1.1 +%% +%% If you found any bug, please contact me at +%% eddie.saudrais@wanadoo.fr. +%% Maybe there is a new version at +%% http://perso.wanadoo.fr/eddie.saudrais/latex/latex.html +%% +%% Run LaTeX on esdiff.ins to generate esdiff.sty +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{esdiff} +\newcommand{\taille}[1]{\displaystyle{#1}} +\newcommand{\difint}{\mkern 0mu} +\newcommand{\derpint}{\mkern 0mu} +\newcommand{\croisint}{\mkern 0mu} +\newcommand{\dop}{\mathrm{d}} +\DeclareOption{display}{\renewcommand{\taille}[1]{\displaystyle{#1}}} +\DeclareOption{text}{\renewcommand{\taille}[1]{\textstyle{#1}}} +\DeclareOption{roman}{\renewcommand{\dop}{\ensuremath{\mathrm{d}}}} +\DeclareOption{italic}{\renewcommand{\dop}{\ensuremath{d}}} +\DeclareOption{thin}{\renewcommand{\difint}{\ensuremath{\,}}} +\DeclareOption{med}{\renewcommand{\difint}{\ensuremath{\;}}} +\DeclareOption{big}{\renewcommand{\difint}{\ensuremath{\:}}} +\DeclareOption{thinp}{\renewcommand{\derpint}{\ensuremath{\,}}} +\DeclareOption{medp}{\renewcommand{\derpint}{\ensuremath{\;}}} +\DeclareOption{bigp}{\renewcommand{\derpint}{\ensuremath{\:}}} +\DeclareOption{thinc}{\renewcommand{\croisint}{\ensuremath{\,}}} +\DeclareOption{medc}{\renewcommand{\croisint}{\ensuremath{\;}}} +\DeclareOption{bigc}{\renewcommand{\croisint}{\ensuremath{\:}}} +\ProcessOptions\relax +\def\diff{\@ifstar{\diffstar}{\diffnostar}} +\def\diffstar{\@ifnextchar[{\@diffstar}{\@@diffstar}} +\def\@diffstar[#1]#2#3#4{\mathchoice{\left(\frac{\dop^{#1}\difint#2}% +{\dop\difint#3^{#1}}\right)_{\mkern-7mu#4}}% +{\taille{\left(\frac{\dop^{#1}\difint#2}% +{\dop\difint#3^{#1}}\right)_{\mkern-7mu#4}}}% +{\scriptstyle{\left(\frac{\dop^{#1}\difint#2}% +{\dop\difint#3^{#1}}\right)_{\mkern-7mu#4}}}% +{\scriptstyle{\left(\frac{\dop^{#1}\difint#2}% +{\dop\difint#3^{#1}}\right)_{\mkern-7mu#4}}}} +\def\@@diffstar#1#2#3{\mathchoice{\left(\frac{\dop\difint#1}% +{\dop\difint#2}\right)_{\mkern-7mu#3}}% +{\taille{\left(\frac{\dop\difint#1}{\dop\difint#2}% +\right)_{\mkern-7mu#3}}}{\scriptstyle{\left(% +\frac{\dop\difint#1}{\dop\difint#2}\right)% +_{\mkern-7mu#3}}}% +{\scriptstyle{\left(\frac{\dop\difint#1}{\dop\difint#2}\right)% +_{\mkern-7mu#3}}}} +\def\diffnostar{\@ifnextchar[{\@diffnostar}{\@@diffnostar}} +\def\@diffnostar[#1]#2#3{\mathchoice{\frac{\dop^{#1}\difint#2}% +{\dop\difint#3^{#1}}}% +{\taille{\frac{\dop^{#1}\difint#2}{\dop\difint#3^{#1}}}}% +{\scriptstyle{\frac{\dop^{#1}\difint#2}{\dop\difint#3^{#1}}}}% +{\scriptstyle{\frac{\dop^{#1}\difint#2}{\dop\difint#3^{#1}}}}} +\def\@@diffnostar#1#2{\mathchoice% +{\frac{\dop\difint#1}{\dop\difint#2}}% +{\taille{\frac{\dop\difint#1}{\dop\difint#2}}}% +{\scriptstyle{\frac{\dop\difint#1}{\dop\difint#2}}}% +{\scriptstyle{\frac{\dop\difint#1}{\dop\difint#2}}}} +\def\diffp{\@ifstar{\diffpstar}{\diffpnostar}} +\def\diffpstar{\@ifnextchar[{\@diffpstar}{\@@diffpstar}} +\def\@diffpstar[#1]#2#3#4{\mathchoice{\left(\frac{\partial^{#1}% +\derpint#2}{\partial\derpint#3^{#1}}\right)_{\mkern-7mu#4}}% +{\taille{\left(\frac{\partial^{#1}\derpint#2}{\partial\derpint#3^{#1}}% +\right)_{\mkern-7mu#4}}}% +{\scriptstyle{\left(\frac{\partial^{#1}\derpint#2}% +{\partial\derpint#3^{#1}}% +\right)_{\mkern-7mu#4}}}% +{\scriptstyle{\left(\frac{\partial^{#1}\derpint#2}% +{\partial\derpint#3^{#1}}% +\right)_{\mkern-7mu#4}}}} +\def\@@diffpstar#1#2#3{\mathchoice{\left({\begingroup + \toks0={}\count0=0 + \degree #2\degree + \frac{\partial\ifnum\count0>1^{\the\count0 }\fi\derpint#1}% + {\the\toks0}% + \endgroup}\right)_{\mkern-7mu#3}}% + {\taille{\left({\begingroup + \toks0={}\count0=0 + \degree #2\degree + \frac{\partial\ifnum\count0>1^{\the\count0 }\fi\derpint#1}% + {\the\toks0}% + \endgroup}\right)_{\mkern-7mu#3}}}% + {\scriptstyle{\left({\begingroup + \toks0={}\count0=0 + \degree #2\degree + \frac{\partial\ifnum\count0>1^{\the\count0 }\fi\derpint#1}% + {\the\toks0}% + \endgroup}\right)_{\mkern-7mu#3}}}% + {\scriptstyle{\left({\begingroup + \toks0={}\count0=0 + \degree #2\degree + \frac{\partial\ifnum\count0>1^{\the\count0 }\fi\derpint#1}% + {\the\toks0}% + \endgroup}\right)_{\mkern-7mu#3}}}} +\def\diffpnostar{\@ifnextchar[{\@diffpnostar}{\@@diffpnostar}} +\def\@diffpnostar[#1]#2#3{\mathchoice{\frac{\partial^{#1}\derpint#2}% +{\partial\derpint#3^{#1}}}% +{\taille{\frac{\partial^{#1}\derpint#2}{\partial\derpint#3^{#1}}}}% +{\scriptstyle{\frac{\partial^{#1}\derpint#2}{\partial\derpint#3^{#1}}}}% +{\scriptstyle{\frac{\partial^{#1}\derpint#2}{\partial\derpint#3^{#1}}}}} +\def\@@diffpnostar#1#2{\mathchoice{\begingroup + \toks0={}\count0=0 + \degree #2\degree + \frac{\partial\ifnum\count0>1^{\the\count0 }\fi\derpint#1}% + {\the\toks0}% + \endgroup}% + {\taille{\begingroup + \toks0={}\count0=0 + \degree #2\degree + \frac{\partial\ifnum\count0>1^{\the\count0 }\fi\derpint#1}% + {\the\toks0}% + \endgroup}}% + {\scriptstyle{\begingroup + \toks0={}\count0=0 + \degree #2\degree + \frac{\partial\ifnum\count0>1^{\the\count0 }\fi\derpint#1}% + {\the\toks0}% + \endgroup}}% + {\scriptstyle{\begingroup + \toks0={}\count0=0 + \degree #2\degree + \frac{\partial\ifnum\count0>1^{\the\count0 }\fi\derpint#1}% + {\the\toks0}% + \endgroup}}} +\def\degree #1{\ifx #1\degree \expandafter\stopd + \else \expandafter\addd \fi #1^1$#1\addd} +\def\stopd #1\addd{} +\def\addd #1^#2#3$#4\addd{\advance\count0 #2 + \toks0=\expandafter{\the\toks0% + {\partial\derpint #4}% + \croisint}\degree} +\endinput +%% +%% End of file `esdiff.sty'. |