**Learn about DokuWiki**

**Advanced Use**

**Corporate Use**

**Our Community**

Follow us on Facebook, Twitter and other social networks.

**Learn about DokuWiki**

**Advanced Use**

**Corporate Use**

**Our Community**

Follow us on Facebook, Twitter and other social networks.

plugin:mathpublish

Compatible with DokuWiki

- 2017-02-19 "Frusterick Manners"
**unknown** - 2016-06-26 "Elenor Of Tsort"
**yes** - 2015-08-10 "Detritus"
**unknown** - 2014-09-29 "Hrun"
**unknown**

Similar to asciimath, asciimathml, jsmath, masciimath, math, mathjax

- csv
- clearhistory
- explain
- logstats
- oiddelegate
- labeled
- slider
- groupusers
- navi
- aclinfo
- and 50 more

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 fonts^{1)} to create an images for each formula. The plugin script, phpmathpublisher and the required fonts are all included in the download package.

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

- Merge pull request #4 from araname/patch-1 (2016-09-02 21:08)
- Merge branch 'pr/6' (2016-09-02 21:08)
- Version upped (2016-09-02 20:59)
- changed mode into substition and fixed valignment (2016-09-02 20:56)
- fixed a few undefined errors (2016-09-02 20:38)
- some files were removed (2016-09-02 20:28)
- updated phpmathpublisher to a newer version. fixes #9 (2016-09-02 20:26)
- Merge pull request #7 from splitbrain-forks/php7-signature (2016-02-02 16:22)

To run this plugin your PHP installation needs to have:

- tokenizer library
- gd library
- png capabilities, i.e. libpng, which also requires the zlib library
- freetype font library

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

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>

Result^{2)}:

The general syntax to embed a formulae is this:

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

*size*(optional) the base glyph size in pixels - default value: 12.*alignment*can be controlled in the same way as DokuWiki images, one space to the left to right align, one to the right to left align, one on each side to centre.

For a complete list of what mathematical terms can be used, refer to the original mathpublisher documentation or this DokuWiki-compatible formulae syntax page^{3)}

freeserif from the Free Software Foundation and several fonts made freely available by the American Mathematical Association

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.

You may want to copy that page to your wiki as a help page for your users

plugin/mathpublish.txt · Last modified: 2016-09-19 13:12 by grosse

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International