<?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>Software for Exploratory Data Analysis and Statistical Modelling &#187; Beamer</title>
	<atom:link href="http://www.wekaleamstudios.co.uk/topics/latex-typesetting/beamer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wekaleamstudios.co.uk</link>
	<description>Statistical Modelling with R</description>
	<lastBuildDate>Wed, 01 Feb 2012 19:44:22 +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>Creating a Presentation with LaTeX Beamer &#8211; Frame Transitions</title>
		<link>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-frame-transitions/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-frame-transitions/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 09:37:59 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Beamer]]></category>
		<category><![CDATA[frame]]></category>
		<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[transition]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1383</guid>
		<description><![CDATA[Transitions are often used in presentations to break up the presentation and to keep the audience awake, but often the outcome is irritation/distraction with text or other objects flying on or off the screen from different directions. As such they should be used sparingly if at all in a talk. LaTeX beamer has a simple [...]]]></description>
			<content:encoded><![CDATA[<p>Transitions are often used in presentations to break up the presentation and to keep the audience awake, but often the outcome is irritation/distraction with text or other objects flying on or off the screen from different directions. As such they should be used sparingly if at all in a talk. <strong>LaTeX</strong> beamer has a simple mechanism for including transitions in a presentation<span id="more-1383"></span></p>
<p><!--[Fast Tube]--><span id="smpGBk_d4Fc" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-frame-transitions/#smpGBk_d4Fc"><img src="http://i.ytimg.com/vi/smpGBk_d4Fc/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p>To use this transitions <strong>pdflatex</strong> needs to be used to create the document as a <strong>pdf</strong> file and the presentation needs to be viewed in full screen mode to observe the transitions. Adding a transition on a slide is as simple as adding a command like:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\transdissolve</span></pre></div></div>

<p>to the slide. This transition disolves the contents of the slide. The <strong>LaTeX</strong> beamer user guide has further information about the transitions that are available.</p>
<p>Other useful resources are provided on the <a href="http://www.wekaleamstudios.co.uk/supplementary-material/">Supplementary Material</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-frame-transitions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Presentation with LaTeX Beamer &#8211; Using Overlays</title>
		<link>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-using-overlays/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-using-overlays/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 19:00:37 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Beamer]]></category>
		<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[onslide]]></category>
		<category><![CDATA[overlay]]></category>
		<category><![CDATA[pause]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1374</guid>
		<description><![CDATA[Overlays can be used in a LaTeX beamer presentation to reveal parts of a slide sequentially, which can be a useful way of imparting information to your audience. There are a number of different ways that overlays can be created depending on the sophistication required in the presentation. Fast Tube by Casper The \pause command [...]]]></description>
			<content:encoded><![CDATA[<p>Overlays can be used in a <strong>LaTeX</strong> beamer presentation to reveal parts of a slide sequentially, which can be a useful way of imparting information to your audience. There are a number of different ways that overlays can be created depending on the sophistication required in the presentation.<span id="more-1374"></span></p>
<p><!--[Fast Tube]--><span id="GtiMuBij7hg" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-using-overlays/#GtiMuBij7hg"><img src="http://i.ytimg.com/vi/GtiMuBij7hg/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p>The <strong>\pause</strong> command is the easiest way to create simple overlays that reveal consecutive parts of a slide.</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Total Runs Scored.
<span style="color: #800000; font-weight: normal;">\pause</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Number of Innings Batted.
<span style="color: #800000; font-weight: normal;">\pause</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Number of Not Out Innings.
<span style="color: #800000; font-weight: normal;">\pause</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Number of 100s.
<span style="color: #800000; font-weight: normal;">\pause</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Number of 50s.
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Commands such as <strong><1-></strong> can be added after various beamer environments to allow them to appear on different slides of the overlay set to provide greater control over the display.</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">cccccccc</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">hline</span>
Opposition <span style="color: #E02020; ">&amp;</span> Match <span style="color: #E02020; ">&amp;</span> Inns <span style="color: #E02020; ">&amp;</span> Runs <span style="color: #E02020; ">&amp;</span> NO <span style="color: #E02020; ">&amp;</span> Inns <span style="color: #E02020; ">&amp;</span> Wicket <span style="color: #E02020; ">&amp;</span> Catches <span style="color: #E02020; ">\\</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">hline</span>
<span style="color: #800000; font-weight: normal;">\onslide</span>&lt;2-&gt; Australia <span style="color: #E02020; ">&amp;</span> 36 <span style="color: #E02020; ">&amp;</span> 49 <span style="color: #E02020; ">&amp;</span> 1673 <span style="color: #E02020; ">&amp;</span> 2 <span style="color: #E02020; ">&amp;</span> 66 <span style="color: #E02020; ">&amp;</span> 148 <span style="color: #E02020; ">&amp;</span> 57 <span style="color: #E02020; ">\\</span>
<span style="color: #800000; font-weight: normal;">\onslide</span>&lt;3-&gt; India <span style="color: #E02020; ">&amp;</span> 14 <span style="color: #E02020; ">&amp;</span> 16 <span style="color: #E02020; ">&amp;</span> 1201 <span style="color: #E02020; ">&amp;</span> 0 <span style="color: #E02020; ">&amp;</span> 23 <span style="color: #E02020; ">&amp;</span> 59 <span style="color: #E02020; ">&amp;</span> 14 <span style="color: #E02020; ">\\</span>
<span style="color: #800000; font-weight: normal;">\onslide</span>&lt;4-&gt; New Zealand <span style="color: #E02020; ">&amp;</span> 15 <span style="color: #E02020; ">&amp;</span> 22 <span style="color: #E02020; ">&amp;</span> 846 <span style="color: #E02020; ">&amp;</span> 2 <span style="color: #E02020; ">&amp;</span> 28 <span style="color: #E02020; ">&amp;</span> 64 <span style="color: #E02020; ">&amp;</span> 14 <span style="color: #E02020; ">\\</span>
<span style="color: #800000; font-weight: normal;">\onslide</span>&lt;5-&gt; Pakistan <span style="color: #E02020; ">&amp;</span> 14 <span style="color: #E02020; ">&amp;</span> 20 <span style="color: #E02020; ">&amp;</span> 647 <span style="color: #E02020; ">&amp;</span> 1 <span style="color: #E02020; ">&amp;</span> 18 <span style="color: #E02020; ">&amp;</span> 40 <span style="color: #E02020; ">&amp;</span> 14 <span style="color: #E02020; ">\\</span>
<span style="color: #800000; font-weight: normal;">\onslide</span>&lt;6-&gt; Sri Lanka <span style="color: #E02020; ">&amp;</span> 3 <span style="color: #E02020; ">&amp;</span> 3 <span style="color: #E02020; ">&amp;</span> 41 <span style="color: #E02020; ">&amp;</span> 0 <span style="color: #E02020; ">&amp;</span> 6 <span style="color: #E02020; ">&amp;</span> 11 <span style="color: #E02020; ">&amp;</span> 2 <span style="color: #E02020; ">\\</span>
<span style="color: #800000; font-weight: normal;">\onslide</span>&lt;7-&gt; West Indies <span style="color: #E02020; ">&amp;</span> 20 <span style="color: #E02020; ">&amp;</span> 37 <span style="color: #E02020; ">&amp;</span> 792 <span style="color: #E02020; ">&amp;</span> 1 <span style="color: #E02020; ">&amp;</span> 27 <span style="color: #E02020; ">&amp;</span> 61 <span style="color: #E02020; ">&amp;</span> 19 <span style="color: #E02020; ">\\</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">hline</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The <strong>\onslide</strong> command is used to indicate a range of slides in the overlay where the information on that line should be displayed.</p>
<p>There are ways to create more complicated overlays to reveal information on a slide.</p>
<p>Other useful resources are provided on the <a href="http://www.wekaleamstudios.co.uk/supplementary-material/">Supplementary Material</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-using-overlays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Presentation with LaTeX Beamer &#8211; Including Images from Graphics Files</title>
		<link>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-including-images-from-graphics-files/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-including-images-from-graphics-files/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 10:35:41 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Beamer]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[graphicx]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[jpeg]]></category>
		<category><![CDATA[jpg]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[LaTeX Typesetting]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1327</guid>
		<description><![CDATA[It will often be more efficient to generate graphics in an external software package and then include these files in a LaTeX beamer presentation. The standard LaTeX approach to including graphics can be utilised to perform this task. Fast Tube by Casper The graphicx is useful for including graphics files in a presentation and this [...]]]></description>
			<content:encoded><![CDATA[<p>It will often be more efficient to generate graphics in an external software package and then include these files in a <strong>LaTeX</strong> beamer presentation. The standard <strong>LaTeX</strong> approach to including graphics can be utilised to perform this task.<span id="more-1327"></span></p>
<p><!--[Fast Tube]--><span id="ZNz8RM-2vAg" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-including-images-from-graphics-files/#ZNz8RM-2vAg"><img src="http://i.ytimg.com/vi/ZNz8RM-2vAg/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p>The <strong>graphicx</strong> is useful for including graphics files in a presentation and this package has a command <strong>\includegraphics</strong> where we specify the name of the image file to be included and (optionally) some formatting information such as the dimensions of the image in our document.</p>
<p>As an example if we wanted to include a <strong>jpg</strong> file then we would include a command like this:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">includegraphics</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">plot</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>and if we wanted to scale in the horizontal or vertical dimension then we can specify the height and width to use:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">includegraphics</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">height=8cm,width=12cm</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">plot</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>There are other options as part of the graphicx package that can be used to adjust the display of the image as required.</p>
<p>Other useful resources are provided on the <a href="http://www.wekaleamstudios.co.uk/supplementary-material/">Supplementary Material</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-including-images-from-graphics-files/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Creating a Presentation with LaTeX Beamer &#8211; Equations and tikz</title>
		<link>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-equations-and-tikz/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-equations-and-tikz/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 10:23:31 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Beamer]]></category>
		<category><![CDATA[arrows]]></category>
		<category><![CDATA[equation]]></category>
		<category><![CDATA[item]]></category>
		<category><![CDATA[itemize]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[overlay]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[tikz]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1309</guid>
		<description><![CDATA[Many presentations created using LaTeX beamer included mathematical equations and these can be easily included in a presentation and in this post we will consider using the tikz package to add various interesting elements to equations, such as lines between text on a slide and part of an equation. Fast Tube by Casper The examples [...]]]></description>
			<content:encoded><![CDATA[<p>Many presentations created using <strong>LaTeX</strong> beamer included mathematical equations and these can be easily included in a presentation and in this post we will consider using the <strong>tikz</strong> package to add various interesting elements to equations, such as lines between text on a slide and part of an equation.<span id="more-1309"></span></p>
<p><!--[Fast Tube]--><span id="6mCwVSwP1hU" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-equations-and-tikz/#6mCwVSwP1hU"><img src="http://i.ytimg.com/vi/6mCwVSwP1hU/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p>The examples on this page have been inspired by the good examples on global nodes detailed on <a href="http://www.texample.net/tikz/examples/global-nodes/">texample.net</a>. The example can be adapted to apply to equations for various statistical models and we will consider the model for a general row-column experiment design.</p>
<p>To create this example we need to make <strong>tikz</strong> available in our tex file by adding the following code to the preamble:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">tikz</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\usetikzlibrary</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">arrows,shapes</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The second and third lines refer to particular elements of <strong>tikz</strong> that will be used in the example.</p>
<p>If we want to access nodes in different areas of our latex document we need to make use of the remember picture style and the easiest way to do this is to make a global declaration rather than on each specific picture:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\tikzstyle</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">every picture</span><span style="color: #E02020; ">}</span>+=<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">remember picture</span><span style="color: #E02020; ">]</span></pre></div></div>

<p>The example will be the model for a row-column experiment design and we will have four elements in a bullet list that are linked by arrows to different parts of the equation, which in turn are highlighted in their own box.</p>
<p>We use the <strong>itemize</strong> environment to add the first bullet point:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Overall mean <span style="color: #800000; font-weight: normal;">\tikz</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">na</span><span style="color: #E02020; ">]</span> <span style="color: #800000; font-weight: normal;">\node</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">coordinate</span><span style="color: #E02020; ">]</span> (s1) <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #E02020; ">}</span>;
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>At the end of the item we add a <strong>tikz</strong> node so that we can draw a line from the end of this line to one of the boxes in the equation. We also provide a name s1 so that it can be identified by <strong>tikz</strong>. This node uses a style to shift the location where the line starts from, that we need to define in our document using this code:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\tikzstyle</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">na</span><span style="color: #E02020; ">}</span> = <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">baseline=-.5ex</span><span style="color: #E02020; ">]</span></pre></div></div>

<p>The next step is to create the equation and the nodes and background boxes for each element of the equation that will be linked to the bullet list. The code for the equation is shown here:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">equation</span></span><span style="color: #E02020; ">}</span><span style="color: #8020E0; font-weight: normal;">
y_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">ijk</span><span style="color: #E02020; ">}</span> = <span style="color: #800000; font-weight: normal;">\tikz</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">baseline</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;"> <span style="color: #800000; font-weight: normal;">\node</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">fill=blue!20,anchor=base,rounded corners=2pt</span><span style="color: #E02020; ">]</span>
  (d1) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$<span style="color: #800000; font-weight: normal;">\mu</span>$</span></span><span style="color: #E02020; ">}</span>; <span style="color: #E02020; ">}</span>
+ <span style="color: #800000; font-weight: normal;">\tikz</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">baseline</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;"> <span style="color: #800000; font-weight: normal;">\node</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">fill=red!20,anchor=base,rounded corners=2pt</span><span style="color: #E02020; ">]</span>
  (d2) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$r_{i</span>}$</span><span style="color: #E02020; ">}</span>; <span style="color: #E02020; ">}</span>
+ <span style="color: #800000; font-weight: normal;">\tikz</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">baseline</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;"> <span style="color: #800000; font-weight: normal;">\node</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">fill=green!20,anchor=base,rounded corners=2pt</span><span style="color: #E02020; ">]</span>
  (d3) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$c_{j</span>}$</span><span style="color: #E02020; ">}</span>; <span style="color: #E02020; ">}</span>
