This extension contains functions for rendering and computing mathematical expressions. Related Links: Extension Overview, DekiScript Overview, Extension Demos.
Assembly: mindtouch.deki.services
SID: http://services.mindtouch.com/deki/draft/2007/06/math
This service requires Deki Wiki 1.8.2 or later.
To enable this extension, follow these steps:
Configuration:
| Config Key | Description |
| latex-path | Path to latex application |
| dvips-path | Path to dvips application |
| imagemagick-path | Path to convert application |
Microsoft Windows Setup
Install the following applications before using the Math service under Microsoft Windows XP and Windows Server 2003.
Debian Setup
Install the following before using the Math service under Debian Linux
apt-get install tetex-extra gs-gpl imagemagick
Gentoo Setup
Install the following before using the Math service under Gentoo Linux
emerge -a tetex ghostscript imagemagick
Functions:
Render math formula.
Parameters:
| Name | Type | Description |
| formula | str | Formula in Latex-AMS notation |
Remarks: Refer here for a math guide for Latex.
Samples:
Embed an InstaCalc sheet.
Parameters:
| Name | Type | Description |
| sheet | uri | URI to InstaCalc sheet. |
| width | num | Optional. Width of sheet (default: 425) |
| height | num | Optional. Height of sheet (default: 300) |
Remarks: Refer here for more information on InstaCalc.
Samples:
| | Output | |
|
| File | Size | Date | Attached by | |||
|---|---|---|---|---|---|---|
| short-math-guide.pdf Latex AMS guide | 531.67 kB | 06:48, 8 Aug 2007 | SteveB | Actions | ||
unlike other wikis that have Latex rendering, the deki syntax forces you to escape the \ operator each time, so a simple equation which in dokuwiki and normal latex would look like:
\alpha = \beta + \gamma
in dekiwiki you'd have to write:
\\alpha = \\beta + \\gamma
this is a major disadvantage since it's no longer possible to simply cut and paste formulas between latex documents and dekiwiki!
Is here a way that you could could fix the syntax to allow for "normal" latex to render properly without having to manually escape the \ characters?
Thanks,
YJ
You can already do what you desire. Instead of using the {{ math.formula() }} syntax, use the "transformations" approach as shown in http://wiki.developer.mindtouch.com/MindTouch_Deki/FAQ/Page_Management/How_do_I...Use_the_Transformations%2f%2fTransform_Content_menu_item%3f:
1) Enter your raw latex markup (with no extra backslashes.)
2) Select the text, change the style to "formatted"
3) Open the transformations menu (the small gear button in the editor toolbar) and select "math.formula" edited 13:32, 3 Jul 2008