]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FTexToPngPlugin
pgsrc: update TexToPng doc
[SourceForge/phpwiki.git] / pgsrc / Help%2FTexToPngPlugin
1 Date: Mon, 28 Jul 2014 14:02:37 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.5.0)
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 {{{
57 <<TexToPng>>
58 }}}
59
60 <<TexToPng>>
61
62 This produces a little help screen:
63 {{{
64 <<TexToPng>>
65 }}}
66
67 <<TexToPng>>
68
69 A simple formula:
70 {{{
71 <<TexToPng tex="$x^2$" >>
72 }}}
73
74 <<TexToPng tex="$x^2$" >>
75
76 A more complex formula:
77 {{{
78 <<TexToPng tex="$$/int^/infty_{-/infty} dx {1 /over /sqrt {x^2+1}}$$" subslash="on" >>
79 }}}
80 <<TexToPng tex="$$/int^/infty_{-/infty} dx {1 /over /sqrt {x^2+1}}$$" subslash="on" >>
81
82 == Author ==
83 * Johannes Große
84
85 == See Also ==
86
87 <noinclude>
88 ----
89 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
90 </noinclude>