fix snapshot creation, and put snapshots on sourceforge.net directly (not via ftp...
[docutils.git] / sandbox / latex_directive / README.txt
blob1b2fd450afe0fc4ab8d3bb9a94da827e6285edf8
1 ==============
2  Latex README
3 ==============
5 .. role:: m(latex)
7 Overview
8 ========
10 The idea is to convert latex fragments into *png* for display in html
11 model.
13 Role and directive
14 ==================
16 There is a role called ``latex`` that can be used for inline
17 latex expressions: ``:latex:`$\psi(r) = \exp(-2r)$``` will
18 produce :m:`$\psi(r)=\exp(-2r)$`.  Inside the back-tics you can write
19 anything you would write in a LaTeX ducument.
21 For producing displayed math (like an ``equation*`` environment in a
22 LaTeX document) there is a ``latex`` role.  If you write::
24   .. latex-math::
26      $\psi(r) = e^{-2r}$
28 you will get:
30 .. latex::
32    $\psi(r) = e^{-2r}$
36 Example
37 =======
39 Role
40 ----
42 You can use roles for inline stuff:  :latex:`$e=mc^2$`.  Lots of fun.
44 Or how about: :m:`$x = (-b \pm \sqrt{b^2 - 4ac}) / 2a$`
46 Directive
47 ---------
51 .. latex::
52    
53    $$-1 = e^{i\pi}$$
54    
55 More info
56 =========
58 No more info at this time.
59