Hello,
I would like to define an inert head, say "H", such that H[tens,n] is printed as "H^n tens".
If I define
DefInertHead[H]
PrintAs[H]^="H"
I have that, for example, H[tens,2] is printed as "H tens".
I know that it should be possible because the command Perturbation[tens,2] in xPert correctly prints the second argument as a power. The H head that I define also has most of the properties of Perturbation, eg it satisfies Leibnitz, if it can be useful. I tried to understand how it was done for Perturbation, but I did not get it.
Options to print with any other type of additional labels would also be appreciated.
Thank you in advance
Omar