]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/plugins/teximg.mdwn
commit.
[git.ikiwiki.info.git] / doc / plugins / teximg.mdwn
1 [[template id=plugin name=teximg author="[[PatrickWinnertz]]"]]
2 [[tag type/chrome type/slow]]
4 This plugin renders LaTeX formulas into images.
6 ## examples
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}" ]]
12 To scale the image, use height=x:
14         \[[teximg code="\ce{[Cu(NH3)3]^{2+}}" height="17"]]
15         \[[teximg code="\ce{[Cu(NH3)3]^{2+}}" height="8"]]
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.
21 To add an alt text to the image, use alt="text":
23         \[[teximg code="\frac{1}{2}" alt="1/2"]]
25 See [this site](http://www.der-winnie.de/opensource/gsoc2007) for rendered images.