+ <span style="color: #800000; font-weight: normal;">\tikz</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">baseline</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;"> <span style="color: #800000; font-weight: normal;">\node</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">fill=yellow!20,anchor=base,rounded corners=2pt</span><span style="color: #E02020; ">]</span>
  (d4) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$t_{k</span>}$</span><span style="color: #E02020; ">}</span>; <span style="color: #E02020; ">}</span>
+ <span style="color: #800000; font-weight: normal;">\epsilon</span>_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">ijk</span>}
</span><span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">equation</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>If we look closely at this code the <strong>latex</strong> for the equation itself is very straightforward and the complication comes from adding a <strong>tikz</strong> node to four of the elements of the equation. The nodes themselves have colours (blue/red/green/yellow) and rounded corners. They each have a label d1 to d4 so that <strong>tikz</strong> can draw lines between the bullet list and the elements of the equation.</p>
<p>We then finish off the bullet list with three more elements:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Effect of row <span style="color: #8020E0; font-weight: normal;">$i$</span> <span style="color: #800000; font-weight: normal;">\tikz</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">na</span><span style="color: #E02020; ">]</span> <span style="color: #800000; font-weight: normal;">\node</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">coordinate</span><span style="color: #E02020; ">]</span> (s2) <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #E02020; ">}</span>;
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Effect of column <span style="color: #8020E0; font-weight: normal;">$j$</span> <span style="color: #800000; font-weight: normal;">\tikz</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">na</span><span style="color: #E02020; ">]</span> <span style="color: #800000; font-weight: normal;">\node</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">coordinate</span>] (s3) {</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #E02020; ">}</span>;
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Effect of treatment <span style="color: #8020E0; font-weight: normal;">$k$</span> <span style="color: #800000; font-weight: normal;">\tikz</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">na</span><span style="color: #E02020; ">]</span> <span style="color: #800000; font-weight: normal;">\node</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">coordinate</span>] (s4) {</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #E02020; ">}</span>;
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Each of the items in this bullet list have their own identifier s2 to s4 that we will use to draw arrows.</p>
<p>We create a separate picture environment for the four arrows linking the bullet list to the equation. Each element is defined as a path between two nodes with additional information about the shape of the arrow.</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tikzpicture</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">overlay</span><span style="color: #E02020; ">]</span>
<span style="color: #800000; font-weight: normal;">\path</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">-&gt;</span><span style="color: #E02020; ">]</span> (s1) edge <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">bend left</span><span style="color: #E02020; ">]</span> (d1);
<span style="color: #800000; font-weight: normal;">\path</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">-&gt;</span><span style="color: #E02020; ">]</span> (s2) edge <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">bend right</span><span style="color: #E02020; ">]</span> (d2);
<span style="color: #800000; font-weight: normal;">\path</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">-&gt;</span><span style="color: #E02020; ">]</span> (s3) edge <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">out=0, in=-90</span><span style="color: #E02020; ">]</span> (d3);
<span style="color: #800000; font-weight: normal;">\path</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">-&gt;</span><span style="color: #E02020; ">]</span> (s4) edge <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">out=0, in=-90</span><span style="color: #E02020; ">]</span> (d4);
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tikzpicture</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>There are many variants on this example that could be incorporated in a presentation.</p>
<p>Other useful resources are provided on the <a href="http://www.wekaleamstudios.co.uk/supplementary-material/">Supplementary Material</a> page. Also head over to <a href="http://www.texample.net/">texample.net</a> for more examples of using the <strong>tikz</strong> package.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-equations-and-tikz/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Creating a Presentation with LaTeX Beamer &#8211; Boxes</title>
		<link>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-boxes/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-boxes/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 17:15:29 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Beamer]]></category>
		<category><![CDATA[boxes]]></category>
		<category><![CDATA[definition]]></category>
		<category><![CDATA[exampleblock]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[LaTeX Typesetting]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1302</guid>
		<description><![CDATA[We can add coloured boxes with text or mathematics into a LaTeX beamer presentation which is particularly useful if we have definitions, theorem or computer code to highlight this information that may not be so accessible within a paragraph of text. Fast Tube by Casper The easiest way to create a box is to use [...]]]></description>
			<content:encoded><![CDATA[<p>We can add coloured boxes with text or mathematics into a <strong>LaTeX</strong> beamer presentation which is particularly useful if we have definitions, theorem or computer code to highlight this information that may not be so accessible within a paragraph of text.<span id="more-1302"></span></p>
<p><!--[Fast Tube]--><span id="TAETr3Nf3jA" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-boxes/#TAETr3Nf3jA"><img src="http://i.ytimg.com/vi/TAETr3Nf3jA/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p>The easiest way to create a box is to use the various pre-defined environments such as definition:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">definition</span></span><span style="color: #E02020; ">}</span>
The simple linear regression model describes the relationship between
a response variable and a single explanatory variable.
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">definition</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>We might want to create a box with our own title in which case the <strong>exampleblock</strong> environment can be used with the new title as an argument to this environment:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">exampleblock</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">Linear Regression Model</span><span style="color: #E02020; ">}</span>
<span style="color: #8020E0; font-weight: normal;">$Y_{<span style="color: #2020C0; font-weight: normal;">i</span><span style="color: #E02020; ">}</span> = <span style="color: #800000; font-weight: normal;">\beta</span>_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">0</span><span style="color: #E02020; ">}</span> + <span style="color: #800000; font-weight: normal;">\beta</span>_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">1</span><span style="color: #E02020; ">}</span> X_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">i</span><span style="color: #E02020; ">}</span> + <span style="color: #800000; font-weight: normal;">\epsilon</span>_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">i</span>}$</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">exampleblock</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Other useful resources are provided on the <a href="http://www.wekaleamstudios.co.uk/supplementary-material/">Supplementary Material</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-boxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Presentation with LaTeX Beamer &#8211; Tables</title>
		<link>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-tables/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-tables/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 18:21:32 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Beamer]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[row]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[tabular]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1268</guid>
		<description><![CDATA[Tables of information can be included in a LaTeX beamer presentation in the same way that they would be incorporated into any other LaTeX document. The tabular environment is used and, if necessary, the tables could be numbered but this probably doesn&#8217;t make as much sense as labelling and numbering tables within an article or [...]]]></description>
			<content:encoded><![CDATA[<p>Tables of information can be included in a <strong>LaTeX</strong> beamer presentation in the same way that they would be incorporated into any other <strong>LaTeX</strong> document. The tabular environment is used and, if necessary, the tables could be numbered but this probably doesn&#8217;t make as much sense as labelling and numbering tables within an article or book.<span id="more-1268"></span></p>
<p><!--[Fast Tube]--><span id="DYfH-dnR0s4" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-tables/#DYfH-dnR0s4"><img src="http://i.ytimg.com/vi/DYfH-dnR0s4/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p>For example, if we wanted to add a table of some of the common geom elements for ggplot2 to a slide we could use the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">Common geoms</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">cc</span><span style="color: #E02020; ">}</span>
geom <span style="color: #E02020; ">&amp;</span> Description <span style="color: #E02020; ">\\</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">hline</span>
geom_bar <span style="color: #E02020; ">&amp;</span> Bar chart <span style="color: #E02020; ">\\</span>
geom_boxplot <span style="color: #E02020; ">&amp;</span> Box and Whisker plot <span style="color: #E02020; ">\\</span>
geom_contour <span style="color: #E02020; ">&amp;</span> Contour plot <span style="color: #E02020; ">\\</span>
geom_point <span style="color: #E02020; ">&amp;</span> Scatter plot <span style="color: #E02020; ">\\</span>
geom_smooth <span style="color: #E02020; ">&amp;</span> Smoothed conditional mean <span style="color: #E02020; ">\\</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular</span></span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>This is a basic example of creating a table and there are many examples of how the appearance of a table can be enhanced in <strong>LaTeX</strong>, see for example <a href="http://www.vision.ime.usp.br/~jmena/misc/latex/tables_with_latex.pdf">here</a> or <a href="http://en.wikibooks.org/wiki/LaTeX/Tables">here</a>.</p>
<p>Other useful resources are provided on the <a href="http://www.wekaleamstudios.co.uk/supplementary-material/">Supplementary Material</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Presentation with LaTeX Beamer &#8211; Bullet Lists</title>
		<link>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-bullet-lists/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-bullet-lists/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 08:48:13 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Beamer]]></category>
		<category><![CDATA[enumerate]]></category>
		<category><![CDATA[itemize]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[LaTeX Typesetting]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1267</guid>
		<description><![CDATA[When writing a presentation we might want to use a bullet list to highlight some key points that might be lost if they are part of a large body of text. We can use the standard LaTeX environments for creating lists within a beamer presentation in a straightforward way. Fast Tube by Casper The bullet [...]]]></description>
			<content:encoded><![CDATA[<p>When writing a presentation we might want to use a bullet list to highlight some key points that might be lost if they are part of a large body of text. We can use the standard <strong>LaTeX</strong> environments for creating lists within a beamer presentation in a straightforward way.<span id="more-1267"></span></p>
<p><!--[Fast Tube]--><span id="7HyDcaYKerk" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-bullet-lists/#7HyDcaYKerk"><img src="http://i.ytimg.com/vi/7HyDcaYKerk/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p>The bullet lists can be created using the <strong>itemize</strong> or <strong>enumerate</strong> environments depending on the type of list that we want to appear on the slides. The <strong>itemize</strong> list uses symbols and is not numbered while the <strong>enumerate</strong> list is a numbered list so the choice will depend on the elements covered by the list.</p>
<p>Within our slide we would create the list environment in exactly the same was as over <strong>LaTeX</strong> documents and the <strong>\item</strong> command. An example of creating a bullet list of assumptions for a linear statistical model is shown here:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> A linear the relationship between response and explanatory variables.
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Independence of the model errors.
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Constant variance for the model errors (a) versus time and (b) versus
  the predictions (or versus any independent variable)
<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Normality of the errors.
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>This can be easily changed to an <strong>enumerate</strong> environment to make it a numbered list.</p>
<p>Other useful resources are provided on the <a href="http://www.wekaleamstudios.co.uk/supplementary-material/">Supplementary Material</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-bullet-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Presentation with LaTeX Beamer &#8211; Basic Slides</title>
		<link>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-basic-slides/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-basic-slides/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 19:52:20 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Beamer]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[frame]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[LaTeX Typesetting]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1256</guid>
		<description><![CDATA[In a previous post we looked at using the LaTeX beamer package to create presentations. Given a title page and outline of a presentation the next stage will be to create the content that appears in various slides of the presentation. Fast Tube by Casper To create a slide we make use of the frame [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous <a href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-getting-started/">post</a> we looked at using the <a href="http://www.tex.ac.uk/">LaTeX</a> <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/beamer/">beamer</a> package to create presentations. Given a title page and outline of a presentation the next stage will be to create the content that appears in various slides of the presentation.<span id="more-1256"></span></p>
<p><!--[Fast Tube]--><span id="rTZnTN71J48" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-basic-slides/#rTZnTN71J48"><img src="http://i.ytimg.com/vi/rTZnTN71J48/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p>To create a slide we make use of the frame environment and the first argument is the title for the slide, which usually appears at the top of the slide. For example a basic slide with a title and a sentence of body text would be created with the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">Introduction</span><span style="color: #E02020; ">}</span>
This presentation covers the theory behind the linear regression model.
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The text in a slide may look plain and if we wanted to highlight a particular word(s) then there are various options for doing this. The <em>\emph</em> is used to provide emphasis that is usually indicated by an italic font. The <strong>\alert</strong> command highlights a word in a colour, often red, to make it stand out from the rest of the text. There are other options that can be used to change for example the colour of the text or other features of the font.</p>
<p>Other useful resources are provided on the <a href="http://www.wekaleamstudios.co.uk/supplementary-material/">Supplementary Material</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-basic-slides/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Presentation with LaTeX Beamer &#8211; Getting Started</title>
		<link>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-getting-started/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-getting-started/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 09:21:25 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Beamer]]></category>
		<category><![CDATA[frame]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[sections]]></category>
		<category><![CDATA[table of contents]]></category>
		<category><![CDATA[title page]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1238</guid>
		<description><![CDATA[The LaTeX beamer package can be used to create appealing presentations for many applications. A working knowledge of LaTeX is required but once the initial learning curve and transition is made from a visual word processor to a markup based approach the benefits are worth the initial investment of time. Title Pages In a previous [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.tex.ac.uk/">LaTeX</a> <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/beamer/">beamer</a> package can be used to create appealing presentations for many applications. A working knowledge of <strong>LaTeX</strong> is required but once the initial learning curve and transition is made from a visual word processor to a markup based approach the benefits are worth the initial investment of time.<span id="more-1238"></span></p>
<p><strong>Title Pages</strong></p>
<p>In a previous <a href="http://www.wekaleamstudios.co.uk/posts/creating-a-basic-presentation-using-latex-beamer/">post</a> we considered creating a title page for a presentation which follows the same general approach to creating titles in other <strong>LaTeX</strong> document types.</p>
<p><!--[Fast Tube]--><span id="uM0UyiTPp-E" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-getting-started/#uM0UyiTPp-E"><img src="http://i.ytimg.com/vi/uM0UyiTPp-E/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p>An example of the commands needed to create the title of a presentation are shown below, where the square brackets are used to indicate the short information that is used in places like the running headers of a document:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">title</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">ggplot2 Tutorial</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">An Introduction to the ggplot2 package</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">subtitle</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">GM-RAM</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">http://www.wekaleamstudios.co.uk</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">author</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">GM-RAM</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">GM-RAM Technical Staff</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Then we need to create a frame in the document to display the title page via the frame environment:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\titlepage</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p><strong>Document Structure</strong></p>
<p>Most LaTeX documents make use of the sectioning commands to create a logical structure to the contents of a document. Headings can be defined at various levels starting from chapter moving down to sections then subsections.</p>
<p><!--[Fast Tube]--><span id="eo8hHWYYhuE" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-getting-started/#eo8hHWYYhuE"><img src="http://i.ytimg.com/vi/eo8hHWYYhuE/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p>These sections commands can be used in <strong>beamer</strong> and behave slightly differently to other document classes and the display of the section headings depends on the theme and the use of tables of contents which can be interspaced around the presentation, for example appearing at the start of each section to remind the audience of progress through the presentation.</p>
<p>The sections are defined in the same way as with other <strong>LaTeX</strong> documents:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">section</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Introduction</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #E02020; ">\</span><span style="color: #800000;">section</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Basic Graphs</span><span style="color: #E02020; ">}</span></pre></div></div>

<p><strong>Table of Contents</strong></p>
<p>It is a simple task to add a slide with the table of contents to a presentation using the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\frametitle</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Outline</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">tableofcontents</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">currentsection</span><span style="color: #E02020; ">]</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>We can specify a title for the slide with the table of contents using the <strong>\frametitle</strong> command.</p>
<p><!--[Fast Tube]--><span id="9aPnZLH-A-k" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-getting-started/#9aPnZLH-A-k"><img src="http://i.ytimg.com/vi/9aPnZLH-A-k/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p>We can generate a recurring table of contents at the start of each section with the <strong>\AtBeginSection</strong> command like this:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\AtBeginSection</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;"><span style="color: #E02020; ">]</span>
<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\frametitle</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Outline</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">tableofcontents</span>[currentsection</span><span style="color: #E02020; ">]</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">}</span></pre></div></div>

<p>Other useful resources are provided on the <a href="http://www.wekaleamstudios.co.uk/supplementary-material/">Supplementary Material</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/creating-a-presentation-with-latex-beamer-getting-started/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>LaTeX Beamer Slide Examples</title>
		<link>http://www.wekaleamstudios.co.uk/posts/latex-beamer-slide-examples/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/latex-beamer-slide-examples/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 18:39:01 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Beamer]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[frames]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[overlay]]></category>
		<category><![CDATA[pause]]></category>
		<category><![CDATA[slides]]></category>
		<category><![CDATA[verbatim]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=339</guid>
		<description><![CDATA[It is straightforward to insert slides into a LaTeX beamer presentation and in this post we will create two slides to illustrate how this is done. The presentation itself can be divided into sections using the normal LaTeX commands like \section or \subsection etc. With the default theme this is not so obvious, but when [...]]]></description>
			<content:encoded><![CDATA[<p>It is straightforward to insert slides into a <strong>LaTeX</strong> beamer presentation and in this post we will create two slides to illustrate how this is done.<span id="more-339"></span></p>
<p>The presentation itself can be divided into sections using the normal <strong>LaTeX</strong> commands like <strong>\section</strong> or <strong>\subsection</strong> etc. With the default theme this is not so obvious, but when we make use of other themes then the section can be display in the header and/or using slides to introduce each section of the presentation.</p>
<p>In many presentations different parts of the slide will be revealed one at a time. The simplest way to make use of this in <strong>beamer</strong> is using the <strong>\pause</strong> command. For example,</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">Given a response variable Y and an explanatory variable X, the
formula for the model based on these two variables is:
<span style="color: #800000; font-weight: normal;">\pause</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">equation</span></span><span style="color: #E02020; ">}</span><span style="color: #8020E0; font-weight: normal;">
Y_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">i</span><span style="color: #E02020; ">}</span> = <span style="color: #800000; font-weight: normal;">\beta</span>_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">0</span><span style="color: #E02020; ">}</span> + <span style="color: #800000; font-weight: normal;">\beta</span>_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">1</span><span style="color: #E02020; ">}</span> X_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">i</span><span style="color: #E02020; ">}</span> + <span style="color: #800000; font-weight: normal;">\epsilon</span>_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">i</span>}
</span><span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">equation</span></span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\pause</span>
and we assume that the <span style="color: #8020E0; font-weight: normal;">$<span style="color: #800000; font-weight: normal;">\epsilon</span>_<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">i</span>}$</span> are independent random
variables.</pre></div></div>

<p>would produce three slides in our <a href='http://www.wekaleamstudios.co.uk/?attachment_id=340' rel='attachment wp-att-340'>pdf</a> document. Flicking through these three slides gives the illusion of the material being uncovered. If you are using the list environment then the <strong>\item</strong> command can be altered to indicate what slides the element should appear on. For example, <strong>\item<2-></strong> requests that the item appears on the second and all subsequent slides. If this was changed to <strong>\item<2-3></strong> then the item would stay for the third slide but none of the subsequent slides.</p>
<p>The <strong>verbatim</strong> package and environment is useful but to make use of it we need to invoke the <strong>fragile</strong> option when creating our slide. For example,</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">fragile</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">Linear Regression Model</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">frame</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Another useful environment is the <strong>block</strong> environment which creates a box in which some material is presented and has a title. So we could put our <strong>verbatim</strong> text of a function inside a block environment with the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">block</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">Function Code</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">verbatim</span></span><span style="color: #E02020; ">}</span>
int addTwo(int x, int y)
<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">
    int result;
    result = x + y;
    return (result);
</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">verbatim</span></span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">block</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>This would produce the following <a href='http://www.wekaleamstudios.co.uk/?attachment_id=345' rel='attachment wp-att-345'>document</a> and the lack of theme means that the arrangement is not so obvious. The themes change colours and other attributes which can be used to make parts of the presentation stand out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/latex-beamer-slide-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

