I would like to print $a^\dagger$ (meaning conjugate transpose), but using Mathematica library function ConjugateTranspose[a] (displayed as $a^\dagger$ when typing a Ctrl-7 Esc c t Esc) and printing it would just yield plain text, a.k.a.
ConjugateTranspose[a]
I found a solution to replace all ConjugateTranpose[#] to SuperDagger[#], but then it will either produce the result per se, or with HoldForm or Unevaluated, produce the expression:
ConjugateTranspose[a].a/.ConjugateTranspose[#]->SuperDagger[#]
You see, the replacement is also held.
Anyway, how can I print a daggered version of conjugate transpose?
ClearAll[a]; ConjugateTranspose[a] // TraditionalFormI did not know aboutSuperDagger. That seems to work also on V 13.1 So what exactly is the problem again? Could you post complete example that you are having problem with? – Nasser Sep 03 '22 at 05:22