I m using the braket notation to write a physics report (with the braket package). Writing a plus and a minus within a ket or a bra looks really ugly (bra is < | and ket is | > )
Are there any ideas on how to make it look better? having a line like this:
|1,-1>=<--|1, -1>|-->+<-+|1, -1>|-+>+<+-|1, -1>|+ -> etc
is pretty unreadable in the pdf, as the pluses/minuses inside and outside the braket notation are indistinguishable. The idea is that a smaller or smaller and thicker plus/minus only within the braket notation would make it more readable, only I don't know if such a symbol exists. Would I have to create it manually? I d like to avoid that, as it would decrease my typing speed seriously, even with a shortcut..
Best Answer
I am not too sure what font to use for the internal
+
and-
, so I just used\hbox{\texttt{+}}
. In TeX, each character has a\mathcode
, describing its behavious in maths. All of them lie between"0000
and"7FFF
(in hexadecimal), except the special mathcode"8000
, which makes the character act like an active character. Within the group which\bra
,\ket
and\braket
define, I get+
and-
to be active and expand to\braket@inner@minus
and\braket@inner@plus
.