I’m trying texmacs for the first time and already am running into difficulties creating my own macros. I tried creating macros for the first-order partial derivative, the nth-order partial derivative, and the second-order mixed derivative. The first-order derivative works fine, but the nth-order and second-order mixed derivatives are not coming out as expected. The problem seems to be the inclusion of the third argument in the respective macros; instead of the third argument being displayed, the text ‘third’ is displayed. Some help would be appreciated. Here are my macros:
-
<assign|pdv|<macro|first|second|<frac|\partial first|\partial second>>>
-
<assign|pdvn|<macro|first|second|third|<frac|<math|\partial <rsup|third> first>|<math|\partial second<rsup|third>>>>>
-
<assign|pdvmix|<macro|first|second|third|<frac|<math|\partial <rsup|2>first>|\partial second \partial third>>>
Note: I wasn’t sure if the symbol ∂ would show on this page, so I simply wrote \partial above, and the space between ‘\partial’ and ‘first’ or ‘second’ or ‘third’ is absent in my actual macro.
And here are some sample outputs (I wrote them in LaTeX for easy copying and pasting into a LaTeX editor):
\frac{\partial y}{\partial x}
\frac{\partial^{\text{third}}y}{\partial x\partial \text{third}}
\frac{\partial^2 f}{\partial x\partial\text{third}}