]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/teximg.mdwn
web commit by tschwinge: Response.
[ikiwiki.git] / doc / plugins / teximg.mdwn
1 [[template id=plugin name=teximg author="[[PatrickWinnertz]]"]]
2 [[tag type/chrome type/slow]]
3
4 This plugin renders LaTeX formulas into images.
5
6 ## examples
7
8         \[[teximg code="\ce{[Cu(NH3)3]^{2+}}"]]
9         \[[teximg code="\frac{1}{2}"]]
10         \[[teximg code="E = - \frac{Z^2 \cdot  \mu \cdot e^4}{32\pi^2 \epsilon_0^2 \hbar^2 n^2}" ]]
11
12 To scale the image, use height=x:
13
14         \[[teximg code="\ce{[Cu(NH3)3]^{2+}}" height="17"]]
15         \[[teximg code="\ce{[Cu(NH3)3]^{2+}}" height="8"]]
16
17 If no height is choosen the default height 12 is used. Valid heights are: 8, 9,
18 10, 11, 12, 14, 17, 20. If another height is entered, the closest available
19 height is used.
20
21 To add an alt text to the image, use alt="text":
22
23         \[[teximg code="\frac{1}{2}" alt="1/2"]]
24
25 See [this site](http://www.der-winnie.de/opensource/gsoc2007) for rendered images.