wiki:mathpublish

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

wiki:mathpublish [2020/08/17 06:13] – 作成 ともやんwiki:mathpublish [2021/11/25 22:08] (現在) ともやん
行 1: 行 1:
 +from: [[https://www.dokuwiki.org/plugin:mathpublish|]]\\
 +====== mathpublish Plugin ======
 +<code>
 +---- plugin ----
 +description: PHP only solution for including mathematical formulae into DokuWiki
 +author     : Andreas Gohr 
 +email      : dokuwiki@cosmocode.de
 +type       : syntax
 +lastupdate : 2019-03-05
 +compatible : Frusterick Manners, Greebo, Hogfather
 +depends    : 
 +conflicts 
 +similar    : asciimath, asciimathml, jsmath, math, masciimath, mathjax
 +tags       : math, formula
 +
 +downloadurl: https://github.com/cosmocode/dokuwiki-plugin-mathpublish/zipball/master
 +bugtracker : https://github.com/cosmocode/dokuwiki-plugin-mathpublish/issues
 +sourcerepo : https://github.com/cosmocode/dokuwiki-plugin-mathpublish/
 +donationurl: 
 +----
 +</code>
 +
 +This plugin is based on [[http://www.xm1math.net/phpmathpublisher/|phpmathpublisher]] by  Pascal Brachet to allow inclusion of properly rendered mathematical formulae in DokuWiki pages.
 +
 +This plugin was originally written by [[chris@jalakai.co.uk|Christopher Smith]] and named math2.
 +
 +This is a completely self-contained PHP solution. It requires no third party packages. It makes use of [[http://uk2.php.net/manual/en/ref.image.php|php's GD library]] and freely available fonts(([[http://www.nongnu.org/freefont/|freeserif]] from the [[http://www.gnu.org/|Free Software Foundation]] and several fonts made freely available by the [[http://www.ams.org/tex/amsfonts.html|American Mathematical Association]])) to create an images for each formula. The plugin script, phpmathpublisher and the required fonts are all included in the download package.
 +
 +
 +===== Installation =====
 +[[https://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ http://cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]
 +
 +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
 +
 +==== Change Log ====
 +
 +{{rss>https://github.com/cosmocode/dokuwiki-plugin-mathpublish/commits/master.atom date}}
 +
 +==== PHP Requirements ====
 +
 +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 [[http://www.php.net/manual/en/ref.image.php#image.installation|PHP documentation]].
 +
 +
 +===== Examples/Usage =====
 +
 +Example:
 +
 +<code>
 +<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></code>
 +
 +Result((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.)):
 +
 +{{http://www.cdsmith.plus.com/images/formula1.png}} \\
 +{{http://www.cdsmith.plus.com/images/formula2.png}} \\
 +{{http://www.cdsmith.plus.com/images/formula3.png}}
 +
 +===== Syntax =====
 +
 +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  [[http://www.mylovewill.com/ya/phpmathpublisher/doc/help.html|original mathpublisher documentation]] or this [[:plugin:mathpublish:syntax|DokuWiki-compatible formulae syntax page]]((You may want to copy that page to your wiki as a help page for your users))
 +
 +
 +from: [[https://www.dokuwiki.org/plugin:mathpublish:syntax|]]\\
 ====== mathpublish Plugin syntax ====== ====== mathpublish Plugin syntax ======
  
  • wiki/mathpublish.txt
  • 最終更新: 2021/11/25 22:08
  • by ともやん