I got to know that \left
and \right
allow us to automatically adjust the sizes of brackets. I'm currently working on some documents of Quantum Physics with so-called Dirac notations of bra and ket, made of \langle
, |
and \rangle
.
Typically, there are 5 types of combinations: |a>
, <b|
, <a>
, <a|b>
and <a|c|b>
. It is easy to use \left
and \right
for the first 3 types, how can I make automatic adjustment for all the symbols?
Best Answer
You could use
braket
, where the commands\bra
,\ket
and\braket
have the “automatic extended” variants\Bra
,\Ket
and\Braket
.Or you can make your own commands. Here each of the
\bra
,\ket
and\braket
command accepts an optional size argument (\big
,\Big
,\bigg
or\Bigg
), or a*
for the automatically extensible version.