%%
%% Some commands for convenient Dirac BraKet notation.
%% braket.sty provides the four commands
%% \bra{a} for typesetting <a|
%% \ket{a}                 |a>
%% \braket{a}{b}           <a|b>
%% \obraket{a}{b}{c}      <a|b|c>
%%
%% in such a way that the delimiters have all the same size.
%%
%% another four commands \sbra, \sket, \sbraket, and \sobraket
%% provide the same notation, but with smallest size delimiters
%% throughout
%%
%% By Jochen Autschbach, EMail: jochena@buffalo.edu
%%
\def\fileversion{1.0}
\def\filedate{2000/12/15}
%%
%%
%% Dirac bras & kets
                                %
\newcommand{\bra}[1]{\ensuremath{\left \langle #1 \right | }}
                                %
\newcommand{\sbra}[1]{\ensuremath{\langle #1 \, | }}
                                %
\newcommand{\ket}[1]{\ensuremath{\left | #1 \right \rangle }}
                                %
\newcommand{\sket}[1]{\ensuremath{ |\,  #1 \rangle }}
                                %
%% braket with operator in between, automatic delimiter size
\newcommand{\obraket}[3]{\ensuremath{%
\left \langle \vphantom{#3 #2} #1 \right | #2 \left | \vphantom{#1 #2} #3
\right \rangle
}}
                                %
%% braket with operator in between, small delimiter size
\newcommand{\sobraket}[3]{\ensuremath{%
\langle #1 \, |\,  #2\,  |\,  #3 \rangle
}}
                                %
%% braket withour operator in between (scalar product), automatic
%% delimiter size
\newcommand{\braket}[2]{\ensuremath{%
\left \langle \vphantom{#2} #1 \right | \left . \vphantom{#1} #2 \right
\rangle
}}
                                %
%% braket withour operator in between (scalar product), small delimiters
\newcommand{\sbraket}[2]{\ensuremath{%
\langle  #1\,  |\,   #2 \rangle
}}
                                %
%%
%%
\NeedsTeXFormat{LaTeX2e} %% Not necessarily
\ProvidesPackage{jobraket}[\filedate\space V\space\fileversion
                      \space provides proper Dirac BraKet notation]
\typeout {Package: `jobraket:' \fileversion\space <\filedate> 
Dirac BraKet notation} 
\endinput
