<?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>Reflection Technology &#187; Latex</title>
	<atom:link href="http://www.reflections.co.nz/index.php/archives/category/latex/feed" rel="self" type="application/rss+xml" />
	<link>http://www.reflections.co.nz</link>
	<description>the meanderings of an inquisitive mind ...</description>
	<lastBuildDate>Sun, 04 Apr 2010 19:37:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Reason for Images not appearing in YAP (DVI viewer) for LaTex</title>
		<link>http://www.reflections.co.nz/index.php/archives/94</link>
		<comments>http://www.reflections.co.nz/index.php/archives/94#comments</comments>
		<pubDate>Sun, 09 Nov 2008 10:55:39 +0000</pubDate>
		<dc:creator>Giovanni</dc:creator>
				<category><![CDATA[Latex]]></category>

		<guid isPermaLink="false">http://www.reflections.co.nz/?p=94</guid>
		<description><![CDATA[I&#8217;ve just sorted out why some images wouldn&#8217;t appear in a LaTex document I&#8217;ve been working on. The old hands will probably laugh at his (I&#8217;m a newbie to LaTex) but there weren&#8217;t any errors, just a big hole were the picture should be. This was the latest version of MikTex (2.7.2). This doesn&#8217;t work: [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just sorted out why some images wouldn&#8217;t appear in a LaTex document I&#8217;ve been working on. The old hands will probably laugh at his (I&#8217;m a newbie to LaTex) but there weren&#8217;t any errors, just a big hole were the picture should be. This was the latest version of MikTex (2.7.2).</p>
<p>This doesn&#8217;t work:</p>
<pre>\begin{figure}
  % Requires \usepackage{graphicx}
  \center{
      \includegraphics[width=0.7\textwidth]{"pictures/Factors.eps"}
      \caption{Randomly generated schemes}
      \label{ScatterplotOfFFactors}
  }
\end{figure}</pre>
<p>Whereas this is fine:</p>
<pre>\begin{figure}
  % Requires \usepackage{graphicx}
  \center{
      \includegraphics[width=0.7\textwidth]{pictures/Factors.eps}
      \caption{Randomly generated schemes}
      \label{ScatterplotOfFFactors}
  }
\end{figure}</pre>
<p>What&#8217;s the difference? It&#8217;s the quotes around the filename ( <em>{pictures/Factors.eps}</em> vs<em> {<strong>&#8220;</strong>pictures/Factors.eps<strong>&#8220;</strong>}</em> ) &#8211; in the first one. I&#8217;d been thinking of the filename as a string &#8211; but in LaTex it&#8217;s not.</p>
<p>If I add quotes the file compiles without error and displays in the DVI viewer not a gap is left where the image should be &#8211; remove the quotes and the image displays correctly.</p>
<p>Initially I thought that it was having problems with images in a subdirectory (they&#8217;re in a directory called &#8220;pictures&#8221;) but that was only one of many dead-ends.</p>
<p>This might save someone some time (and sanity). When you&#8217;re writing a thesis, the last thing you want is to waste time figuring why the tools won&#8217;t work.</p>
<p>This is another example of something that happens so often when programming &#8211; <em>seeing what you expect to see</em>. None of the examples had quotes, mine did, and I just didn&#8217;t see them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reflections.co.nz/index.php/archives/94/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IMG2PNG &#8211; a BMP/JPG/GIF to PNG Batch Converter</title>
		<link>http://www.reflections.co.nz/index.php/archives/51</link>
		<comments>http://www.reflections.co.nz/index.php/archives/51#comments</comments>
		<pubDate>Tue, 27 Nov 2007 09:51:03 +0000</pubDate>
		<dc:creator>Giovanni</dc:creator>
				<category><![CDATA[Latex]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.reflections.co.nz/index.php/archives/51</guid>
		<description><![CDATA[I&#8217;ve modified a Python program I found on the net to batch-convert a folder of images to PNG format and also create the bounding boxes needed by Latex &#8211; a text formatting system wonderful (once you get used to it) for large documents. The original program JPG2PNG was from http://www.akehrer.com/wiki/code:jpg2png I&#8217;ve modified it to find [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve modified a Python program I found on the net to batch-convert a folder of images to PNG format and also create the bounding boxes needed by Latex &#8211; a text formatting system wonderful (once you get used to it) for large documents.</p>
<p align="left">The original program JPG2PNG was from<br />
<a href="http://www.akehrer.com/wiki/code:jpg2png" title="http://www.akehrer.com/wiki/code:jpg2png">http://www.akehrer.com/wiki/code:jpg2png</a></p>
<p>I&#8217;ve modified it to find and convert BMP &amp; GIF images as well and so called it <em>img2png.py</em></p>
<p>Put <em>img2png.py</em> in the folder full of images and run it. It will find all the JPG/BMP/GIF images and output PNG versions. I&#8217;ve tested the BMP/JPG parts, but not the GIF conversion, but (like all untested code) it should work :-)</p>
<pre>    The code should appear here but WordPress
    chokes when I try to upload the Python code
    so here's a download link ...</pre>
<p><strong>Download:</strong> <a href="http://www.reflections.co.nz/wordpress/my-uploads/img2png.py" title="img2png.py">img2png.py</a></p>
<p>This work is licenced under a <a href="http://creativecommons.org/licenses/by/3.0/nz/" rel="license">Creative Commons Licence</a></p>
<blockquote><p><a href="http://creativecommons.org/licenses/by/3.0/nz/" rel="license"><img src="http://i.creativecommons.org/l/by/3.0/nz/80x15.png" alt="Creative Commons License" style="border-width: 0pt" /> Giovanni Moretti &#8211; 2007</a><br />
summarised as: <em>anything that may go wrong is not my fault! </em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.reflections.co.nz/index.php/archives/51/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
