]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FTexToPngPlugin
Set PhpWiki version to 1.5.4
[SourceForge/phpwiki.git] / pgsrc / Help%2FTexToPngPlugin
1 Date: Mon, 29 Jun 2015 12:04:28 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.5.4)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FTexToPngPlugin;
5   flags=PAGE_LOCKED;
6   charset=UTF-8
7 Content-Transfer-Encoding: binary
8
9 Converts TeX to an image. May be used to embed formulas in ~PhpWiki.
10
11 == Usage ==
12 {{{
13 <<TexToPng arguments>>
14 }}}
15
16 == Arguments ==
17
18 {| class="bordered"
19 |-
20 ! Argument
21 ! Description
22 ! Default value
23 |-
24 | **tex**
25 | TeX Commands (default: text mode), use $...$ for inline math formula style and $$...$$ for large formula style
26 |
27 |-
28 | **magstep**
29 | magnify image by (1.2 to the magstep)
30 |
31 |-
32 | **img**
33 | Image type (png, jpeg or gif), if chosen image type is not available use the first possible from png, gif, jpeg (in that order)
34 | png
35 |-
36 | **subslash**
37 | on or off: substitute slashes by backslashes (to avoid the backslash bug of the database pear interface)
38 | off
39 |-
40 | **antialias**
41 | on or off: render ps to img with antialias option. This produces higher quality output but is slower and needs more disk space.
42 |
43 |-
44 | **transparent**
45 | on or off: produce transparent background instead of white background. Seems to be buggy (in pstoimg - not my fault)
46 |
47 |-
48 | **center**
49 | on or off
50 | off
51 |}
52
53
54 == Examples ==
55
56 This produces a little help screen:
57 {{{
58 <<TexToPng>>
59 }}}
60
61 <<TexToPng>>
62
63 A simple formula:
64 {{{
65 <<TexToPng tex="$x^2$" >>
66 }}}
67
68 <<TexToPng tex="$x^2$" >>
69
70 A more complex formula:
71 {{{
72 <<TexToPng tex="$$/int^/infty_{-/infty} dx {1 /over /sqrt {x^2+1}}$$" subslash="on" >>
73 }}}
74 <<TexToPng tex="$$/int^/infty_{-/infty} dx {1 /over /sqrt {x^2+1}}$$" subslash="on" >>
75
76 == Author ==
77 * Johannes Große
78
79 == See Also ==
80
81 <noinclude>
82 ----
83 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
84 </noinclude>