Table of Contents

mathpublish Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" yes
  • 2020-07-29 "Hogfather" yes

plugin PHP only solution for including mathematical formulae into DokuWiki

Last updated on
2024-05-23
Provides
Syntax
Repository
Source

This plugin is based on phpmathpublisher by Pascal Brachet to allow inclusion of properly rendered mathematical formulae in DokuWiki pages.

This plugin was originally written by Christopher Smith and named math2.

This is a completely self-contained PHP solution. It requires no third party packages. It makes use of php's GD library and freely available fonts1) to create an images for each formula. The plugin script, phpmathpublisher and the required fonts are all included in the download package.

A CosmoCode Plugin

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Change Log

PHP Requirements

To run this plugin your PHP installation needs to have:

Most default installs of PHP (eg. at web hosts) do have all these requirements fulfilled anyway. For full details refer to the PHP documentation.

Examples/Usage

Example:

<m>S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}</m> 
<m 8>delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ }</m>
<m 32>delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= epsilon/3</m>

Result2):

screenshot

Syntax

The general syntax to embed a formulae is this:

<m size>...mathematical formulae...</m>

For a complete list of what mathematical terms can be used, refer to the original mathpublisher documentation FIXME or this DokuWiki-compatible formulae syntax page3)

1)
freeserif from the Free Software Foundation and several fonts made freely available by the American Mathematical Association
2)
Note: the plugin is not installed at this site, these images are the actual images generated by the plugin taken from a site where the plugin is installed.
3)
You may want to copy that page to your wiki as a help page for your users