I’m trying texmacs for the first time and already am running into difficulties creating my own macros. I tried creating macros for the firstorder partial derivative, the nthorder partial derivative, and the secondorder mixed derivative. The firstorder derivative works fine, but the nthorder and secondorder 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:

<assignpdv<macrofirstsecond<frac\partial first\partial second>>>

<assignpdvn<macrofirstsecondthird<frac<math\partial <rsupthird> first><math\partial second<rsupthird>>>>>

<assignpdvmix<macrofirstsecondthird<frac<math\partial <rsup2>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}}