mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 21:48:41 +00:00
Add bra-ket notation (#2162)
* Add bra-ket notation * Fix typo * Remove ketbra * Remove ketbra, add Bra and Ket * Add Bra/Ket and fix a typo in bra's source * Fix bra-ket typo in docs * Fix bra-ket escape typo in docs * Replace bra-ket pipe with \vert in docs
This commit is contained in:
committed by
Kevin Barabash
parent
800cdb2d23
commit
4b905064ab
@@ -930,6 +930,16 @@ defineMacro("\\argmin", "\\DOTSB\\operatorname*{arg\\,min}");
|
||||
defineMacro("\\argmax", "\\DOTSB\\operatorname*{arg\\,max}");
|
||||
defineMacro("\\plim", "\\DOTSB\\mathop{\\operatorname{plim}}\\limits");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// braket.sty
|
||||
// http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/braket/braket.pdf
|
||||
|
||||
defineMacro("\\bra", "\\mathinner{\\langle{#1}|}");
|
||||
defineMacro("\\ket", "\\mathinner{|{#1}\\rangle}");
|
||||
defineMacro("\\braket", "\\mathinner{\\langle{#1}\\rangle}");
|
||||
defineMacro("\\Bra", "\\left\\langle#1\\right|");
|
||||
defineMacro("\\Ket", "\\left|#1\\right\\rangle");
|
||||
|
||||
// Custom Khan Academy colors, should be moved to an optional package
|
||||
defineMacro("\\blue", "\\textcolor{##6495ed}{#1}");
|
||||
defineMacro("\\orange", "\\textcolor{##ffa500}{#1}");
|
||||
|
Reference in New Issue
Block a user