WordPress Math Publisher Plugin Home Page
Description
The “WordPress Math Publisher” plugin for WordPress, or wpmathpub for short, displays mathematical equations within your posts, comments, and pages. It’s a simple plugin that takes advantage of Pascal Brachet’s PHP Math Publisher version 0.3 library – bundled with this plugin.
The Video
Introduction to Math Blogging with WordPress.org
How it works
Put your plain text mathmatical expressions between custom tags that look like this:
[pmath size=xx]…[/pmath]
The optional size attribute controls how large the images will be displayed. Useful xx integer values range from 8 to 24. Size defaults to 12 when the size attribute is omitted.
I created the first version of the plugin by starting with Matteo Bertini’s wpmathpublisher version 1.0.3 WordPress plugin source code. This is why my first version (v. 1.0.4) was just a plus 1 increment to Matteo’s version; while, my current version is still backward compatible with his tagging scheme too.
Here’s an example:
Results in:
In the example above, pmath is the tag to indicate to my plugin that the text that follows up to the /pmath tag, should be automatically submitted to Pascal’s PHP Math Publisher library for creation of a transparent graphic image. Finally, the tags and its encompassed text are replaced by the graphic image for display in this blog post.
I built upon Matteo’s pmath tag by adding an optional size attribute. Pascal’s PHP Math Publisher Library supports a size parameter as shown on his demo page: here>
Here is a simple continuation of Matteo’s example – with size attribute included:
-
-
where:
Results in:
where:
is defined as a
is defined as b
But perhaps this is a more stunning example:
Results in:
; size=8
; size=12 (same as default)
; size=16
; size=24
Source code for version 1.0.7
-
< ?php
-
/***************************************************************************************
-
Plugin Name: WP Math Publisher
-
Plugin URI: http://www.embeddedcomponents.com/blogs/wordpress/wpmathpub/
-
Description: Display mathematical equations within your posts and comments. Put your plain text <a href="http://www.xm1math.net/phpmathpublisher/doc/help.html">mathmatical expressions between [pmath size=xx]…[/pmath] tags. The optional size attribute controls how large the images will be displayed. Useful xx integer values range from 8 to 24. Size defaults to 12 when attribute omitted. Pascal Brachet’s PHP Math Publisher <a href="http://www.xm1math.net/phpmathpublisher/">library</a> is included.
-
Version: 1.0.7
-
Date: Sept. 6, 2008
-
Author: Ron Fredericks, Embedded Components
-
Author URI: http://www.embeddedcomponents.com/blogs/
-
-
Easy install notes:
-
Just copy the wpmathpub directory and all its contents into your WordPress plugins directory.
-
-
Platforms tested:
-
1) Linux Apache web server, php 4.4.4, WordPress 2.0.4, default theme, installed in subdirectory,
-
2) Linux Apache web server, php 4.4.4, WordPress 2.3.3, clasic theme, installed in root directory,
-
3) Linux Apache web server, php 4.4.4, WordPress 2.6.2, default theme, installed in subdirectory.
-
-
References:
-
Pascal Brachet’s phpmathpublisher
-
Home: http://www.xm1math.net/phpmathpublisher/
-
Usage: http://www.xm1math.net/phpmathpublisher/doc/help.html
-
Matteo Bertini’s WordPress plugin called PHP Math Publisher
-
http://www.slug.it/naufraghi/programmazione-web/wpmathpublisher
-
Randy Morrow’s WordPress plugin called Axiom
-
http://wordpress.org/extend/plugins/axiom/#post-2794
-
-
***************************************************************************************/
-
/***************************************************************************************
-
-
Copyright 2008 Ron Fredericks, Embedded Components, Inc. (email : ronf@EmbeddedComponents.com)
-
-
GNU General Public License
-
This program is free software; you can redistribute it and/or modify
-
it under the terms of the GNU General Public License as published by
-
the Free Software Foundation; either version 2 of the License, or
-
(at your option) any later version.
-
-
This program is distributed in the hope that it will be useful,
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-
GNU General Public License for more details.
-
-
You should have received a copy of the GNU General Public License
-
along with this program; if not, write to the Free Software
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
***************************************************************************************/
-
// ** Begin wpmathpub Code **
-
-
//
-
// Control automatic test and set feature for write access to ‘img’ directory.
-
// Automatic test and set feature when define("AUTOCHMOD", true);
-
// Manual automatic test and set feature when define("AUTOCHMOD", false);
-
-
// Control support for [pmath] tag in blog comments
-
// Engage the [pmath] tag support in blog comments when define("ENGAGECOMMENTS", true);
-
// Disengage the [pmath] tag support in blog comments when define("ENGAGECOMMENTS", false);
-
-
// Include Pascal’s php math publisher library.
-
require_once(PHPMATHLIB.‘/mathpublisher.php’) ;
-
-
// Determine depth of relative addressing based on location of current running script: default value is that of WordPress install directory.
-
-
// Overwrite mathpublisher.php’s default pointers to /img and /fonts subdirectories with a flexible relative addressing scheme.
-
$dirfonts=$depth.$basedir.‘/fonts’;
-
$dirimg=$depth.$basedir.‘/img’;
-
-
// Create a seperate absolute pointer to the phpmathpublisher /img/ subdirectory because our relative address scheme won’t work when called from the "apply filter" php module within the WordPress Loop.
-
$abs_dirimg = get_bloginfo(‘url’).$basedir.‘/img/’;
-
-
// test for proper installation and a known run-time environment
-
-
// Attempt to make $dirimg writable if it is not writable already.
-
$abs_use_mathfilter = true;
-
if (AUTOCHMOD && $abs_dirimg_readable) {
-
$abs_use_mathfilter = false;
-
}
-
}
-
}
-
-
// Returns with <img src=http://www.yoursite.com/yourblog/wp-content/pluglins/wpmathpub/phpmathpublisher/img/some_unique_image.png/> HTML tag.
-
// Makes reference to mathfilter function included from PHPMATHLIB/mathpublisher.php code.
-
function wpmathfilter($ascii_math, $size_math)
-
{
-
global $abs_dirimg;
-
global $abs_use_mathfilter;
-
global $abs_dirimg_readable;
-
-
// Define the default font size.
-
-
if ($abs_use_mathfilter && $abs_dirimg_readable) {
-
// html_entity_decode() converts HTML entities like ">" back to standard text like ">", when present.
-
} else if ($abs_dirimg_readable) {
-
$phpmath = ‘<span style="color: red">Error:</span>’." $abs_dirimg must have write access".‘ <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use ‘."’chmod 755 img’".‘ to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a>’;
-
} else {
-
$phpmath = ‘<span style="color: red">Error:</span>’." wpmathpub plugin not usable under these conditions: $abs_dirimg";
-
}
-
return $phpmath;
-
}
-
-
// Create a WordPress text filter
-
function to_phpmath($content)
-
{
-
// Add an new optional font size attribute size=xx to Matteo’s original preg_replace.
-
$content = preg_replace(‘#\[pmath(\s+size=|\s?)(\d*)(\])(.*?)\[/pmath\]#sie’, ‘wpmathfilter(\’\\4\’, \’\\2\’);’, $content);
-
return $content;
-
}
-
-
// action function for above hook
-
function mt_add_pages() {
-
// Add a new submenu under Manage:
-
add_management_page(‘wpmathpub’, ‘wpmathpub’, 8, ‘wpmathpubmanage’, ‘wpmathpub_manage_page’);
-
}
-
-
// wpmathpub_manage_page() displays the page content for the Test Manage submenu
-
function wpmathpub_manage_page() {
-
global $abs_dirimg;
-
global $dirimg;
-
global $abs_use_mathfilter;
-
global $abs_dirimg_readable;
-
global $abs_addfilter_test;
-
-
if ($abs_use_mathfilter)
-
-
$arraytemp = gd_info(); // collect details on server’s support of GD graphics library
-
-
$tabcnt = 0;
-
echo "<table width=’700′ border=’0′ cellspacing=’1′ cellpadding=’1′>";
-
-
echo "<tr>";
-
echo "<th scope=’col’> </th><th scope=’col’><span style=’color: blue’><h3>wpmathpub plugin status: ".WPMATHPUBVERSION."</h3></span></th>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>Operating system:</span></th>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>PHP version:</span></th>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>PHP GD library:</span></th>";
-
echo "<td bgcolor=".$tabcolor[$tabcnt++ %2].">".((strlen($arraytemp["GD Version"])>1) ? ("version ".$arraytemp["GD Version"]) : "<span style=’color: red’> ERROR: GD library not found on this server</span>") .(($arraytemp["PNG Support"]===true) ? " with PNG format supported" : "<span style=’color: red’> ERROR: PNG format not supported</span>")."</td>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>Ownership:</span></th>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>Blog’s url:</span></th>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>WordPress version:</span></th>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>WordPress plugin name:</span></th>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>Relative img path:</span></th>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>Working directory:</span></th>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>Absolute img path:</span></th>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>img directory readable:</span></th>";
-
echo "<td bgcolor=".$tabcolor[$tabcnt++ %2].">".(($abs_dirimg_readable) ? "yes" : "<span style=’color: red’>error</span>")."</td>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>img directory writable:</span></th>";
-
echo "<td bgcolor=".$tabcolor[$tabcnt++ %2].">".(($abs_use_mathfilter) ? "yes" : "<span style=’color: red’>error</span>")."</td>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>img directory executable:</span></th>";
-
echo "<td bgcolor=".$tabcolor[$tabcnt++ %2].">".(($abs_dirimg_executable) ? "yes" : "<span style=’color: red’>error</span>")."</td>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>Content filter added:</span></th>";
-
echo "<td bgcolor=".$tabcolor[$tabcnt++ %2].">".(($abs_addfilter_test) ? "yes" : "<span style=’color: red’>error</span>")."</td>";
-
echo "</tr>";
-
-
echo "<tr>";
-
echo "<th scope=’row’ width=’240′ align=’right’><span style=’color: blue’>mathfilter(y=mx^2+b):</span></th>";
-
echo "<td bgcolor=".$tabcolor[$tabcnt++ %2].">".mathfilter("<m>".html_entity_decode("y=mx^2+b")."</m>", ’12′, $abs_dirimg)."</td>";
-
echo "</tr>";
-
-
echo "</table>";
-
}
-
-
// Register our WordPress text filter, to_phpmath, into the two hook routines, the_content and comment_text.
-
if (!ENGAGECOMMENTS) {
-
// Register comment_text updates after all priorty comment processing filters.
-
// Note: calling the comment filter first, before the content filter, fixed comment_RSS feed errors.
-
remove_filter(‘comment_text’, ‘to_phpmath’);
-
} else {
-
add_filter(‘comment_text’, ‘to_phpmath’);
-
}
-
// Register the_content updates after all priorty content processing filters.
-
$abs_addfilter_test = add_filter(‘the_content’, ‘to_phpmath’, 5);
-
-
// Hook for adding admin menus
-
add_action(‘admin_menu’, ‘mt_add_pages’);
-
//
-
// ** End wpmathpub Code **
-
?>
Changes in version 1.0.7
- Improve compatibility with streaming video plugins that would otherwise monopolize the WordPress built-in add_filter() function which in turn cause wpmathpub [ pmath ] tagging to fail
- Add a new menu into for the WordPress blogger using the Site Admin -> Manage menu to display operating status of the wpmathpub plugin
Download plugin
The wpmathpub math publisher plugin for WordPress.org blogs is now available directly from WordPress.org’s plugin site. The WordPress.org hosted version manages several promotional and support features:
- Overview of the plugin here>
- Overview of the PHP Math Publisher library here>
- Installation instructions here>
- Example of how wpmathpub works, and how to install it here>
- Frequently Asked Questions and their answers too here>
- Metrics here>
- Download from WordPress.org here>
Support:
Share your problems, thoughts, or success with the community here:
www.embeddedcomponents.com/blogs/2008/03/wpmathpubsupport/
Donations accepted
Do you like the engineering work we do in creating better components for your reuse? Are you satisfied with this plugin? Are you using this effort to help you or your company make profit? If the answer is yes to any of these questions, perhaps you might consider making a voluntary donation.
May 20th, 2008 at 2:30 pm
This is a test of an open ended start tag embedded in a comment [pmath size=14] along with some text…
May 20th, 2008 at 2:31 pm
…and some more text e=sum{infty}{n=0}{1/{n!}}[/pmath] with an end tag to insure the new comments-enabled feature works without breaking something.
May 20th, 2008 at 2:38 pm
Comments seem to work fine, even when the tag is not used correctly. But it works even better when the math text and end tag from the previous comment are used together like this:
[ pmath size=14 ]e=sum{infty}{n=0}{1/{n!}}[ /pmath ]
or with the spaces removed from around the pmath brackets to form valid tags, like this:
to create a real equation.
May 23rd, 2008 at 7:28 am
Well done job, the size attribute are great.
Still testing,
Keep the work!
June 27th, 2008 at 3:54 am
Hi all great information here and good thread to comment on.
Can I ask though – how did you get this picked up and into google news?
Very impressive that this blog is syndicated through Google and is it something that is just up to Google or you actively created?
Obviously this is a popular blog with great data so well done on your seo success..
July 24th, 2008 at 1:07 am
This is a great plug in
July 27th, 2008 at 6:36 am
Maybe it is good plugin,
but,the mathematics equation is wrong:(
July 27th, 2008 at 4:14 pm
Thanks for the recognition, ipang. You point out one of the key advantages to my plug-in – you can make fixes to equations very easily. I could go back and fix the original very easily by changing the math text, but then readers of my blog would not understand the value of your comment. So I will fix it here:
The fix only requires a reversal of the initial to finial summation values. from this:
[ pmath size=14 ]e=sum{infty}{n=0}{1/{n!}}[ /pmath ]
To this:
[ pmath size=14 ]e=sum{n=0}{infty}{1/{n!}}[ /pmath ]
Which then gets automatically published, like this via the wpmathpub plug-in itself:
November 2nd, 2008 at 11:41 am
Good plug-in !
but there is a mistake in your example…
(a^2+b^2)!=a^2+2ab+b^2
November 11th, 2008 at 3:01 pm
Good post.
November 12th, 2008 at 1:24 pm
Keep up the good work!
December 8th, 2008 at 2:29 pm
Good post.
December 10th, 2008 at 3:03 am
This is a great plugin
December 20th, 2008 at 1:26 am
Thanks for this plugin, that’s exactly what I was looking for. Works great with WordPress 2.7 by the way. Keep up the great work !
January 27th, 2009 at 10:36 am
The main library is great. but when I saw that this can be used as wordpress plugin and u did that I am really happy to get this plugin. Thanks for your effort…
January 29th, 2009 at 11:37 pm
I really like the layout and colors that you chose for this website! It certainly is incredible!
February 20th, 2009 at 1:55 am
[ pmath size=14 ]e=sum{infty}{n=0}{1/{n!}}[ /pmath ]
Editor’s note: A person calling themselves “test” posted this message with a wpmathpub string that included spaces between the brackets “[" and the "pmath" / "/pmath" tags. The use of space allows a person to post the text and as such the conversion to a math graphic does not take place. Below is the same text string but without the spaces.
April 3rd, 2009 at 8:48 pm
Amazing plugin, nice work, thanks for share!
April 6th, 2009 at 1:33 pm
Hi Vinicius:
LaTEx and mathml are both official standards for publishing. Yet many I have talked to find the server overhead more complex with these all inclusive standards. So my plug-in meets the needs of mathmaticians and math enthusiasts that are not web server experts or can not afford to maintain server support for these larger tools.
That’s why wp-latex has a similar number of downloads at 2,058 total downloads compared to wpmathpub at 1,544 – as seen on the wordpress.org/extend/plugins site today.
May 6th, 2009 at 7:15 am
Good plugin, very helpful and easy to use, thanks.
May 9th, 2009 at 12:11 am
Is it compatible with WordPress 2.8?
May 11th, 2009 at 12:22 am
What WordPress 2.8? Latest version of WordPress.org blog software is version 2.7.1.
June 25th, 2009 at 5:04 am
Great. Let me try here:
[ pmath ] {{250*(80a+1)+2b]-250} / 2 [ /pmath ]
June 29th, 2009 at 2:55 pm
Great plugin and it seems to work with WP 2.8
July 12th, 2009 at 1:19 pm
Thanks drdee:
for the update on WP version 2.8 and your nice comment.
Ron
November 1st, 2009 at 2:30 am
February 26th, 2010 at 9:24 pm
Thank you for a great plugin. I’m very appreciate it. Cheers!
March 10th, 2010 at 9:06 pm
Hi , Very good plugin. It started working without additional installation, like other plugin.
I am wondering if there is way to simplify following expression.
For example.
Present value of future cash flow
If i remove space between – N, result looks odd
![Pv = A[ (1 - (1+r)^(-N))/r] Pv = A[ (1 - (1+r)^(-N))/r]](http://www.embeddedcomponents.com/blogs/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_959_6ce6e478e4f9cf5ea858629434fe3db5.png)
editor’s note: I added “size=20″to MaheshT’s pmath code like this:
[ pmath size=20] Pv = A[ (1 - (1+r)^(- N))/r] [ /pmath]
and
[ pmath size=20] Pv = A[ (1 - (1+r)^(- N))/r] [ /pmath]
to highlight this example. See Phil’s comment on March 30′th for a possible workaround.
March 20th, 2010 at 4:31 am
How ya doing? You picked the ones closed to my heart too, despite the fact I know I am guilty of #1 when I don’t pay attention.
March 25th, 2010 at 9:25 am
wow!!!

March 30th, 2010 at 8:58 pm
Testing the following expression to see if it works:
editor’s note: Phil’s code looks like this: [ pmath size=20]1 – 2 = -1[ /pmath], I added the “size=20″ to expand the visual point Phil is making here.
Basically I’m on WordPress 2.9.2 and wpmathpub has problems rendering expressions containing . Apparently this happens because all instances of has been wptexturized into & #8211; which got fed into wpmathpub.
However this only happens in my comments and I suspect it’s the same issue as described by MaheshT above. This did not happen in my WordPress 2.3.3 installation even though comments in 2.3.3 seem to be wptexturized in the same manner as well.
I worked around this via a crude hack by adding a
remove_filter(‘comment_text’, ‘wptexturize’);
within the plugin but would like a more elegant solution.
March 30th, 2010 at 9:09 pm
Yup the above seems to have confirmed my suspicion about the problem of [space][minus sign][space] being wptexturized into [space]& #8211;[space] in later versons of WordPress, prior to being fed into wpmathpub.
Strange enough, all instances of [space][minus sign][space] are also wptexturized within the main content of my blog entries but the equations show up fine there, but the problem only occurs in my comments.
March 31st, 2010 at 1:18 am
Thanks for your quick reply Ron.
On the contrary I think my workaround is far from neat as it simply disables WordPress’ inherent formatting capabilities (though admittedly many developers have been tearing their hair out over this controversial wptexturize function).
So to summarize:
1. & #8211; do not show up in my WP 2.3.3 and wpmathpub works in both blog entries and comments. (Note: wptexturize is supposed to be running as early as WP 1.5 so I have no clue why the [space][minus][space] is not converted to & #8211; in WP 2.3.3)
2. [space][minus][space] is converted to & #8211; in my WP 2.9.2 in both blog entries and comments. However wpmathpub renders these cases properly in the blog entries.
This problem will manifest itself in any expression that contains [space][minus][space]. Some further examples just to verify:
I suspect it may not be limited to just [space][minus][space] but any of the character combos that are listed under the wptexturize function in wp-includes/formatting.php
Before we artificially prevent the wptexturizing of [space][minus][space] (and certain character combos), perhaps the key issue is to find out why expressions with & #8211; can be successfully rendered by wpmathpub in the blog content but not in comments.
Meanwhile I’ll try to do some investigation on my end …
P.S. Ron’s blog is on WP 2.8.4 and the issue occurs so it’s not only 2.9.2. Maybe users of other versions can try this just to ascertain if this is indeed universal and which version of WP did this issue first surface.
P.P.S. To check whether your [space][minus][space] has been converted to & #8211;, deactivate wpmathpub and ‘view source’ the relevant section(s) of your HTML code. I notice the alt/title text of those problematic equation images will have their minus sign(s) represented by & #8211;
May 7th, 2010 at 12:57 pm
I must say that your current blogging site is particularly topical. I have been shelling out a lot of free time during the last couple weeks scouting around at what is out there consistent with the fact that I will be planning to launch a blog. The info you have place on here is essentially to the point. It just appears so challenging when it comes to all the web sites that are out there, but I really like the way your looks. Gotta take delight in where modern technology has come over the past nine yrs.
August 26th, 2010 at 9:19 pm
Hi,
I cannot seem to get your plugin operating on our website. When I look at the statistics page of the plugin the last line where it says mathfilter(y=mx^2+b): does not show the necessary maths equation that is shown in your image guide. Our operating system is SunOs. Do you think this is the problem. I look forward to some advice please.
Thanks
September 19th, 2010 at 4:57 am
I’d like to see that actually working need one for one of my websites contact me if possible
September 28th, 2010 at 1:23 am
Is this plugin working anymore..because I am unable to make it work
October 13th, 2010 at 10:52 pm
wordpress is the best blogging platform ever-~-
December 9th, 2010 at 5:14 am
Works great except “>” or “y[/pmath]
December 9th, 2010 at 5:15 am
As you saw there is a problem with greather or smaller than
December 9th, 2010 at 5:17 am
The problem is that “>” inside the pmath tags make it eat the rest of the page.
January 3rd, 2011 at 4:10 am
Hi Ron,
I have seen this plugin working beautifully with some of thw wordpress installation, however somehow it has not worked for me giving an errr ” the mathpub is not usable under this condition”. I have trried to disable all plugin and see mathpu… it does not work… in the option page the image is not displayed… but all the conditions like dir. writeable etc is ok. would it possible to get any pointer to make changes in the settings. Look forward for an early response., regards Sudeep
July 14th, 2011 at 12:04 pm
Fantastic website, Wanted in order to comment that i can not necessarily connect with the rss or atom stream, you may choose install the best wordpress tool for that to be able to workthat.
August 7th, 2011 at 3:06 am
Is it compatible with WordPress 3.1?
August 10th, 2011 at 1:34 pm
Serious pack:
August 25th, 2011 at 4:38 pm
Great plugin really help a lot of bloggers and webmaster out there. thank you for providing and sharing us your hard work.
September 29th, 2011 at 4:30 am
Hi is this possible
f(x)=e ^-x
i want – and the x as exponent.
Thanks
November 15th, 2011 at 10:13 am
Excellent post. I want to thank you for this informative read. Keep up your great work.
December 7th, 2011 at 3:12 am
You actually make it appear really easy together with your presentation but I in finding this matter to be really one thing which I believe I might never understand. It kind of feels too complex and extremely wide for me. I am taking a look forward in your next publish, I will attempt to get the grasp of it!
December 7th, 2011 at 10:06 am
Hi Sascha:
To learn how to use wpmathpub, you can look at the help file offered by the math font engine provider: http://www.xm1math.net/phpmathpublisher/doc/help.html
I used “invisible parenthesis” to group the “-” sign with the “x” in the exponent like this:
[ pmath ]f(x)=e^{-x}[ /pmath ] only without the spaces in the pmath tags.
December 8th, 2011 at 11:51 pm
Yes creacion,
wpmathpub is compatible with WordPress 3.1 – see it in action on http://www.lecturemaker.com
December 11th, 2011 at 2:02 pm
Hi Ron,
Is wpmathpub compatible with wordpress 3.2.1 ??
I get this error message…
Warning: chmod() [function.chmod]: Operation not permitted in /mnt/vhosts/otherjobsforteachers.com/httpdocs/wp-content/plugins/wpmathpub/wpmathpub.php on line 85
I am using the graphene theme
thanks,
phil
December 11th, 2011 at 8:04 pm
Hi Phil:
Yes wpmathpub works just fine on wordpress 3.2.1 I use it on my other website with wordpress 3.2.1 without any problem: http://www.lecturemaker.com
The warning message seems pretty clear, your web host does not allow you to usethe chmod function. The function is used in wpmathpub.php to automatically make one sub-directory called “./img” available for both read and write operations. In this way, new math graphics images can be created to replace the math text during the math publishing process in your blog posts.
This issues with chmod has come up to my attention from would-be users a few times. So there is a simple but manual fix already baked into the php code. Change the line listed below in your copy of the php code from “true” to “false” so that “AUTOCHMOD” is defined as “false”. Then have your administrator make the subdirectory “./img” be writeable and readable. If security is very restricted, then your admin may have to create this sub-directory as well. Have him/her read the php code comments to see where this directory should be located.
//
// Control automatic test and set feature for write access to ‘img’ directory.
// Automatic test and set feature when define(“AUTOCHMOD”, true);
// Manual automatic test and set feature when define(“AUTOCHMOD”, false);
define(“AUTOCHMOD”, true);
December 12th, 2011 at 8:46 pm
Hi Phil,
I just updated http://www.lecturemaker.com web site to wordpress version 3.3. It too is fully compatible with wpmathpub version 1.0.8. See it in action here:
http://www.lecturemaker.com/2011/01/introduction-to-math-blogging/
December 17th, 2011 at 10:56 am
Wow! This can be one particular of the most useful blogs We’ve ever arrive across on this subject. Basically Magnificent. I’m also an expert in this topic therefore I can understand your hard work.
February 15th, 2012 at 3:16 am
Looks like great plugin. Just what I need, thank you.