<?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>rohitj&#039;s domain &#187; latex</title>
	<atom:link href="http://rohitj.net/blog/category/programming/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://rohitj.net</link>
	<description>Yet more clitches</description>
	<lastBuildDate>Sat, 20 Mar 2010 17:03:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Latex on wordpress</title>
		<link>http://rohitj.net/blog/2007/09/08/latex-on-wordpress/</link>
		<comments>http://rohitj.net/blog/2007/09/08/latex-on-wordpress/#comments</comments>
		<pubDate>Sat, 08 Sep 2007 17:55:39 +0000</pubDate>
		<dc:creator>rohitj</dc:creator>
				<category><![CDATA[Bluehost]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://rohitj.net/blog/2007/09/08/latex-on-wordpress/</guid>
		<description><![CDATA[So, you are a geek. You want to write lot of technical things on your wordpress blog. And since you are a geek you want to write technical things in Latex. How do you do? One way is that you write latex code, make pdf, take screenshot, pick the desirable part, and use that image [...]]]></description>
			<content:encoded><![CDATA[<p>So, you are a geek. You want to write lot of technical things on your wordpress blog. And since you are a geek you want to write technical things in Latex. How do you do? One way is that you write latex code, make pdf, take screenshot, pick the desirable part, and use that image on blog. Ofcourse thats inconvenient and surely doesn&#8217;t go with your nerd personality. You want to write Latex code in your blog post. Here are 2 solutions. One is that you use <a href="http://wordpress.org/extend/plugins/wp-latex/">wp-latex</a> plugin. Using this plugin you will be able to write proper Latex code in your blog using &lt;latex&gt;&lt;/latex&gt; tags. But the problem is that this plugin uses Latex, which is not usually supported by web hosts, including Bluehost. And installing tetex locally is painful. So, here comes the second solution. Use <a href="http://www.forkosh.com/mimetex.html">mimetex</a>. Checkout http://www.forkosh.dreamhost.com/mimetex.cgi?l_2 . Similarly you can get other latex output by replacing l_2. One guy used this property and made a plugin. Using this plugin you can use latex code, basically mimetex (which is a bit different from Latex) with &lt;tex&gt;&lt;/tex&gt; tags. I couldn&#8217;t get it working. Another guy changed this script and made it working with \[tex\]\[\/tex\] tags. It didn&#8217;t work as well. This new plugin downloads this image and stores in wp-content/cache folder. But it downloads this image every time someone opens the post. Of course it consumes lot of server and bandwidth. So, I made a small tweak in it. I replaced it&#8217;s 15 lines with 1 line. <img src='http://rohitj.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Basically, now instead of downloading the image, it puts src as http://www.forkosh.dreamhost.com/mimetex.cgi? blah blah. And see I am able to use latex code.</p>
<p><img src='http://www.forkosh.dreamhost.com/mimetex.cgi?+f%28x%29+%3D+x%5E2+%2B+l_2' class='tex' alt=' f(x) = x^2 + l_2' /></p>
<p>Enjoy</p>
<p>Update : You can download the plugin (after my modification) from <a href="http://www.rohitj.net/blog/wp-content/uploads/2007/09/rohitj_mimetex.zip" title="Plugin for using Latex">Plugin for using Latex</a></p>
<p>Update2 : The plugin is under GPL.</p>
<p>Update3 : So, the code I changed was suggested by Nitin Munjal. You can find him <a href="http://www.cse.iitk.ac.in/users/nitinm/blog/">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rohitj.net/blog/2007/09/08/latex-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>
