]> sipb.mit.edu Git - ikiwiki.git/blob - doc/ikiwiki/directive/teximg.mdwn
response
[ikiwiki.git] / doc / ikiwiki / directive / teximg.mdwn
1 The `teximg` directive is supplied by the [[!iki plugins/teximg desc=teximg]] plugin.
2
3 This directive renders LaTeX formulas into images.
4
5 ## examples
6
7         \[[!teximg code="\frac{1}{2}"]]
8         \[[!teximg code="E = - \frac{Z^2 \cdot  \mu \cdot e^4}{32\pi^2 \epsilon_0^2 \hbar^2 n^2}" ]]
9
10 To scale the image, use height=x:
11
12         \[[!teximg code="\frac{1}{2}" height="17"]]
13         \[[!teximg code="\frac{1}{2}" height="8"]]
14
15 If no height is chosen the default height 12 is used. Valid heights are: 8, 9,
16 10, 11, 12, 14, 17, 20. If another height is entered, the closest available
17 height is used.
18
19 To add an alt text to the image, use alt="text":
20
21         \[[!teximg code="\frac{1}{2}" alt="1/2"]]
22
23 [[!meta robots="noindex, follow"]]