Index of /sandbox/latex_directive

[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory  -  
[   ]latex_directive.py22-Mar-2013 08:15 3.2K 
[TXT]rst2html.py22-Mar-2013 08:15 762  

Latex README

Latex README

System Message: ERROR/3 (../sandbox/latex_directive/README.txt, line 5)

Unknown interpreted text role "latex".

.. role:: m(latex)

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 :m:`$\psi(r)=\exp(-2r)$`. Inside the back-tics you can write anything you would write in a LaTeX ducument.

System Message: ERROR/3 (../sandbox/latex_directive/README.txt, line 16); backlink

Unknown interpreted text role "m".

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:

System Message: ERROR/3 (../sandbox/latex_directive/README.txt, line 30)

Unknown directive type "latex".

.. latex::

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



Example

Role

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

System Message: ERROR/3 (../sandbox/latex_directive/README.txt, line 42); backlink

Unknown interpreted text role "latex".

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

System Message: ERROR/3 (../sandbox/latex_directive/README.txt, line 44); backlink

Unknown interpreted text role "m".

Directive

System Message: ERROR/3 (../sandbox/latex_directive/README.txt, line 51)

Unknown directive type "latex".

.. latex::

   $$-1 = e^{i\pi}$$

More info

No more info at this time.