X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/f760fcfa3fe4660831f30651c203c3c9686c7bae..c442831c392d42bb9a3b8373ee4bf3f6e3a11e57:/doc/plugins/tex.mdwn?ds=sidebyside diff --git a/doc/plugins/tex.mdwn b/doc/plugins/tex.mdwn index aebac26ed..52f90f6ab 100644 --- a/doc/plugins/tex.mdwn +++ b/doc/plugins/tex.mdwn @@ -1,8 +1,25 @@ [[template id=plugin name=tex author="[[PatrickWinnertz]]"]] [[tag type/chrome type/slow]] -This plugin renders LaTeX code into an image and inserts it into the page. +This plugin renders LaTeX formulas into images, which are rendered automatically when you save this site. -# examples +Scaling of this images is of course also possible, possible heights are: - \[[tex code="\ce{[Cu(NH3)3]^{2+}}"]] + 8,9,10,11,12,14,17,20 + +But is also work if you pic e.g. another height. The best fitting height is then used to generate the image. + +#Here are some examples how to use this plugin: + + [[tex code="\ce{[Cu(NH3)3]^{2+}}"]] + [[tex code="\frac{1}{2}"]] + [[tex code="E = - \frac{Z^2 \cdot \mu \cdot e^4}{32\pi^2 \epsilon_0^2 \hbar^2 n^2}" ]] + +in order to scale this images use height=x: + + [[tex code="\ce{[Cu(NH3)3]^{2+}}" height="17"]] + [[tex code="\ce{[Cu(NH3)3]^{2+}}" height="8"]] + +If no height is choosen the default height 12 is used. + +See [this site](http://www.der-winnie.de/opensource/gsoc2007) for rendered images. \ No newline at end of file