<?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>Fugato &#187; Stuff I use here</title>
	<atom:link href="http://fugato.net/category/stuff-i-use-here/feed/" rel="self" type="application/rss+xml" />
	<link>http://fugato.net</link>
	<description>Gunnlaugur Þór Briem</description>
	<lastBuildDate>Fri, 03 Sep 2010 17:43:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>LaTeX in WordPress</title>
		<link>http://fugato.net/2007/01/20/latex-in-wordpress/</link>
		<comments>http://fugato.net/2007/01/20/latex-in-wordpress/#comments</comments>
		<pubDate>Sat, 20 Jan 2007 16:25:19 +0000</pubDate>
		<dc:creator>GÞB</dc:creator>
				<category><![CDATA[Stuff I use here]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Visuals]]></category>

		<guid isPermaLink="false">http://fugato.net/2007/01/20/latex-in-wordpress/</guid>
		<description><![CDATA[This: is called Tupper&#8217;s self-referential formula. If you graph it over particular values of x and y, it makes a picture of itself, and that is quite neat. Follow the link for details. And this is a property of the unit impulse: But that&#8217;s not really the point. The point is the mathematical notation; you [...]]]></description>
			<content:encoded><![CDATA[<p>This:</p>
<div style="text-align: center;">
<img src='/wp-content/plugins/latexrender/pictures/aa32f6e1bdb9f303987ae1b00c59de00_7.85951pt.gif' title='\displaystyle\frac12 &amp;lt; \left\lfloor \mathrm{mod} \left( \left\lfloor \frac{y}{17}\right\rfloor 2^{-17\lfloor x\rfloor -\mathrm{mod}(\lfloor y\rfloor , 17)},2\right)\right\rfloor' alt='\displaystyle\frac12 &amp;lt; \left\lfloor \mathrm{mod} \left( \left\lfloor \frac{y}{17}\right\rfloor 2^{-17\lfloor x\rfloor -\mathrm{mod}(\lfloor y\rfloor , 17)},2\right)\right\rfloor'  style="vertical-align:-7.85951pt;"  />
</div>
<p>is called <a href="http://mathworld.wolfram.com/TuppersSelf-ReferentialFormula.html">Tupper&#8217;s self-referential formula</a>. If you graph it over particular values of <em>x</em> and <em>y</em>, it makes a picture of itself, and that is quite neat. Follow the link for details.</p>
<p>And this is a property of the unit impulse:</p>
<div style="text-align: center;">
<img src='/wp-content/plugins/latexrender/pictures/523db25c440002d2e8c3a9ee0748c5bb_10.94456pt.gif' title='\displaystyle\int_{-\infty}^t\delta(\tau)d\tau = u(t)' alt='\displaystyle\int_{-\infty}^t\delta(\tau)d\tau = u(t)'  style="vertical-align:-10.94456pt;"  />
</div>
<p>But that&#8217;s not really the point. The point is the mathematical notation; you can integrate <span style="vertical-align: -2px;"><img src='/wp-content/plugins/latexrender/pictures/c51d7e23458ca0e7373a8ed6ab56b2b9_3.15277pt.gif' title='\LaTeX' alt='\LaTeX'  style="vertical-align:-3.15277pt;"  /></span> mathematical notation in your WordPress blog very easily, using <a href="http://www.sixthform.info/steve/wordpress/">Steve Mayer&#8217;s LatexRender plugin</a>.</p>
<p>And the point <em>here</em> is that you can install that plugin even more easily <em>and</em> correct a nasty bug in the offset beta functionality, using <a href="/wp-content/install-latexrender.bash">my LatexRender installation script</a> (or <a href="/wp-content/install-latexrender.bsd.bash">the BSD version</a>).</p>
<p>Go to the <code>wp-content/plugins</code> subdirectory of your WordPress installation, and then either:</p>
<blockquote><p><code>wget http://fugato.net/wp-content/install-latexrender.bash<br />
bash install-latexrender.bash</code></p></blockquote>
<p>or, if your webserver is running BSD (or anything with the same kooky version of <code>sed</code> as my hosting provider&#8217;s BSD installation):</p>
<blockquote><p><code>wget http://fugato.net/wp-content/install-latexrender.bsd.bash<br />
bash install-latexrender.bsd.bash</code></p></blockquote>
<p>and with any luck, the script will set everything up right. Then you&#8217;ll just need to activate the plugin <code>LatexRender</code> in your WordPress admin panel, and try it out by putting something like <code>[<span>tex</span>]e^{i\pi}=-1[/<span>tex</span>]</code> in a blog entry. That should render the classic <span style="vertical-align: -0.5px;"><img src='/wp-content/plugins/latexrender/pictures/74efedf498a3cab300eae408c273ffdb_1.83333pt.gif' title='e^{i\pi}=-1' alt='e^{i\pi}=-1'  style="vertical-align:-1.83333pt;"  /></span>.</p>
<p>This is tested working fine in WordPress versions 2.0 through 2.5.1 (the current stable version, which this blog is running).</p>
<p>The script assumes that your blog is located at the root of your website. If it isn&#8217;t, then you must provide the base path as an argument to the script. E.g. if your blog is at <code>http://o.com/all/ye/faithful/</code>, then you must run the script like this:</p>
<blockquote><p><code>bash install-latexrender.bash /all/ye/faithful</code></p></blockquote>
<p>and it should work right.</p>
<p>Some formulas may be slightly misaligned with the text baseline. You can work around this by manually surrounding them with stuff like <code>&lt;span style="vertical-align: -0.5px;"&gt; ... &lt;/span&gt;</code> on a case-by-case basis (assuming you edit your blog entries in straight HTML, not the rich text editor).</p>
]]></content:encoded>
			<wfw:commentRss>http://fugato.net/2007/01/20/latex-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
	</channel>
</rss>

