Latex README

Overview

The idea is to convert latex fragments into png for display in html model.

Role and directive

There is a role called latex that can be used for inline latex expressions: :latex:`$\psi(r) = \exp(-2r)$` will produce $\psi(r)=\exp(-2r)$. Inside the back-tics you can write anything you would write in a LaTeX ducument.

For producing displayed math (like an equation* environment in a LaTeX document) there is a latex role. If you write:

.. latex-math::

   $\psi(r) = e^{-2r}$

you will get:

$\psi(r) = e^{-2r}$

Example

Role

You can use roles for inline stuff: $e=mc^2$. Lots of fun.

Or how about: $x = (-b \pm \sqrt{b^2 - 4ac}) / 2a$

More info

No more info at this time.