<?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>BigSmoke &#187; latex</title>
	<atom:link href="http://blog.bigsmoke.us/tag/latex/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bigsmoke.us</link>
	<description>Smokes your problems, coughs fresh air.</description>
	<lastBuildDate>Sat, 04 Feb 2012 18:03:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>eps2eps to the rescue when epstopdf complains of no bounding box</title>
		<link>http://blog.bigsmoke.us/2007/03/02/eps2eps-can-create-a-bounding-box-for-epstopdf</link>
		<comments>http://blog.bigsmoke.us/2007/03/02/eps2eps-can-create-a-bounding-box-for-epstopdf#comments</comments>
		<pubDate>Fri, 02 Mar 2007 22:00:28 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[eps]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[postscript]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/2007/03/02/eps2eps-before-epstopdf</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>PDFLaTeX doesn&#8217;t like encapsulated postscript images. If you want to use <tt>.eps</tt> files with <tt>pdflatex</tt>, you can convert these files to PDF using Sebastian Rahtz&#8217; <tt>epstopdf</tt>, and then remove all <tt>.eps</tt> file extensions from the image locations in your <tt>.tex</tt> source files. Then, the <tt>latex</tt> command will look for <tt>.eps</tt> file and the <tt>pdflatex</tt> command will look for <tt>.pdf</tt>, <tt>.jpg</tt> and <tt>.png</tt> files.</p>

<p>The other moment, I tried to do just this. But, <tt>epstopdf</tt> complained about the lack of a bounding box in one of my EPS files. Indeed, the conversion finished but generated a huge white background with the actual image somewhere in the lower left corner. From the man-page:</p>

<blockquote>
<p><tt>epstopdf</tt> transforms  the  Encapsulated PostScript file so that it is guaranteed to start at the 0,0 coordinate, and it sets a page size exactly corresponding to the  BoundingBox. This  means that when Ghostscript  renders  it, the result needs no cropping, and the PDF MediaBox is correct. The result is piped to Ghostscript and a PDF version written.</p>

<p>If the bounding box is not right, of course, you have problems&#8230;</p>
</blockquote>

<p>Luckily, while tab-completing from <tt>eps</tt> to <tt>epstopdf</tt>, I noticed the <tt>eps2eps</tt> utility. I though: <q>What if this utility happens to sanitize the EPS file a bit?</q> A quick look at the man page and a test run later, my hope was confirmed: <tt>epstopdf</tt> would now generate a nice PDF file without complaining.</p>

<p>The <tt>epstopdf</tt> manual page could be amended to: <q>If the bounding box is not right, you might want to try to run <tt>eps2eps</tt> first.</q></p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2007/03/02/eps2eps-can-create-a-bounding-box-for-epstopdf/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

