Plugin Equation
This Wiki Plugin renders an equation written in LaTeX syntax as an image.
Table of contents
Usage and Parameters
To use this plugin in a wiki page, use the syntax:
{EQUATION()}your latex formula{EQUATION}| Parameter | Accepted values | Default | Effect | Required? | Since |
|---|---|---|---|---|---|
| size | (number) | (100) | Percentage of increase from normal size. 100 produces the default size. 200 produces an image twice as large | n | -- |
Example
This code,
{EQUATION()}e=mc^2{EQUATION}Would produce on this site:
Requirements
- LaTex distribution must be installed on your server. Check you have installed the following LaTex packages:
- inputenc
- amsmath
- amsfonts
- amssymb
- You should have a :
- /usr/bin/latex, /usr/bin/dvips, /usr/bin/convert, /usr/bin/identify and /usr/bin/convert.
- If the path of these tasks are incorrect, you must adjust the php code in lib/equation/class.latexrender.php .
- the directories lib/equation/tmp/ and lib/equation/pictures must be writeable by the server.
The plugin works with write permissions on directories
lib/equation/tmp lib/equation/pictures
so ensure they are writable or make them so in order to have the plugin working.
About LaTex
This plugin actually wraps a minimalistic LaTex arround the formula. For instance, you can customize lib/equation/class.latexrender.php if you want other fonts.
\documentclass[12pt]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\pagestyle{empty}
\begin{document}
$your sexy formula$
\end{document}Related pages
An example: http://help.csregistry.org/tiki-index.php?page=LatexExample
Contributors to this page: lindon
,
xavi
,
sylvie
,
Roberto López
and
Marc Laporte
.
Page last modified on Saturday 03 July, 2010 22:09:11 UTC by lindon
.
