Name | Last modified | Size | Description | |
---|---|---|---|---|

Parent Directory | - | |||

rst2html.py | 22-Mar-2013 08:15 | 762 | ||

latex_directive.py | 22-Mar-2013 08:15 | 3.2K | ||

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

There is a role called `latex` that can be used for inline
latex expressions: `:latex:`$\psi(r) = \exp(-2r)$`` will
produce :m:`$\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:

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

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

No more info at this time.