# Problem with the MathJax rendering of the Hermitian adjoint of an operator $\dagger$ when written as \dag

Normally it is enough just to write \dag, i.e. as in A^{\dag}, but it doesn't work here: $$A^{\dag}.$$

## 2 Answers


I actually use $\newcommand\ket[1]{\left| #1 \right>}$ quite often in quantum physics related posts, so I can confirm it works.

• genius! IQ good look thought – user8784 Jun 7 '12 at 9:48
• Sorry I can't see the trick since I can't edit and latex commands say "\dag" again :O – More Anonymous Sep 17 '19 at 13:58
• @MoreAnonymous :O I'm ashamed by this enigmatic old post of mine. It should be clearer now, after edit – Frédéric Grosshans Sep 17 '19 at 18:52
• It's okay .. I figured this works too \dagger – More Anonymous Sep 17 '19 at 18:55
• Please don't use newcommand in MathJax as this becomes a global setting for all users on the page. Just use the long commands, it's not much of a burden to not be lazy. – Kyle Kanos Sep 17 '19 at 22:48

Not all LaTeX commands are supported. We use MathJax for LaTeX rendering, and the list of macros that are implemented is given on their website. In this case you can use \dagger instead.