Created
June 9, 2018 17:38
-
-
Save sametz/6db971a36d7bc3acdd169ade80c5a7ee to your computer and use it in GitHub Desktop.
Dirac notation (bra/ket) LaTeX commands for use in Jupyter notebooks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Been a while since I looked at this. I tested this again with Jupyter Notebook, with default Conda installation. Nothing special was required...just entering the code into markdown worked. The
\newcommand
lines create newbra
,ket
, andbrakes
LaTeX commands that you can then use in your own markdown. As long as those\newcommand
lines appear in your notebook before the commands are invoked, it should just work.To see the Markdown in action, you should download the .ipynb and view it, but I'm copying all the markdown below so you can see the Markdown that was rendered in the notebook.