<?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>Lachlan.Rogers.name &#187; Latex</title>
	<atom:link href="http://lachlan.rogers.name/tag/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://lachlan.rogers.name</link>
	<description>An online home</description>
	<lastBuildDate>Mon, 04 Jul 2011 12:54:46 +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>Producing handout with LaTeX Beamer</title>
		<link>http://lachlan.rogers.name/2009/11/producing-handout-with-latex-beamer/</link>
		<comments>http://lachlan.rogers.name/2009/11/producing-handout-with-latex-beamer/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 12:23:52 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[bash shell]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Latex]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/?p=489</guid>
		<description><![CDATA[I jotted this down a year ago when I needed to produce a set of handout notes for a 3rd year physics lecture I took. Just last week, after taking a similar set of lectures, I wanted to find it but couldn&#8217;t. Murphy&#8217;s Law has come into effect, and my jotted note has turned up [...]]]></description>
			<content:encoded><![CDATA[<p>I jotted this down a year ago when I needed to produce a set of handout notes for a 3rd year physics lecture I took.  Just last week, after taking a similar set of lectures, I wanted to find it but couldn&#8217;t.  Murphy&#8217;s Law has come into effect, and my jotted note has turned up now that my need for it has passed.</p>
<p>The Beamer class for LaTeX is a great way to produce very nice presentation slides with useful features such as automatic progress markers and internal hyperlinks.  Being LaTeX, it is also possible to completely change the output formatting by simply altering certain document settings.  This allows me to produce slides that have black backgrounds for better projection onto a screen, and then change a single line (specifying the colour theme) to get a white-background version optimised for printing on paper.</p>
<p>To make it even more efficient to print, I used the following command to fit 3 slides to an A4 page:</p>
<p><code>pdfnup  --frame false --nup 1x3 --paper a4paper --orient auto --pages all --trim "0 0 0 0" --delta "1cm 1cm" --offset "0 0" --scale 0.91 --turn true --noautoscale false --openright false --column false --columnstrict false --tidy true --outfile main3up.pdf main.pdf</code></p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2009/11/producing-handout-with-latex-beamer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pretty display fonts from Latex</title>
		<link>http://lachlan.rogers.name/2009/02/pretty-display-fonts-from-latex/</link>
		<comments>http://lachlan.rogers.name/2009/02/pretty-display-fonts-from-latex/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 06:35:00 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[Latex]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/?p=503</guid>
		<description><![CDATA[The fonts that LaTeX uses by default (called &#8220;Computer Modern&#8221;) are very elegant, and are one of the great reasons to use LaTeX for typesetting documents. Frustratingly, I&#8217;ve been having difficulty lately with my pdfviewer (epdfview and sometimes xpdf) not displaying these fonts well in pdfs I&#8217;ve created using LaTeX. Adobe acroread has been able [...]]]></description>
			<content:encoded><![CDATA[<p>The fonts that LaTeX uses by default (called &#8220;Computer Modern&#8221;) are very elegant, and are one of the great reasons to use LaTeX for typesetting documents.  Frustratingly, I&#8217;ve been having difficulty lately with my pdfviewer (epdfview and sometimes xpdf) not displaying these fonts well in pdfs I&#8217;ve created using LaTeX.  </p>
<p>Adobe acroread has been able to do a better job, but who wants to use such a slow and bloated piece of software just to quickly view a pdf?  At least the pdfs have printed properly, so up till now I haven&#8217;t been too worried.</p>
<p>The solution, which I found at <a href="http://dsanta.users.ch/resources/type1.html" title="High quality PDF output from LaTeX and TeX">a page encouragingly called &#8220;High quality PDF output from LaTeX and TeX&#8221;</a>, is profoundly simple.  It simply involves telling LaTeX to use the scalable font rather than the older bitmap version.  Add these two lines to the preamble:<br />
<code><br />
\usepackage[T1]{fontenc}<br />
\usepackage{ae,aecompl}<br />
</code><br />
and you&#8217;re done.</p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2009/02/pretty-display-fonts-from-latex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Perfect graph integration using psfrag</title>
		<link>http://lachlan.rogers.name/2007/09/perfect-graph-integration-using-psfrag/</link>
		<comments>http://lachlan.rogers.name/2007/09/perfect-graph-integration-using-psfrag/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 14:48:48 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[Latex]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/wordpress/?p=56</guid>
		<description><![CDATA[One of the things that frustrated me last year as I edited my honours thesis was text elements in inserted graphs. Axis and tick labels were unavoidable, but making them look consistent with the document text was not easy. I wish that I had found this article about making plots using Octave, gnuplot, and LaTeX, [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things that frustrated me last year as I edited my honours thesis was text elements in inserted graphs.  Axis and tick labels were unavoidable, but making them look consistent with the document text was not easy.  I wish that I had found this article about <a href="http://www.reimeika.ca/marco/prettyplots/" title="Making plots using Octave, gnuplot, and LaTeX">making plots using Octave, gnuplot, and LaTeX</a>, because the psfrag package provides a perfect solution.</p>
<p>It replaces text in an eps file with its own LaTeX formatted text.  This allows, for instance, elaborate mathematical formulae to be displayed anywhere on the graph.  It also allows axis and tick labels to be replaced with text that exactly matches the font and size used throughout the document &#8211; even if document wide settings are changed <em>after</em> the graph has been created.<span id="more-56"></span></p>
<p>Since it relies on PostScript magic, it requires eps files.  A clever script has been written to essentially <a href="http://www.tat.physik.uni-tuebingen.de/~vogel/fragmaster/main.html" title="psfrag with pdflatex">allow the psfrag package to be used with pdflatex</a>. I think I might have a more up to date tetex package than the author wrote his script for, however, as I had some difficulty with relative paths and had to add the option &#8220;-R0&#8243; (that&#8217;s a zero) to the dvips command in line 197 to make it work.</p>
<p>For reference, the psfrag package is used as follows.  Firstly it must be loaded, so the preamble needs to include: <code>\usepackage{psfrag}</code><br />
The syntax of the &#8220;psfrag&#8221; command is: <code>\psfrag{tag}[&lt;posn&gt;][&lt;psposn&gt;][&lt;scale&gt;][&lt;rot&gt;]{replacement}</code> and any number of these lines may be included inside the \begin{figure} section and before the \includegraphics command.To get the required output, a dvi file must be produced: <code>latex FILE.tex</code> and then converted to PostScript: <code>dvips -o FILE.ps FILE.dvi</code> This can then be converted to a pdf using ps2pdf.</p>
<p>It is also possible to use psfrag with LyX.  The \usepackage command must be manually added to the preamble (Document-&gt;Settings), but within LyX the \begin{figure} and \includegraphics commands are automatically added by using a figure float and inserting an image.  The \psfrag commands can be added as TeX code inside the float and above the figure.</p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2007/09/perfect-graph-integration-using-psfrag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Numbering parts of a Theorem with (a), (b), &#8230;</title>
		<link>http://lachlan.rogers.name/2007/06/numbering-parts-of-a-theorem-with-a-b/</link>
		<comments>http://lachlan.rogers.name/2007/06/numbering-parts-of-a-theorem-with-a-b/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 15:30:53 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[Latex]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/wordpress/?p=19</guid>
		<description><![CDATA[In LyX it is easy to make a theorem with multiple parts. It involves using the enumerate environment nested in a Theorem environment. But the resulting parts are numbered (1), (2), et c. To get alphabetically numbered parts, use the following LaTeX inserted code. \begin{itemize} \item[(a)] &#60; PART ONE &#62; \item[(b)] &#60; PART TWO &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>In LyX it is easy to make a theorem with multiple parts. It involves using the enumerate environment nested in a Theorem environment.  But the resulting parts are numbered (1), (2), et c.  To get alphabetically numbered parts, use the following LaTeX inserted code.<br />
<code> \begin{itemize}<br />
\item[(a)] &lt; PART ONE &gt;<br />
\item[(b)] &lt; PART TWO &gt;<br />
\end{itemize}</code><br />
Roman numerals can be used also, by replacing the &#8220;a&#8221;, &#8220;b&#8221; and so on.</p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2007/06/numbering-parts-of-a-theorem-with-a-b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

