[Show/Hide Right Column]

Renders an equation written in LaTeX syntax as an image.
Print
Tags: latex

Plugin Equation

This Wiki Plugin renders an equation written in LaTeX syntax as an image.

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:

e=mc^2

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}

An example: http://help.csregistry.org/tiki-index.php?page=LatexExample

alias

Contributors to this page: lindon2331 points  , xavi36278 points  , sylvie4333 points  , Roberto López159 points  and Marc Laporte5511 points  .
Page last modified on Saturday 03 July, 2010 22:09:11 UTC by lindon2331 points .

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):