Permalink
Browse files

Fix bug where \expect and \project would be defined even without braket

  • Loading branch information...
1 parent 746fd56 commit 7f27a430f42b0f1b4eee35796801130ee8d4d176 @diazona committed Nov 7, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 physymb.dtx
View
@@ -691,15 +691,15 @@
\ifthenelse{\boolean{pbraket}}
{
\RequirePackage{braket}
-}
-{}
% \end{macrocode}
% Semantic Dirac notation, implemented on top of braket macros
% \begin{macrocode}
-\newcommand{\project}[2]{\ket{#1}#2\bra{#1}}
-\newcommand{\Project}[2]{\Ket{#1}#2\Bra{#1}}
-\newcommand{\expect}[1]{\braket{#1}}
-\newcommand{\Expect}[1]{\Braket{#1}}
+ \newcommand{\project}[2]{\ket{#1}#2\bra{#1}}
+ \newcommand{\Project}[2]{\Ket{#1}#2\Bra{#1}}
+ \newcommand{\expect}[1]{\braket{#1}}
+ \newcommand{\Expect}[1]{\Braket{#1}}
+}
+{}
% \end{macrocode}
% Here we load |siunitx| if the |units| option was passed.
% \begin{macrocode}
@@ -1024,4 +1024,4 @@
% \end{macrocode}
%
% \pagebreak[2]
-% \Finale
+% \Finale

0 comments on commit 7f27a43

Please sign in to comment.