Diff: Help/TexToPngPlugin

Differences between current version and predecessor to the previous major change of Help/TexToPngPlugin.

Other diffs: Previous Revision, Previous Author

Newer page: version 6 Last edited on 17 January 2022 3:00 by harold
Older page: version 5 Last edited on 9 September 2007 0:16 by harold Revert
@@ -1,27 +1,78 @@
-_short description_  
+Converts TeX to an image. May be used to embed formulas in ~PhpWiki.  
  
-! Usage  
-<verbatim>  
- <?plugin TexToPng ? >  
-</verbatim>  
+== Usage ==  
+{{{  
+<< TexToPng arguments> >  
+}}}  
  
-! Arguments 
+== Arguments ==  
  
-page _ (default: current pagename )_ :  
- The page to execute upon
+{| class="bordered"  
+|-  
+! Argument  
+! Description  
+! Default value  
+|-  
+| **tex**  
+| TeX Commands (default: text mode ), use $...$ for inline math formula style and $$...$$ for large formula style  
+|  
+|-  
+| **magstep**  
+| magnify image by (1.2 to the magstep)  
+|  
+|-  
+| **img**  
+| Image type (png, jpeg or gif), if chosen image type is not available use the first possible from png, gif, jpeg (in that order)  
+| png  
+|-  
+| **subslash**  
+| on or off : substitute slashes by backslashes (to avoid the backslash bug of the database pear interface)  
+| off  
+|-  
+| **antialias**  
+| on or off: render ps to img with antialias option . This produces higher quality output but is slower and needs more disk space.  
+|  
+|-  
+| **transparent**  
+| on or off: produce transparent background instead of white background. Seems to be buggy (in pstoimg - not my fault)  
+|  
+|-  
+| **center**  
+| on or off  
+| off  
+|}  
  
-! Example  
  
-<verbatim>  
-<?plugin TexToPng ?>  
-</verbatim>  
+== Examples ==  
  
-<?plugin TexToPng ?
+This produces a little help screen:  
+{{{  
+< <TexToPng>>  
+}}}  
  
-! Author  
-PhpWiki:ReiniUrban  
+<<TexToPng>>  
  
-! See Also  
+A simple formula:  
+{{{  
+<<TexToPng tex="$x^2$" >>  
+}}}  
  
+<<TexToPng tex="$x^2$" >>  
+  
+A more complex formula:  
+{{{  
+<<TexToPng tex="$$/int^/infty_{-/infty} dx {1 /over /sqrt {x^2+1}}$$" subslash="on" >>  
+}}}  
+<<TexToPng tex="$$/int^/infty_{-/infty} dx {1 /over /sqrt {x^2+1}}$$" subslash="on" >>  
+  
+== Author ==  
+* Johannes Große  
+  
+== See Also ==  
+* [[Help:TeX2pngPlugin]]  
+* [[Help:text2pngPlugin]]  
+  
+<noinclude>  
 ---- 
-PhpWikiDocumentation Help:WikiPlugin  
+[[ PhpWikiDocumentation]] [[CategoryWikiPlugin]]  
+</noinclude>  

current version

Converts TeX to an image. May be used to embed formulas in PhpWiki.

Usage

<<TexToPng arguments>>

Arguments

Argument

Description

Default value

tex

TeX Commands (default: text mode), use $...$ for inline math formula style and $$...$$ for large formula style

magstep

magnify image by (1.2 to the magstep)

img

Image type (png, jpeg or gif), if chosen image type is not available use the first possible from png, gif, jpeg (in that order)

png

subslash

on or off: substitute slashes by backslashes (to avoid the backslash bug of the database pear interface)

off

antialias

on or off: render ps to img with antialias option. This produces higher quality output but is slower and needs more disk space.

transparent

on or off: produce transparent background instead of white background. Seems to be buggy (in pstoimg - not my fault)

center

on or off

off

Examples

This produces a little help screen:

<<TexToPng>>

A simple formula:

<<TexToPng tex="$x^2$" >>
$x^2$

A more complex formula:

<<TexToPng tex="$$/int^/infty_{-/infty} dx {1 /over /sqrt {x^2+1}}$$" subslash="on" >>
$$/int^/infty_{-/infty} dx {1 /over /sqrt {x^2+1}}$$

Author

  • Johannes Große

See Also