<?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; LaTeX Typesetting</title>
	<atom:link href="http://www.wekaleamstudios.co.uk/topics/latex-typesetting/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>A3 pages in LaTeX documents</title>
		<link>http://www.wekaleamstudios.co.uk/posts/a3-pages-in-latex-documents/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/a3-pages-in-latex-documents/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 16:38:58 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[a3paper]]></category>
		<category><![CDATA[geometry]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1758</guid>
		<description><![CDATA[The default paper sizes in LaTeX documents tend to be A4 or letter paper. If we want to use other page and paper sizes the geometry package is a handy way to make these changes. To change the paper to A3 in our document and in landscape orientation we would use the following: \documentclass[12pt,landscape]{article} \usepackage[a3paper]{geometry} [...]]]></description>
			<content:encoded><![CDATA[<p>The default paper sizes in <strong>LaTeX</strong> documents tend to be A4 or letter paper. If we want to use other page and paper sizes the <strong>geometry</strong> package is a handy way to make these changes.<span id="more-1758"></span></p>
<p>To change the paper to A3 in our document and in landscape orientation we would use the following:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">documentclass</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">12pt,landscape</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">a3paper</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">geometry</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;">document</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;">document</span></span><span style="color: #E02020; ">}</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/a3-pages-in-latex-documents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tikz absolute positioning</title>
		<link>http://www.wekaleamstudios.co.uk/posts/tikz-absolute-positioning/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/tikz-absolute-positioning/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 16:55:44 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[tikz/pgf]]></category>
		<category><![CDATA[absolute]]></category>
		<category><![CDATA[current.page]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[positioning]]></category>
		<category><![CDATA[tikz]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1742</guid>
		<description><![CDATA[When working with a tikz drawing within LaTeX document we might want to locate an object using an absoute position on the page rather than leaving LaTeX to make the decision for us. The use of nodes and the current.page label in conjunction with some other parameters attached to the tikz drawing will allow us [...]]]></description>
			<content:encoded><![CDATA[<p>When working with a tikz drawing within <strong>LaTeX</strong> document we might want to locate an object using an absoute position on the page rather than leaving <strong>LaTeX</strong> to make the decision for us.<span id="more-1742"></span></p>
<p>The use of nodes and the <strong>current.page</strong> label in conjunction with some other parameters attached to the tikz drawing will allow us to achieve the absolute positioning on the page.</p>
<p>As an example consider a one page drawing where we want to put a text box in the centre of the page.</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;">remember picture,overlay</span><span style="color: #E02020; ">]</span>
<span style="color: #800000; font-weight: normal;">\draw</span> (current page.center) node <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Add Text</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;">tikzpicture</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>If we wanted to add elements to the edge of a page we could use the <strong>current page.north west</strong> anchor to locate in the top left of the page.</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/tikz-absolute-positioning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tikz Nodes</title>
		<link>http://www.wekaleamstudios.co.uk/posts/tikz-nodes/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/tikz-nodes/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 07:01:20 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[tikz/pgf]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[tikz]]></category>
		<category><![CDATA[\draw]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1718</guid>
		<description><![CDATA[Nodes are used in tikz to place content in a picture as part of a LaTeX document. Fast Tube by Casper When creating a tikz picture the origin is assumed to be at (0,0) and objects are placed with positioning relative to the origin on the picture. If we wanted to add a grid with [...]]]></description>
			<content:encoded><![CDATA[<p>Nodes are used in <strong>tikz</strong> to place content in a picture as part of a <strong>LaTeX</strong> document.<span id="more-1718"></span></p>
<p><!--[Fast Tube]--><span id="q-4f0XiuYwc" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/tikz-nodes/#q-4f0XiuYwc"><img src="http://i.ytimg.com/vi/q-4f0XiuYwc/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>When creating a tikz picture the origin is assumed to be at (0,0) and objects are placed with positioning relative to the origin on the picture. If we wanted to add a grid with lines from -3 to +3 in both the horizontal and vertical axes then we would use the <strong>\draw</strong> command combined with <strong>grid</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\draw</span> (-3,-3) grid (3,3);</pre></div></div>

<p>We can use the draw options to change how the grid is displayed. To make the grid lines thin we could add <i>very thin</i> and change the colour to a light gray (<i>black!20</i>):</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">very thin,black!20</span><span style="color: #E02020; ">]</span> (-3,-3) grid (3,3);</pre></div></div>

<p>To add a node with text we use a combination of <strong>\draw</strong> and <strong>node</strong>, For example to put the node with a single letter A at (1,1):</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\draw</span> (1,1) node <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">A</span><span style="color: #E02020; ">}</span>;</pre></div></div>

<p>We can put an outline around the text in a node by specifying a <em>shape</em> and the <em>draw</em> option (which refers to the colour of the outline of the shape).</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\node</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">shape=rectangle,draw=black</span><span style="color: #E02020; ">]</span> at (0,2) <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">B</span><span style="color: #E02020; ">}</span>;</pre></div></div>

<p>The <i>fill</i> option is for the inside of the shape. A circle with outline and filled background could be drawn with the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\node</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">shape=circle,draw=blue,fill=blue!50</span><span style="color: #E02020; ">]</span> at (2,2) <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">D</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/tikz-nodes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tikz Introduction</title>
		<link>http://www.wekaleamstudios.co.uk/posts/tikz-introduction/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/tikz-introduction/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 17:43:10 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[tikz/pgf]]></category>
		<category><![CDATA[drawing]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[pgf]]></category>
		<category><![CDATA[tikz]]></category>
		<category><![CDATA[\draw]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1698</guid>
		<description><![CDATA[The pgf drawing package for LaTeX provides facilities for drawing simple of complicated pictures within a LaTeX document. There are many options available within the package and in this post we consider some of the basics to get up and running. Fast Tube by Casper As with all LaTeX documents we need to select a [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>pgf</strong> drawing package for <strong>LaTeX</strong> provides facilities for drawing simple of complicated pictures within a <strong>LaTeX</strong> document. There are many options available within the package and in this post we consider some of the basics to get up and running.<span id="more-1698"></span></p>
<p><!--[Fast Tube]--><span id="7KO-X03lW6Q" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/tikz-introduction/#7KO-X03lW6Q"><img src="http://i.ytimg.com/vi/7KO-X03lW6Q/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>As with all LaTeX documents we need to select a document class and include some preamble material prior to the body of our document. A blank template for a document with a single tikz picture is shown here:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">documentclass</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span>
<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: #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;">document</span></span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">pagestyle</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">empty</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;">tikzpicture</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;">tikzpicture</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;">document</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The tikz picture has a coordinate system similar to that which you would expect where moving from left to right on the page corresponds to increasing the x value and bottom to top increases the y value. A line can be drawn between two points wit the <strong>\draw</strong> command:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\draw</span> (0,0) -- (1,0);</pre></div></div>

<p>To draw a line between multiple points these can be chained together in a single draw command:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\draw</span> (0,0) -- (1,0) -- (1, 4);</pre></div></div>

<p>The line style can be altered by adding various options in square brackets directly after the draw command. So to change to a dashed red line we would write the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">red,dashed</span><span style="color: #E02020; ">]</span> (0,0) -- (2,0);</pre></div></div>

<p>A circle of a given radius can be draw using the <strong>\draw</strong> command and we specify the radius of the circle in round brackets:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\draw</span> (0,0) circle (2.5cm);</pre></div></div>

<p>This will draw a circle with radius of 2.5 cm. The circle could be changed into an ellipse and we would then need to specify the radius in two directions, an example of this:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\draw</span> (0,0) ellipse (2cm and 3.5cm);</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/tikz-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scatter plots with images</title>
		<link>http://www.wekaleamstudios.co.uk/posts/scatter-plots-with-images/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/scatter-plots-with-images/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 09:32:16 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[pgf]]></category>
		<category><![CDATA[plot]]></category>
		<category><![CDATA[scatter]]></category>
		<category><![CDATA[tikz]]></category>
		<category><![CDATA[Tufte]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1671</guid>
		<description><![CDATA[Edward Tufte has written extensively on the presentation of data covering good and bad practice. He has made a number of suggestions for adaptations of regularly used graph types to assist with the interpretation and understanding of data. One idea for enhancing scatter plots covered in Tufte&#8217;s book Beautiful Evidence is the use of images [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.edwardtufte.com/tufte/">Edward Tufte</a> has written extensively on the presentation of data covering good and bad practice. He has made a number of suggestions for adaptations of regularly used graph types to assist with the interpretation and understanding of data.<span id="more-1671"></span></p>
<p>One idea for enhancing scatter plots covered in Tufte&#8217;s book <em>Beautiful Evidence</em> is the use of images in place of traditional symbols to provide additional information about that point. To illustrate this idea I have taken the batting data from the recent test series between England and India played in England 2011. The graph is a display of the number of runs scored and number of balls faced with an English or Indian flag indicating the team of the player involved. The graph can be seen <a href='http://www.wekaleamstudios.co.uk/wp-content/uploads/2011/09/graphexample1.pdf'>here</a> and this has an advantage over the usual scatter plot as there is no need for a legend to accompany the graph.</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/scatter-plots-with-images/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>LaTeX Typesetting – Basic Mathematics</title>
		<link>http://www.wekaleamstudios.co.uk/posts/latex-typesetting-%e2%80%93basic-mathematics/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/latex-typesetting-%e2%80%93basic-mathematics/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 19:38:22 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1648</guid>
		<description><![CDATA[LaTeX is very strong for typesetting mathematical equations. Fast Tube by Casper Other useful resources are provided on the Supplementary Material page.]]></description>
			<content:encoded><![CDATA[<p><strong>LaTeX</strong> is very strong for typesetting mathematical equations.<span id="more-1648"></span></p>
<p><!--[Fast Tube]--><span id="eOaiwglY1c8" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/latex-typesetting-%e2%80%93basic-mathematics/#eOaiwglY1c8"><img src="http://i.ytimg.com/vi/eOaiwglY1c8/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>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/latex-typesetting-%e2%80%93basic-mathematics/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>LaTeX Typesetting – Tables</title>
		<link>http://www.wekaleamstudios.co.uk/posts/latex-typesetting-tables/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/latex-typesetting-tables/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 10:20:48 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[row]]></category>
		<category><![CDATA[tabular]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1558</guid>
		<description><![CDATA[One area of LaTeX that is not always straightforward is producing tabular material. In this post we will look at some of the basics of creating tables in a LaTeX document. Fast Tube by Casper When creating tables there is a tabular environment that can be used and we need to specify the number of [...]]]></description>
			<content:encoded><![CDATA[<p>One area of <strong>LaTeX</strong> that is not always straightforward is producing tabular material. In this post we will look at some of the basics of creating tables in a <strong>LaTeX</strong> document.<span id="more-1558"></span></p>
<p><!--[Fast Tube]--><span id="M9ug1apb4Hs" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/latex-typesetting-tables/#M9ug1apb4Hs"><img src="http://i.ytimg.com/vi/M9ug1apb4Hs/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>When creating tables there is a <strong>tabular</strong> environment that can be used and we need to specify the number of columns using characters to indicate the text alignment in each column. A simple three column table where all columns are centred would be produced like this:</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;">ccc</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;">tabular</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>On individual lines of data the ampersand character is used to indicate different columns. So if we wanted to add a heading to the table we might add the following line within the <strong>tabular</strong> environment:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">Name <span style="color: #E02020; ">&amp;</span> Description <span style="color: #E02020; ">&amp;</span> Frequency <span style="color: #E02020; ">\\</span></pre></div></div>

<p>The end of the line is indicated by the \\ and we can move on to the next row of the table on the following line.</p>
<p>We can add vertical lines between the columns by adding information to the column alignment specification. For example to add these vertical lines between all three columns we would write:</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: #E02020; "><span style="color: #2020C0; font-weight: normal;">|c|c|c|</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;">tabular</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Horizontal lines to cover the whole row can be added at the end of each line to get <strong>LaTeX</strong> to draw them underneath the most recent row of the table.</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">Name <span style="color: #E02020; ">&amp;</span> Description <span style="color: #E02020; ">&amp;</span> Frequency <span style="color: #E02020; ">\\</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">hline</span></pre></div></div>

<p>This draws a line under the title row of our table.</p>
<p>An example of a complete table is given below using data from the International Monetary Fund for the GDP in 2009 for the top ten nations.</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: #E02020; "><span style="color: #2020C0; font-weight: normal;">|l|c|</span></span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">hline</span>
Country <span style="color: #E02020; ">&amp;</span> GDP (USD millions) <span style="color: #E02020; ">\\</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">hline</span>
United States <span style="color: #E02020; ">&amp;</span> 14,119,050 <span style="color: #E02020; ">\\</span>
Japan <span style="color: #E02020; ">&amp;</span> 5,068,894 <span style="color: #E02020; ">\\</span>
People's Republic of China <span style="color: #E02020; ">&amp;</span> 4,984,731 <span style="color: #E02020; ">\\</span>
Germany <span style="color: #E02020; ">&amp;</span> 3,338,675 <span style="color: #E02020; ">\\</span>
France <span style="color: #E02020; ">&amp;</span> 2,656,378 <span style="color: #E02020; ">\\</span>
United Kingdom <span style="color: #E02020; ">&amp;</span> 2,178,856 <span style="color: #E02020; ">\\</span>
Italy <span style="color: #E02020; ">&amp;</span> 2,118,264 <span style="color: #E02020; ">\\</span>
Brazil <span style="color: #E02020; ">&amp;</span> 1,574,039 <span style="color: #E02020; ">\\</span>
Spain <span style="color: #E02020; ">&amp;</span> 1,467,889 <span style="color: #E02020; ">\\</span>
Canada <span style="color: #E02020; ">&amp;</span> 1,336,427 <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>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/latex-typesetting-tables/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>LaTeX Typesetting &#8211; Document Structure</title>
		<link>http://www.wekaleamstudios.co.uk/posts/latex-typesetting-document-structure/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/latex-typesetting-document-structure/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 19:19:46 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[Document]]></category>
		<category><![CDATA[structure]]></category>
		<category><![CDATA[subsection]]></category>
		<category><![CDATA[\documentclass]]></category>
		<category><![CDATA[\section]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1536</guid>
		<description><![CDATA[Following on from the initial post about creating a document using LaTeX we need to consider the structure of the document, i.e. headings and page layout. Fast Tube by Casper Document Class The document class is a template that specifies the appearance of different components of a document, e.g. the font and size of headings. [...]]]></description>
			<content:encoded><![CDATA[<p>Following on from the initial <a href="http://www.wekaleamstudios.co.uk/posts/latex-typesetting-basics/">post</a> about creating a document using <strong>LaTeX</strong> we need to consider the structure of the document, i.e. headings and page layout.<span id="more-1536"></span></p>
<p><!--[Fast Tube]--><span id="DUflLwYzwwc" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/latex-typesetting-document-structure/#DUflLwYzwwc"><img src="http://i.ytimg.com/vi/DUflLwYzwwc/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><strong>Document Class</strong></p>
<p>The document class is a template that specifies the appearance of different components of a document, e.g. the font and size of headings. The most commonly used classes are article, which corresponds to a typical layout for a journal article, report or book for longer documents and letter.</p>

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

<p>When selecting a document class it is also possible to provide some options, including the size of the font &#8211; <strong>10pt</strong>, <strong>11pt</strong> or <strong>12pt</strong>. We could also use the <strong>twocolumns</strong> option to had two columns of text.</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">documentclass</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">12pt</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The paper size can also be stated in the options &#8211; a4paper etc.</p>
<p><strong>Page Style</strong></p>
<p>There are some basic page styles available in the main document classes. These include plain which has the page number in the footer only or empty where there is nothing in the header or footer.</p>

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

<p>These can be changed during a document, e.g. there might be one page that has a picture but you don&#8217;t want the page number to be shown as it might obscur some other useful information.</p>
<p><strong>Page Numbering</strong></p>
<p>The default option is arabic numerals, but we could also use (upper or lower case) Roman numerals in the front part of the document before reverting to using the Arabic numerals.</p>

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

<p><strong>Parts of a Document</strong></p>
<p>A document can be divided into various pieces, known as chapters, sections, subsections and so on. To do this in <strong>LaTeX</strong> we use the commands <strong>\chapter</strong>, <strong>\section</strong> and <strong>\subsection</strong> with the name of the section in curly brackets.</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;">A Section Heading</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Chapters appear in books and reports but not in the article class, while the letter class is a lot simpler than these other classes. In an article the numbering for sections is 1, 2, 3 and so on and the subsections are 1.1, 1.2, 1.3 and onwards.</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/latex-typesetting-document-structure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LaTeX Typesetting &#8211; Basics</title>
		<link>http://www.wekaleamstudios.co.uk/posts/latex-typesetting-basics/</link>
		<comments>http://www.wekaleamstudios.co.uk/posts/latex-typesetting-basics/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 14:02:00 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[LaTeX Typesetting]]></category>
		<category><![CDATA[\documentclass]]></category>
		<category><![CDATA[\emph]]></category>
		<category><![CDATA[\maketitle]]></category>
		<category><![CDATA[\section]]></category>
		<category><![CDATA[\textbf]]></category>

		<guid isPermaLink="false">http://www.wekaleamstudios.co.uk/?p=1511</guid>
		<description><![CDATA[The LaTeX typesetting is used to create professional looking documents on a home computer. It may have a steeper learning curve than using a Word Processor, but this initial effort will often pay off reasonably quickly. The system is almost a necessity for anyone writing documents with a large amount of mathematics as most alternatives [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>LaTeX</strong> typesetting is used to create professional looking documents on a home computer. It may have a steeper learning curve than using a Word Processor, but this initial effort will often pay off reasonably quickly. The system is almost a necessity for anyone writing documents with a large amount of mathematics as most alternatives are painful to use efficiently.<span id="more-1511"></span></p>
<p><!--[Fast Tube]--><span id="HtsyfpIWUOA" style="display:block;"><a title="Click here to watch this video!" href="http://www.wekaleamstudios.co.uk/posts/latex-typesetting-basics/#HtsyfpIWUOA"><img src="http://i.ytimg.com/vi/HtsyfpIWUOA/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>In a <strong>LaTeX</strong> document we need to specify a class, which is a file that defines the formatting styles applied to a document. The standard classes available include article, book, letter and custom classes can be defined to create different visual styles for a <strong>LaTeX</strong> document.</p>
<p>At the top of the document we use the <strong>\documentclass</strong> command to specify the class to use for the document. For an article we would have:</p>

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

<p>The preamble after this command and before the main body of the document can be used to include other packages, define environments or various other actions. The body of the document is included within these 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;">document</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;">document</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>It is straightforward to include title information in the document by specifying an author, title and date then followed by a <strong>\maketitle</strong> command. Note that note all of these are compulsory for a document. A simple example of creating a title:</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: #2020C0; font-weight: normal;">Using R</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: #2020C0; font-weight: normal;">An R Fanatic</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">maketitle</span></pre></div></div>

<p>We write the text of our <strong>LaTeX</strong> document as we would a basic text document and then add commands where we want to make changes to the appearance of text. For example we might want to emphasise some of the text using the <strong>\emph</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">The <span style="color: #E02020; ">\</span><span style="color: #800000;">emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">assumptions</span><span style="color: #E02020; ">}</span> underlying the choice of model need to be investigated.</pre></div></div>

<p>There are a few special symbols worth being aware of when creating <strong>LaTeX</strong> documents:</p>
<ul>
<li>Percentages need to be specified as \%, otherwise they will be confused as meaning a comment so will be ignored.</li>
<li>Curly brackets are special characters so you need to write \{ and \} if you want to use them in the text.</li>
<li>Hash (#), dollar ($) and ampersand (&#038;) are all also special characters.
</ul>
<p>To align a block of text the <strong>center</strong>, <strong>flushright</strong> and <strong>flushleft</strong> environments can be used. Examples of using these:</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;">center</span></span><span style="color: #E02020; ">}</span>
Text is centred.
<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;">center</span></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;">flushright</span></span><span style="color: #E02020; ">}</span>
Text is flush right.
<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;">flushright</span></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;">flushleft</span></span><span style="color: #E02020; ">}</span>
Text is flush left.
<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;">flushleft</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The size of the font can be changed using various declarations, which include <strong>\small</strong>, <strong>\normalsize</strong>, <strong>\large</strong>, <strong>\Large</strong> and <strong>\LARGE</strong>.</p>
<p>Useful software for working with <strong>LaTeX</strong> includes:</p>
<ul>
<li><a href="http://miktex.org/">MikTeX</a>.</li>
<li><a href="http://www.xm1math.net/texmaker/">Texmaker</a>.</li>
<li><a href="http://www.texniccenter.org/">Texniccenter</a>.</li>
<li><a href="http://tug.org.in/">The Indian TeX Users Group</a>.</li>
</ul>
<p>Other useful resources are provided on the <a href="http://www.wekaleamstudios.co.uk/supplementary-material/">Supplementary Material</a> page. A google search will also through up a large number of good online resources for <strong>LaTeX</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekaleamstudios.co.uk/posts/latex-typesetting-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
	</channel>
</rss>

