I did find that useful, thankyou, though it wasn't what I wanted. I'll try to make myself clearer: Suppose I have a whole lot of derivatives to define in my source code. For example, suppose I want to define partial derivatives with respect to x,y,z,t and \alpha as \dex,\dey,\dez,\det,\dea. Usually, what I'd do is give
Code: Select all
\newcommand\dei[2]{\frac{\partial #1}{\partial #2}}
\newcommand\dex[1]{\dei{#1}x}
\newcommand\dey[1]{\dey{#1}y}
\newcommand\dez[1]{\dez{#1}z}
\newcommand\det[1]{\det{#1}t}
\newcommand\dea[1]{\det{#1]\alpha}
but I want to define a \DeclarePartialDerivative command which defines the same commands, but is written in source as
Code: Select all
\DeclarePartialDerivative{x}{x}
\DeclarePartialDerivative{y}{y}
\DeclarePartialDerivative{z}{z}
\DeclarePartialDerivative{t}{t}
\DeclarePartialDerivative{a}{\alpha}
how could I do?