<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>stacyprowell.com &#187; math</title>
	<atom:link href="http://stacyprowell.com/blog/tag/math/feed/" rel="self" type="application/rss+xml" />
	<link>http://stacyprowell.com/blog</link>
	<description>Ugh, Stacy's talking again...</description>
	<lastBuildDate>Tue, 27 Apr 2010 20:09:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress and jsMath</title>
		<link>http://stacyprowell.com/blog/2009/04/20/wordpress-and-jsmath/</link>
		<comments>http://stacyprowell.com/blog/2009/04/20/wordpress-and-jsmath/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 03:00:22 +0000</pubDate>
		<dc:creator>stacy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jsmath]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://stacyprowell.com/blog/?p=145</guid>
		<description><![CDATA[How to use jsMath in WordPress blogs.]]></description>
			<content:encoded><![CDATA[<p>Well&#8230; I&#8217;ve been using jsMath on my Wiki, and now I&#8217;m keen to use it on my blog.  There does not seem to be a WordPress plugin explicitly for jsMath (if anyone knows of one, please let me know), but you don&#8217;t <em>need</em> one.  Using jsMath from WordPress is actually easy via a <em>different</em> plugin.<span id="more-145"></span></p>
<p>The plugin is <a href="http://wordpress.org/extend/plugins/wp-hooks/">WP Hooks</a>.  This is a plugin that lets you add content to the page head, and that&#8217;s just what we want!</p>
<ol>
<li>Download and install <a href="http://www.math.union.edu/~dpvc/jsMath/">jsMath</a> on your local server.</li>
<li>Download, install, and activate <a href="http://amwhalen.com/blog/projects/wp-hooks">WP Hooks</a> in WordPress.</li>
<li>Configure this and add the following to the header (<em>change</em> the path to point to your local installation of jsMath):<br />
<tt>&lt;SCRIPT SRC="jsMath/easy/load.js"&gt;&lt;/SCRIPT&gt;</tt></li>
<li>Start writing math on pages.</li>
</ol>
<p>This seems to work fine.  Here&#8217;s an example.  \[\int \sin x\ dx= -\cos\ x + C\]</p>
<p>This was created as a display equation via writing <tt>\<em></em>[\int \sin x\ dx= -\cos\ x + C\]</tt> in the page.</p>
<p><strong>Update</strong>: As pointed out in the comments, you need to install the fonts on the client (browser) side for things to look really nice and for math rendering to be fast; otherwise you get a warning and bitmap fonts.  It&#8217;s really easy; the instructions are <a href="http://www.math.union.edu/~dpvc/jsMath/users/fonts.html" target="_blank">here</a>.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fstacyprowell.com%2Fblog%2F2009%2F04%2F20%2Fwordpress-and-jsmath%2F&amp;linkname=WordPress%20and%20jsMath"><img src="http://stacyprowell.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://stacyprowell.com/blog/2009/04/20/wordpress-and-jsmath/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>LaTeX</title>
		<link>http://stacyprowell.com/blog/2008/07/07/latex/</link>
		<comments>http://stacyprowell.com/blog/2008/07/07/latex/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 17:20:47 +0000</pubDate>
		<dc:creator>stacy</dc:creator>
				<category><![CDATA[Nuisances]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://stacyprowell.com/blog/?p=4</guid>
		<description><![CDATA[I used to have a site that used LaTeX to render equations.  This worked pretty well, except that I didn&#8217;t have LaTeX installed on the server.  It turns out that you can do pretty well without it.
There&#8217;s an excellent program called mimeTeX that renders math without a TeX installation.  I used it with Drupal [...]]]></description>
			<content:encoded><![CDATA[<p>I used to have a site that used LaTeX to render equations.  This worked pretty well, except that I didn&#8217;t have LaTeX installed on the server.  It turns out that you can do pretty well without it.</p>
<p>There&#8217;s an excellent program called <a href="http://www.forkosh.com/mimetex.html">mimeTeX</a> that renders math without a TeX installation.  I used it with Drupal and DruTeX.  Now I&#8217;m not using Drupal&#8230; so I need to find another way to display math.  Oh, mimeTeX still works, but you have to explicitly encode the link.  I&#8217;m way too lazy to do that.</p>
<p style="text-align: center;"><img src="/cgi-bin/mimetex.cgi?\phi:X^*\to%20Y^*" alt="[equation]" /></p>
<p><strong>Update</strong>: I&#8217;ve been experimenting with using [ tex ]&#8230;[ /tex ] from the mimeTex plugin to WordPress.  It&#8217;s working now, but I needed to do two things to make it work.</p>
<ul>
<li>Create a cache folder under my wp-content folder.</li>
<li>Modify the plugin to point to my local installation of mimetex.cgi.</li>
</ul>
<p>I also had to go into the cache folder and delete all the files that were created during the process, so I could see the effect of the changes.  But now it works!</p>
<p>Here&#8217;s an example of an equation array.  Note that you need to use <tt>&amp;amp;</tt> to insert the required ampersand delimiters.</p>
<p style="text-align: center;"><img src="http://stacyprowell.com/blog/wp-content/cache/tex_5bc4c4397c18d56e55e0639292bde510.gif" class="tex" alt="\begin{eqnarray}<br />
\overset{*}{\triangleright}\!(uvx) &amp; = &amp; \triangleright\!(\overset{*}{\triangleright}\!(uv)x) \\<br />
&amp; = &amp; \triangleright\!(\overset{*}{\triangleright}\!(\overset{*}{\triangleright}\!(u)v)x) \\<br />
&amp; = &amp; \overset{*}{\triangleright}\!(\overset{*}{\triangleright}\!(u)vx)<br />
\end{eqnarray}" /></p>
<pre>[ tex ]\begin{eqnarray}
 \overset{*}{\triangleright}\!(uvx) &amp;amp; = &amp;amp; \triangleright\!(\overset{*}{\triangleright}\!(uv)x) \\
 &amp;amp; = &amp;amp; \triangleright\!(\overset{*}{\triangleright}\!(\overset{*}{\triangleright}\!(u)v)x) \\
 &amp;amp; = &amp;amp; \overset{*}{\triangleright}\!(\overset{*}{\triangleright}\!(u)vx)
 \end{eqnarray}[ /tex ]</pre>
<p>So&#8230; shouldn&#8217;t everyone just install LaTeX by default?  Shouldn&#8217;t all CMS ship with some math solution?  Of course!  <img src='http://stacyprowell.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fstacyprowell.com%2Fblog%2F2008%2F07%2F07%2Flatex%2F&amp;linkname=LaTeX"><img src="http://stacyprowell.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://stacyprowell.com/blog/2008/07/07/latex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
