Rewrite patterns#
- partialderivative-two-args
\partialderivative{#1}{#2}\pdv{#1}{#2} - partialderivative-star
\partialderivative*{#1}{#2}\pdv*{#1}{#2} - partialderivative-order
\partialderivative[#1]{#2}{#3}\pdv[#1]{#2}{#3} - partialderivative-single-arg
\partialderivative{#1}\pdv{#1} - partialderivative-three-args
\partialderivative{#1}{#2}{#3}\pdv{#1}{#2}{#3} - pderivative-two-args
\pderivative{#1}{#2}\pdv{#1}{#2} - pderivative-star
\pderivative*{#1}{#2}\pdv*{#1}{#2} - pderivative-order
\pderivative[#1]{#2}{#3}\pdv[#1]{#2}{#3} - pderivative-single-arg
\pderivative{#1}\pdv{#1} - pderivative-three-args
\pderivative{#1}{#2}{#3}\pdv{#1}{#2}{#3}
Examples#
Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.
pdv alias jacobian entry#
Rendering verified with the declared packages.
partialderivative long alias#
Rendering verified with the declared packages.
partialderivative star alias#
Rendering verified with the declared packages.
partialderivative order alias#
Rendering verified with the declared packages.
partialderivative single arg alias#
Rendering verified with the declared packages.
partialderivative mixed alias#
Rendering verified with the declared packages.
Remaining 4 examples#
Listed as LaTeX source. Hover over, focus, or tap a row to preview the rendering before and after. Each renders the same as its input with the declared packages.
| Example | Before | After this rule |
|---|---|---|
| pderivative star alias | \pderivative*{f}{x} | \pdv*{f}{x} |
| pderivative order alias | \pderivative[n]{f}{x} | \pdv[n]{f}{x} |
| pderivative single arg alias | \pderivative{x} f(x,y) | \pdv{x} f(x,y) |
| pderivative mixed alias | \pderivative{f}{x}{y} | \pdv{f}{x}{y} |
Related rules#
Downstream rules#
physics/pdv-to-frac-partialExpand pdv forms to explicit partial-derivative fractions.
Same family#
physics/derivative-to-dvCollapse derivative to the compact dv command.physics/functional-derivative-to-fdvCollapse long functional derivative names to the fdv command.physics/vectorarrow-to-vaCollapse vectorarrow to the short va helper.physics/vectorbold-to-vbCollapse vectorbold to the short vb helper.physics/vectorunit-to-vuCollapse vectorunit to the short vu helper.physics/dv-to-frac-dExpand dv forms to explicit d-based derivative fractions.physics/fdv-to-frac-deltaExpand fdv forms to explicit delta-based derivative fractions.physics/pdv-to-frac-partialExpand pdv forms to explicit partial-derivative fractions.physics/va-to-vec-mathbfCanonicalize va to an explicit vec-wrapped mathbf form.physics/vb-to-mathbfCanonicalize vb to an explicit mathbf wrapper.physics/vu-to-hat-mathbfCanonicalize vu to an explicit hat-wrapped mathbf form.
Notes#
Alias rewrite: partialderivative, pderivative, and pdv share the same physics Derivative handler and argspec, so star, optional order, one-argument, and mixed-partial forms are preserved by renaming the command. The optional order branch is intentionally represented with two braced arguments because MathJax ignores that order when more derivative variables are supplied.
Disable this rule#
TransformEngine(profile="corpus", disable_rules=["physics/partial-derivative-to-pdv"])new TransformEngine({ profile: 'corpus', disableRules: ['physics/partial-derivative-to-pdv'] })