IPython (Jupyter) MathJaX preamble
Question How can I setup a MathJax "preamble" for use in IPython (or Jupyter) notebooks for repeated use in a way that is convenient for others to read my documents (on http://nbviewer.org ) and that works for LaTeX/PDF generation? Background I would like to use IPython (now Jupyter) notebooks for documents that I later convert to PDF via LaTeX (using ipython nbconvert ). The problem is how to include a bunch of macro definitions that I use in almost every document. Something like: \newcommand{\vect}[1]{\vec{#1}} \newcommand{\abs}[1]{\lvert#1\rvert} \DeclareMathOperator{\erf}{erf} etc. As far