[Tex/LaTex] The Bra-Ket Notation in LaTeX


I want to write the following symbol in LaTeX:

enter image description here

I'm using the following (minimal) code:


    \ket \psi{(t)}

I don't however get the desired result. The $t$ symbol appears outside the ket, as opposed to the output in the figure. How do I fix this?

Best Answer

you've placed the (t) outside the scope of the \ket command.

just move the open brace before the \psi:

\ket {\psi(t)}.

off-topic: since amssymb loads amsfonts automatically, it's not necessary to specify them both.