<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Path Problems in Linux</title>
	<atom:link href="http://sixthform.info/steve/wordpress/?feed=rss2&#038;p=34" rel="self" type="application/rss+xml" />
	<link>http://sixthform.info/steve/wordpress/?p=34</link>
	<description>Showcase for LatexRender</description>
	<lastBuildDate>Thu, 22 Jul 2010 08:43:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Steve</title>
		<link>http://sixthform.info/steve/wordpress/?p=34&#038;cpage=1#comment-4610</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 07 Oct 2008 18:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://sixthform.info/steve/wordpress/?p=34#comment-4610</guid>
		<description>An alternative method of ensuring \f is not misinterpreted is to use single quotes. Full details at &lt;a href=&quot;http://www.billbaxter.com/techblog/?p=5&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;LaTex in WordPress with PHP5.x&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>An alternative method of ensuring \f is not misinterpreted is to use single quotes. Full details at <a href="http://www.billbaxter.com/techblog/?p=5"  target="_blank" rel="nofollow">LaTex in WordPress with PHP5.x</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://sixthform.info/steve/wordpress/?p=34&#038;cpage=1#comment-4587</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 11 Sep 2008 19:26:58 +0000</pubDate>
		<guid isPermaLink="false">http://sixthform.info/steve/wordpress/?p=34#comment-4587</guid>
		<description>\f is a new escape character in versions 5.2.5 or later of PHP. The replacement by \\f is thus only required for these versions of PHP; \f also only occurs in the &lt;a href=&quot;http://sixthform.info/steve/wordpress/?p=52&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;offset beta version&lt;/a&gt; of latexrender.</description>
		<content:encoded><![CDATA[<p>\f is a new escape character in versions 5.2.5 or later of PHP. The replacement by \\f is thus only required for these versions of PHP; \f also only occurs in the <a href="http://sixthform.info/steve/wordpress/?p=52"  target="_blank" rel="nofollow">offset beta version</a> of latexrender.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rec</title>
		<link>http://sixthform.info/steve/wordpress/?p=34&#038;cpage=1#comment-4586</link>
		<dc:creator>rec</dc:creator>
		<pubDate>Thu, 11 Sep 2008 01:32:16 +0000</pubDate>
		<guid isPermaLink="false">http://sixthform.info/steve/wordpress/?p=34#comment-4586</guid>
		<description>I was having some path problems that I think had to do with symbolic links on the server confusing the automated script, but what I wanted to mention here (because I can&#039;t find anywhere better) is that once it was &#039;working&#039; the images were filled with garbled text that I eventually discovered quite by accident were the result of \f&#039;s needing to be \\f&#039;s, as the \n&#039;s are \\n&#039;s, presumably because of some kind of end-of-line filtering or whatever, in Wordpress 2.6.  Basically, from lines 197-224 of class.latexrender.php I had to replace every \f with \\f and now it works fine!</description>
		<content:encoded><![CDATA[<p>I was having some path problems that I think had to do with symbolic links on the server confusing the automated script, but what I wanted to mention here (because I can&#8217;t find anywhere better) is that once it was &#8216;working&#8217; the images were filled with garbled text that I eventually discovered quite by accident were the result of \f&#8217;s needing to be \\f&#8217;s, as the \n&#8217;s are \\n&#8217;s, presumably because of some kind of end-of-line filtering or whatever, in WordPress 2.6.  Basically, from lines 197-224 of class.latexrender.php I had to replace every \f with \\f and now it works fine!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simon jackman&#8217;s blog &#187; Math in Blogs via LatexRender</title>
		<link>http://sixthform.info/steve/wordpress/?p=34&#038;cpage=1#comment-3905</link>
		<dc:creator>simon jackman&#8217;s blog &#187; Math in Blogs via LatexRender</dc:creator>
		<pubDate>Sat, 24 Mar 2007 06:25:09 +0000</pubDate>
		<guid isPermaLink="false">http://sixthform.info/steve/wordpress/?p=34#comment-3905</guid>
		<description>[...] following this advice. [...]</description>
		<content:encoded><![CDATA[<p>[...] following this advice. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Leingang</title>
		<link>http://sixthform.info/steve/wordpress/?p=34&#038;cpage=1#comment-1724</link>
		<dc:creator>Matthew Leingang</dc:creator>
		<pubDate>Tue, 20 Sep 2005 11:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://sixthform.info/steve/wordpress/?p=34#comment-1724</guid>
		<description>I was getting the same symptoms and I discovered it was because my convert doesn&#039;t support the -trim option.  I was able to get it to work by replacing &quot;-trim&quot; with &quot;-crop 0x0&quot; in the line defining $command.</description>
		<content:encoded><![CDATA[<p>I was getting the same symptoms and I discovered it was because my convert doesn&#8217;t support the -trim option.  I was able to get it to work by replacing &#8220;-trim&#8221; with &#8220;-crop 0&#215;0&#8243; in the line defining $command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MarcinGomulka</title>
		<link>http://sixthform.info/steve/wordpress/?p=34&#038;cpage=1#comment-889</link>
		<dc:creator>MarcinGomulka</dc:creator>
		<pubDate>Sun, 31 Jul 2005 11:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://sixthform.info/steve/wordpress/?p=34#comment-889</guid>
		<description>The directory where &#039;gs&#039; is, needs to be in the $PATH for convert to  work correctly.

I have wordpress installed on an university server and they
put ghostscript in an unusual directory. 

The following workaround adds the additional directory into the PATH variable:


// class.latexrender.php 

// begin of workaround
// extending the PATH environmental variable
$oldpath = getenv(&quot;PATH&quot;); 
$where_gs_is = &quot;/usr/sfw/bin&quot;; 
if ($oldpath) { $where_gs_is .= &quot;:$oldpath&quot;;} 
putenv(&quot;PATH=$where_gs_is&quot;); 
// end of workaround

// imagemagick convert ps to image and trim picture
$command = $this-&gt;_convert_path.&quot; -density &quot;.$this-&gt;_formula_density.
	&quot; -trim -transparent &quot;#FFFFFF&quot; &quot;.$this-&gt;_tmp_filename.&quot;.ps &quot;.	
	$this-&gt;_tmp_filename.&quot;.&quot;.$this-&gt;_image_format;
        $status_code = exec($command);</description>
		<content:encoded><![CDATA[<p>The directory where &#8216;gs&#8217; is, needs to be in the $PATH for convert to  work correctly.</p>
<p>I have wordpress installed on an university server and they<br />
put ghostscript in an unusual directory. </p>
<p>The following workaround adds the additional directory into the PATH variable:</p>
<p>// class.latexrender.php </p>
<p>// begin of workaround<br />
// extending the PATH environmental variable<br />
$oldpath = getenv(&#8220;PATH&#8221;);<br />
$where_gs_is = &#8220;/usr/sfw/bin&#8221;;<br />
if ($oldpath) { $where_gs_is .= &#8220;:$oldpath&#8221;;}<br />
putenv(&#8220;PATH=$where_gs_is&#8221;);<br />
// end of workaround</p>
<p>// imagemagick convert ps to image and trim picture<br />
$command = $this->_convert_path.&#8221; -density &#8220;.$this->_formula_density.<br />
	&#8221; -trim -transparent &#8220;#FFFFFF&#8221; &#8220;.$this->_tmp_filename.&#8221;.ps &#8220;.<br />
	$this->_tmp_filename.&#8221;.&#8221;.$this->_image_format;<br />
        $status_code = exec($command);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
