Fullscreen
[Show/Hide Left Column]
[Show/Hide Right Column]

Renders an equation written in LaTeX syntax as an image.
3d browser Print

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}




Contributors to this page: xavi26347 points  , lindon1701 points  , sylvie3035 points  and rlopez159 points  .
Page last modified on Monday 05 October, 2009 12:08:14 UTC by xavi26347 points .

To register

To have an account at this site, please register at Tikiwiki.org (external link), and then use that user name and password to log in here.

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):

Accessibility (WAI – 508)
Action log 2.x
Alert 3.x
Articles & Submissions
Backlinks
Banners
Blog
Bookmark
Browser Compatibility
Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Custom Home (and Groups Home Page)
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tikiwiki.org (Help System)
DogFood
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interaction
Inter-User Messages
InterTiki
Karma
Live Support
Login
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profile Manager
Quicktags
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Security
Semantic links 3.x
Shadowbox
Shoutbox
Slideshow
Smarty Template
Smiley
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
System log
Tags 2.x
Task
Tell a Friend + Social Bookmarking 2.x
TikiTests 2.x
Theme
Trackers
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
Webmail
Webservices
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval 2.x
Wiki Plugins extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
WYSIWYCA
WYSIWYG 2.x
XMLRPC



Show php error messages
 
PHP (5.2.10-2ubuntu6.4) ERROR (E_WARNING):
File: lib/equation/class.latexrender.php
Line: 289
Type: unlink(/home/two/doc/lib/equation/tmp/5d73e0e1e50e5c0c2b18940a2d7a36a2.aux) [function.unlink]: No such file or directory
PHP (5.2.10-2ubuntu6.4) ERROR (E_WARNING):
File: lib/equation/class.latexrender.php
Line: 290
Type: unlink(/home/two/doc/lib/equation/tmp/5d73e0e1e50e5c0c2b18940a2d7a36a2.log) [function.unlink]: No such file or directory
PHP (5.2.10-2ubuntu6.4) ERROR (E_WARNING):
File: lib/equation/class.latexrender.php
Line: 291
Type: unlink(/home/two/doc/lib/equation/tmp/5d73e0e1e50e5c0c2b18940a2d7a36a2.dvi) [function.unlink]: No such file or directory
PHP (5.2.10-2ubuntu6.4) ERROR (E_WARNING):
File: lib/equation/class.latexrender.php
Line: 292
Type: unlink(/home/two/doc/lib/equation/tmp/5d73e0e1e50e5c0c2b18940a2d7a36a2.ps) [function.unlink]: No such file or directory
PHP (5.2.10-2ubuntu6.4) ERROR (E_WARNING):
File: lib/equation/class.latexrender.php
Line: 293
Type: unlink(/home/two/doc/lib/equation/tmp/5d73e0e1e50e5c0c2b18940a2d7a36a2.png) [function.unlink]: No such file or directory