WpMathPublisher
Last Updated: 09-07-2008
WordPress Plugin Repository
Download-Area
Deutsch: WpMathPublish ist ein Plugin, dass es einem WordPress-Blog-Autor ermöglicht, mathematische Formeln in Form von Grafiken in seinem Blog einzubinden.
Dazu nutzt es die Funktionalitäten des PhpMathPublisher-Skripts und passt diese an WordPress an.
Der Einsatz ist denkbar einfach:
Mathematische Formeln, die als solche angezeigt werden sollen, werden einfach im Editor in [m]-Tags gepackt ([m]Formel[/m]). Das Plugin wandelt diese dann in eine Grafik um, welche in der WordPress Installation gespeichert bleibt, und somit nur beim ersten Aufruf generiert werden muss.
Dabei unterstützt es folgende Features:
- Grundfunktion: Formeln in Grafiken umwandeln
- Vorder- und Hintergrundfarbe der Grafiken sind frei wählbar (inkl. Alpha-Transparenz – erfordert bei Benutzung des Internet Explorer Version 7 oder höher zum korrekten Anzeigen)
- Speichert die Bilder zwischen, so dass beim erneuten Anzeigen Rechenzeit gespart wird
Die Installation des Plugins ist möglicherweise etwas aufwändiger als sonst:
- Lade dir das komplette Paket hier runter
- Extrahiere es mit einem geeigneten Packprogramm (Bsp: 7zip)
- Lade es komplett mit allen Unterverzeichnissen (egal ob leer oder nicht) in das Plugins Verzeichnis deiner WordPress-Installation (/wp-content/plugins/)
- Sorge dafür, dass der Ordner /wp-content/plugins/wpmathpubisher/img schreibrechte erhält (chmod 777). Dies istzum Speichern der Grafiken nötig.
- Aktiviere das Plugin im Admin-Menü deiner WordPress Installation
- Fertig. Teste es!
Konfiguration:
Die Konfiguration des Plugins findet bequem über das Admin Panel statt (seit v0.3.2). Hier können die Farbwerte der RGB-Komponenten der Schriftfarbe und der Hintergrundfarbe eingestellt werden, zusätzlich ist es möglich einen Alpha-Wert für die Transparenz anzugeben. Eine (schlechte) Vorschau wird dabei auch geboten.
FAQ:
Bisher keine Fragen aufgetaucht
Formelzeichen:
Da vermutlich nicht jeder die Syntax vom PhpMathpublisher auswendig kennt, gibt es hier eine Übersicht über alle benutzbaren Tags: Klick
Beispiele:
[m]S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}[/m]

[m]delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ }[/m]

[m]delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= epsilon/3[/m]

English: WpMathPublish is a plugin that offers wordpress authors the funtion to convert mathematical equations into graphics being displayed in pages and blogentries.
To do so, it uses the PhpMathPublisher-Libary, which has been modifies to work with wordpress.
Using it is just as simple as that:
Mathematical equations that are meant to be shown as such have to be put in [m]-tags using your favorite wordpress-editor ([m]equation[/m]). The plugin automatically converts the equations into graphics, which will be saved in your wordpress installtion in order to be generated only once.
Currently it supports the following features:
- Basic function: Convert equations into graphics
- Font and background color can be chosen by you (alpha-transparency included, but if you are using Microsoft Internet Explorer you will need version 7 or greater to display the images correctly)
- Saves the images on the webspace, which saves processor time
Installation (which is slightly more compliucated than normal):
- Download the complete package here
- Extract the package using any programm you want (i.e.: 7zip)
- Upload the extracted folder, including all subfolders (no matter if empty or not) to the plugin directory of your wordpress installation (/wp-content/plugins/)
- Make sure the the script can write in the folder /wp-content/plugins/wpmathpubisher/img (chmod 777). This is necessary, because this is where the script saves the images
- Activate the plugin in your wordpress administration center
- Done. Go for it!
Configuration:
To configure the plugin there is an easy to use admin panel page (since v0.3.2). Here you can choose the RGB-components of the font and background color. In addition to that you can choose an alpha-transparency. To have a look at the result there is a small and (I’m afraid) quite bad preview.
FAQ:
No questions up to now
Commands:
There are probably quite a lot people who do not know the PhpMathPublisher commands, so here you go.
Examples:
[m]S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}[/m]

[m]delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ }[/m]

[m]delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= epsilon/3[/m]

Download:
Current Version 0.4:
WpMathPublisher Plugin (.7z-Format) [v0.4] [361 Kb]
WpMathPublisher Plugin (.zip-Format) [v0.4] [701 Kb]
8 Reaktionen zu “WpMathPublisher”
Mein Blögchen für alles!
Pingback verfasst am 3. Juli 2008 um 20:41 Uhr
[...] sich für das Plugin interessiert, kann hier weitere Informationen finden. Wäre dabei sehr interessant, Fehler zu erfahren oder weitere [...]
Alex
Kommentar verfasst am 4. Juli 2008 um 09:20 Uhr
Jetzt werde ich mich bis in alle Ewigkeit fragen, warum du es nicht WpPublishMath genannt hast
.
PS: Ein Anti-Spam-Feld unter dem “Senden”-Button ist fies!
Wordpress - Coppermine integration at YaShu.de - I/O for your head
Pingback verfasst am 9. Juli 2008 um 18:09 Uhr
[...] have just seen a math equations plugin developed by a friend of mine. Get it here. I have not tested it yet. « [...]
Harald
Kommentar verfasst am 11. Februar 2009 um 20:28 Uhr
Hi,
habe deine Version über das ursprüngliche PlugIn “wpmathpub” gefunden, finde das sehr schön
Nur kann eben das Original keine anderen Farben darstellen.
Meine Seiten haben aber schwarzen Hintergrund, und ich möchte meine Formeln so giftgrün wie in etwa dein content-Text aussieht, kurzum, dein Plugin verwenden
Habe deine Version ins PlugIn Verzeichnis gespielt, img Ordner auf “777″ gesetzt, aber die Aktivierung geht nicht, das rödelt nur ewig vor sich hin….
Wie gesagt die andere “wpmathpub” Geschichte funktioniert.
Was mache ich falsch? Ich verwende WP 2.7
Harald
tviggy
Kommentar verfasst am 25. März 2010 um 18:27 Uhr
Why cut off the picture in the formula: [m]delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ }[/m]
Astrodan
Kommentar verfasst am 26. März 2010 um 01:50 Uhr
I justed played a little bit with the code, but i coulnd’t really find out why it’s doing this. The original PhpMathPublisher doesn’t.
Will look into it these days, cause somewhere there MUST be a solution.
Thanks for the report
Update: I checked PhPMathPublisher again, the error seems to depend on the environment beeing used, not my scripts fault. Can’t solve it, at least not now. Scripts author should be informed!
Jörg Gebbing
Kommentar verfasst am 27. Juni 2010 um 06:18 Uhr
Hi Ich habe einen Fehler entdeckt und Zwar bei einem Bruchstrich
{a}/{-b}wird das Minus vorm b nicht korrekt dargestelltAstrodan
Kommentar verfasst am 31. Juli 2010 um 21:25 Uhr
Ich weiß es ist ein bisschen spät zum Reagieren, aber ich habe das gerade mal ausprobiert, und bei mir wird es richtig dargestellt.. hast du die neueste Version des Plugins? Es gab zwischenzeitlich Probleme mit der Sonderzeichenumwandlung des TinyMCE-Editors