I'm using the package braket for my physics notes, and this speeds things up a great deal but I'm constantly writing \ket{\psi} or \bra{\psi}, and because this specific pair of bra and ket appears so often, this gets repetitive and I would like a macro to speed this up. However since the braket package works only in math mode, my attempt \newcommand{\ketp}{$\ket{\psi}}$ work when I'm writing in text mode, but when I'm writing in mathmode it breaks (unsurprisingly).
Is there any way I can get this command to work in both mathmode and textmode without having to define two different macros, one for each?
Thanks in advance for any help.
P.S. I'm certain this is a very simple question but I could find little to no explanation of this feature.
\ensuremath{..\psi...}– David Carlisle Apr 20 '15 at 10:30