Features

With PhpMathPublisher, you can publish mathematical documents on the web by using only a php script (no latex programs on the server, no mathml...).

Installation and use of the script

  1. PhpMathPublisher needs a repertory for the fonts and another for the images (you can use your own directories or the defaults directories included in the package). You must first modify the firt lines of the "mathpublisher.php" script to indicate the absolute path to these directories.
  2. Then, you must install the fonts into their directory (there are located in the fonts/ directory in the package).
  3. The script is contained in only one file : "mathpublisher.php"
    The only command to be used in your php pages to convert a mathematical expression is :
    echo mathfilter($text,$size,$pathtoimg); (and include("mathpublisher.php") ;)
    $text is the text with standard html tags and mathematical expressions (defined by the <m>...</m> tag), $size is the size of the police used for the formulas and $pathtoimg is the relative path between the html pages and the images directory.
    The "mathfilter" function creates the images of the formulas and returns the corresponding html code. Apart from the <m>...</m> tag, $text can contain any html code. Syntax to be respected for the mathematical formulas is indicated in the help.html file.
    The php code of the demo files (in the examples/ directory) shows you how the script can be used by a webmaster.
Note : if you have some troubles with the AMS cmex10.ttf font on your server, you should try to use the Bakoma cmex10.ttf font (http://www.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma/ttf/).