Renders an equation written in LaTeX syntax as an image.
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:Syntax for the EQUATION plugin
{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,Example...
{EQUATION()}e=mc^2{EQUATION}Would produce on this site:
Unparseable or potentially dangerous latex formula. Error 4
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.Latex Code
\documentclass[12pt]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\pagestyle{empty}
\begin{document}
$your sexy formula$
\end{document}Related pages
Contributors to this page: xavi
,
lindon
,
sylvie
and
rlopez
.
Page last modified on Monday 05 October, 2009 12:08:14 UTC by xavi
.
Sidebar
Featured links
Last changes
Freetags editor
Sidebar
To register
To have an account at this site, please register at Tikiwiki.org
, and then use that user name and password to log in here.
