I am writing several equations of quantum mechanics and I have managed to create commands for ket, bra, product and mean as follow:
Code: Select all
\newcommand{\mean}[1]{\lf\langle #1\ri\rangle}
\newcommand{\bra}[1]{\lf\langle #1|\ri.}
\newcommand{\ket}[1]{\lf. |#1\ri\rangle}
\newcommand{\product}[2]{\lf\langle #1 | #2 \ri\rangle}
\langle
and the \rangle
are ok but I did not find any way to adapt automatically the size of the | Do you have any idea how to do it.
I am sure that this problem has been already fixed by someone and I am sorry if my email is redundant with another one.
regards
mnemo