How to write LaTeX in IPython Notebook?

IPython notebook uses MathJax to render LaTeX inside html/markdown. Just put your LaTeX math inside $$.$$c = \sqrt{a^2 + b^2} Or you can display LaTeX / Math output from Python, as seen towards the end of the notebook tour: from IPython.display import display, Math, Latex display(Math(r’F(k) = \int_{-\infty}^{\infty} f(x) e^{2\pi i k} dx’))

Line spacing with Latex

LaTeX forces a straight right margin for completed lines, so it will space your words out to achieve that. You can tell it to hyphenate words instead by inserting \- into any hyphenation locations in the word you want to break, e.g. this is my thesis and it will be finished soon. the topic of … Read more