<?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>Steven She at woggie.net &#187; Site</title>
	<atom:link href="http://www.woggie.net/category/site/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.woggie.net</link>
	<description>The life of a PhD Candidate in Software Engineering</description>
	<lastBuildDate>Wed, 16 Jun 2010 22:12:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Beamer, PDFTeX and XeTeX</title>
		<link>http://www.woggie.net/2008/07/16/beamer-pdftex-and-xetex/</link>
		<comments>http://www.woggie.net/2008/07/16/beamer-pdftex-and-xetex/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 05:17:35 +0000</pubDate>
		<dc:creator>Steven She</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[beamer]]></category>
		<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://www.woggie.net/?p=44</guid>
		<description><![CDATA[I&#8217;ve recently started using the beamer class to create slides for my presentation. Up till now, I&#8217;ve been using powerdot, and found it more than sufficient. I initially thought beamer to be far more complex than necessary. However, one feature convinced me to switch: PDFTeX and XeTeX support. Both PDFTeX and XeTeX create a PDF [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently started using the beamer class to create slides for my presentation. Up till now, I&#8217;ve been using powerdot, and found it more than sufficient. I initially thought beamer to be far more complex than necessary. However, one feature convinced me to switch: PDFTeX and XeTeX support.</p>
<p>Both PDFTeX and XeTeX create a PDF directly from the LaTeX source. XeTeX is built on PDFTeX, and is of particular interest since it has added support for TrueType and OpenType fonts. For beamer presentations, this was <em>great</em>, since it opens up a huge selection of fonts for use in presentations. To change the default font in the document with XeTeX, use the <code>fontspec</code> package. The <code>xunicode</code> package provides additional mapping between LaTeX accents and the selected font. A third package, <code>xltxtra</code> provides some fixes relating to fonts.</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">documentclass</span></span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">xetex,mathserif,serif</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">beamer</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">fontspec</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">xunicode</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">%Unicode extras!</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">xltxtra</span><span style="color: #E02020; ">}</span>  <span style="color: #2C922C; font-style: italic;">%Fixes</span>
<span style="color: #800000; font-weight: normal;">\setmainfont</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Calibri</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\setmonofont</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">Scale=0.86</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">Andale Mono</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Of course, you should replace <code>Calibri</code> and <code>Andale Mono</code> with a font of your choice.</p>
<p>Another nice package to use with PDFTeX, is the <code>microtype</code> package, which provides better font output. Enable the package with this line:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">final,expansion=true,protrusion=true,spacing=true,kerning=true</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">microtype</span><span style="color: #E02020; ">}</span></pre></div></div>

<h3>XeTeX and PGF / TiKZ</h3>
<p>PGF / TiKZ is a TeX library for drawing graphics using the PDFTeX and XeTeX drivers. However, you may encounter the following error message when attempting to compile a presentation with PGF / TiKZ pictures in your Beamer slides:</p>
<pre>Package pgf Warning: Your graphic driver pgfsys-dvipdfm.def does not supported marking the current position.</pre>
<p>Unfortunately, the included TiKZ library in the TeXLive 2007 distribution does not support XeTeX. This causes cross-picture coordinates to break, which can be used to <a href="http://www.fauskes.net/pgftikzexamples/beamer-arrows/">draw arrows between various TiKZ pictures</a> in a Beamer frame.</p>
<p>While we wait for TeXLive 2008, you can install the <a href="http://www.ctan.org/tex-archive/help/Catalogue/entries/pgf.html">new version of PGF from the CTAN</a> which adds support for the XeTeX driver. Simply download the package, and copy the files to your local <code>~/texmf/tex/</code> directory and execute <code>texhash</code> to update the TeX listings.</p>
<h3>XeTeX and Wide Pages</h3>
<p>Although I haven&#8217;t had much time to investigate the issue, but it seems that the <code>pgfpages</code> package that is used with beamer, is not entirely compatible with XeTeX. In particular, the commands:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">pgfpages</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\setbeameroption</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">show notes on second screen</span><span style="color: #E02020; ">}</span>        <span style="color: #2C922C; font-style: italic;">%beamer</span>
<span style="color: #800000; font-weight: normal;">\pgfpagesuselayout</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">two screens with optional second</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">%pgfpages</span></pre></div></div>

<p>is enough to have <code>pdflatex</code> generate notes to the right of the slide, but on <code>xelatex</code> it doesn&#8217;t have any effect. <a href="http://www.tug.org/pipermail/xetex/2009-June/013325.html">This post by Tomáš Janoušek</a> to the XeTeX mailing list noted that the problem was due to a bug in the <code>pgfpages</code> package. Adding the following snippet fixes the probblem:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\renewcommand</span><span style="color: #800000; font-weight: normal;">\pgfsetupphysicalpagesizes</span><span style="color: #E02020; ">{</span><span style="color: #2C922C; font-style: italic;">%</span>
    <span style="color: #800000; font-weight: normal;">\pdfpagewidth</span><span style="color: #800000; font-weight: normal;">\pgfphysicalwidth</span><span style="color: #800000; font-weight: normal;">\pdfpageheight</span><span style="color: #800000; font-weight: normal;">\pgfphysicalheight</span><span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #E02020; ">}</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.woggie.net/2008/07/16/beamer-pdftex-and-xetex/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The new woggie.net</title>
		<link>http://www.woggie.net/2007/07/08/hello-world/</link>
		<comments>http://www.woggie.net/2007/07/08/hello-world/#comments</comments>
		<pubDate>Sun, 08 Jul 2007 06:30:37 +0000</pubDate>
		<dc:creator>Steven She</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Site]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to the new woggie.net. I will be adding more content in the future, so stay tuned! Update: I started transferring some of the Linux guides from my old site, but found that many of them were outdated and obsolete. It&#8217;s great to find that a lot of things just work now with most Linux [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to the new woggie.net. I will be adding more content in the future, so stay tuned!</p>
<p>Update: I started transferring some of the Linux guides from my old site, but found that many of them were outdated and obsolete. It&#8217;s great to find that a lot of things <em>just work</em> now with most Linux distributions <img src='http://www.woggie.net/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.woggie.net/2007/07/08/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
