<?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>Chris Hanretty &#187; latex</title>
	<atom:link href="http://chrishanretty.co.uk/blog/index.php/tag/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrishanretty.co.uk/blog</link>
	<description>Notes on Italian politics and public broadcasting</description>
	<lastBuildDate>Sat, 04 Feb 2012 12:15:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Drawing veto players diagrams</title>
		<link>http://chrishanretty.co.uk/blog/index.php/2010/10/28/drawing-veto-players-diagrams/</link>
		<comments>http://chrishanretty.co.uk/blog/index.php/2010/10/28/drawing-veto-players-diagrams/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 07:35:49 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[teaching]]></category>

		<guid isPermaLink="false">http://chrishanretty.co.uk/blog/?p=655</guid>
		<description><![CDATA[For a long time I&#8217;ve not known how to produce, with minimum fuss, diagrams of veto players in political space, even in one dimension. 
I&#8217;ve now bothered to learn some PGF syntax, for use within latex. Here&#8217;s come code, mostly stolen from an example by Till Tantau which will draw a nice example of instability [...]]]></description>
			<content:encoded><![CDATA[<p>For a long time I&#8217;ve not known how to produce, with minimum fuss, diagrams of veto players in political space, even in one dimension. </p>
<p>I&#8217;ve now bothered to learn some PGF syntax, for use within latex. Here&#8217;s come code, mostly stolen from <a href="http://www.texample.net/tikz/examples/venn-diagram/">an example by Till Tantau</a> which will draw a nice example of instability in a two-dimensional three-member legislature. Image first, code after the break:<br />
<a href="http://chrishanretty.co.uk/blog/wp-content/uploads/2010/10/veto_players_test2.png"><img src="http://chrishanretty.co.uk/blog/wp-content/uploads/2010/10/veto_players_test2.png" alt="veto_players_test2" title="veto_players_test2" width="400" height="300" class="aligncenter size-full wp-image-656" /></a><br />
<span id="more-655"></span><br />
<code><br />
\documentclass[a4paper]{article}<br />
\usepackage[english]{babel}<br />
\usepackage[dvipsnames]{xcolor} % [dvipsnames]<br />
\usepackage{tikz}<br />
\usetikzlibrary{calc,patterns}</p>
<p>\begin{document}<br />
\maketitle<br />
% START DOCUMENT HERE</p>
<p>\begin{tikzpicture}[scale=1]</p>
<p>%% First define our ideal points<br />
\coordinate[label=above:$A$] (A) at (-2,2);<br />
\coordinate[label=above:$B$]  (B) at (2,0);<br />
\coordinate[label=above:$C$] (C) at (-1,-2);</p>
<p>% middles of sides<br />
\coordinate (A') at ($(B)!.5!(C)$); %%<br />
\coordinate (B') at ($(A)!.5!(C)$); %%<br />
\coordinate (C') at ($(B)!.5!(A)$); %%</p>
<p>\coordinate[label=0:$SQ$] (SQ) at (intersection of A--A' and B--B');</p>
<p>%% Now define circles with radius between the ideal point and the status quo position</p>
<p>\def\firstcircle{(A) let<br />
\p1 = ($ (SQ) - (A) $)<br />
in circle ({veclen(\x1,\y1)})}</p>
<p>\def\secondcircle{(B) let<br />
\p1 = ($ (SQ) - (B) $)<br />
in circle ({veclen(\x1,\y1)})}</p>
<p>\def\thirdcircle{(C) let<br />
\p1 = ($ (SQ) - (C) $)<br />
in circle ({veclen(\x1,\y1)})}</p>
<p>%% And draw them;<br />
\filldraw [yellow, opacity=0.4] \firstcircle;<br />
\filldraw [cyan, opacity=0.4] \secondcircle;<br />
\filldraw [magenta, opacity=0.4] \thirdcircle;</p>
<p>%% Label the ideal points<br />
\filldraw [gray] (A) circle (1pt);<br />
\filldraw [gray] (B) circle (1pt);<br />
\filldraw [gray] (C) circle (1pt);</p>
<p>%% We now draw grid lines which are centred upon the status quo position<br />
\draw [help lines,step=1cm] let<br />
\p1 = ($ (SQ) - (0,0) $)<br />
in<br />
[xshift={\x1}](-4,-4) grid (4,4);</p>
<p>%% Now draw axis lines</p>
<p>\draw let \p1<br />
\p1 = ($ (SQ) - (0,0) $)<br />
in<br />
[<->](-4,\y1) -- (4,\y1) node[below=6pt,left=0pt]{Guns}<br />
[<->](\x1,-4) -- (\x1,4) node[below=20pt,right=6pt,rotate=90]{Butter};</p>
<p>%% Now mark out the winset of the SQ by cross-hatching<br />
\begin{scope}<br />
	\clip \firstcircle;<br />
	\fill[pattern=crosshatch dots] \secondcircle;<br />
\end{scope}</p>
<p>\begin{scope}<br />
	\clip \secondcircle;<br />
	\fill[pattern=crosshatch dots] \thirdcircle;<br />
\end{scope}</p>
<p>\begin{scope}<br />
	\clip \thirdcircle;<br />
	\fill[pattern=crosshatch dots] \firstcircle;<br />
\end{scope}</p>
<p>%% And draw a little legend</p>
<p>\filldraw [pattern=crosshatch dots] (4.5,3) rectangle (5.5,3.5) node[below=6pt,right=1pt]{Winset of SQ} ;<br />
\end{tikzpicture}</p>
<p>\end{document}</p>
<p></code></p>
<p>Unfortunately, the driver I use for Beamer presentations in xelatex doesn&#8217;t seem to support cross-hatching, so I have to get quite ugly&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://chrishanretty.co.uk/blog/index.php/2010/10/28/drawing-veto-players-diagrams/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A pet peeve (pearls before swine edition)</title>
		<link>http://chrishanretty.co.uk/blog/index.php/2010/04/11/a-pet-peeve-pearls-before-swine-edition/</link>
		<comments>http://chrishanretty.co.uk/blog/index.php/2010/04/11/a-pet-peeve-pearls-before-swine-edition/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 15:08:51 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[academia]]></category>
		<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://chrishanretty.co.uk/blog/?p=594</guid>
		<description><![CDATA[There are a number of things which annoy me about academic publishing.
Matching my output to the requirements of the journal is the worst of them.
I spent a lot of time learning LaTeX in order to make my documents look good.
But now I find that journals require me to make changes to my document which, in [...]]]></description>
			<content:encoded><![CDATA[<p>There are a number of things which annoy me about academic publishing.</p>
<p>Matching my output to the requirements of the journal is the worst of them.</p>
<p>I spent a lot of time learning LaTeX in order to make my documents look good.</p>
<p>But now I find that journals require me to make changes to my document which, in almost every instance, damage the appearance and intelligibility of the document.</p>
<p>For example: for an article I&#8217;m preparing now, I must:</p>
<ul>
<li>turn off hyphenation and full justification</li>
<li>turn off all formatting for section headings (all caps only for top-level section marks)</li>
<li>place awkward placeholders for images, of the type [INSERT FIGURE 1 HERE]</li>
</ul>
<p>Some of these (the last in particular) I don&#8217;t even know how to do in LaTeX. Indeed, the last requirement is, for me, the most noxious: I imagine the reviewer would far rather have the figure close at hand in the text, rather than having to page-down to see the figure, and then page-up to get back to the argument.</p>
<p>What&#8217;s the rationale? Are these attempts to mitigate the potential damage which comes from over-fine control in MS Word?</p>
<p>(Note: for the rest of the changes, I used the following:</p>
<pre>\usepackage[none]{hyphenat}
\usepackage{ragged2e}</pre>
<pre>\usepackage{sectsty}
\sectionfont{\mdseries\MakeUppercase} % All caps, middle weight
\subsectionfont{\mdseries} % middle weight</pre>
<p>)</p>
]]></content:encoded>
			<wfw:commentRss>http://chrishanretty.co.uk/blog/index.php/2010/04/11/a-pet-peeve-pearls-before-swine-edition/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Stick a fork in me (I&#8217;m done)</title>
		<link>http://chrishanretty.co.uk/blog/index.php/2009/11/02/stick-a-fork-in-me-im-done/</link>
		<comments>http://chrishanretty.co.uk/blog/index.php/2009/11/02/stick-a-fork-in-me-im-done/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 18:30:45 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[academia]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[thesis]]></category>

		<guid isPermaLink="false">http://chrishanretty.co.uk/blog/?p=513</guid>
		<description><![CDATA[I&#8217;ve just emailed the final version of my thesis to the department.
I&#8217;ve spent most of today listening to my robotic overlord (his name is Alan) read out chunks of my thesis in the vain hope that I would better spot typos or errors that way. The idea &#8212; far too good to be my own, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just emailed the final version of <a href="http://chrishanretty.co.uk/blog/wp-content/uploads/2009/11/thesis_redraft1.pdf">my thesis</a> to the department.</p>
<p>I&#8217;ve spent most of today listening to my <a href="http://www.cstr.ed.ac.uk/projects/festival/">robotic</a> <a href="http://ubuntuforums.org/showthread.php?t=751169">overlord</a> (his name is Alan) read out chunks of my thesis in the vain hope that I would better spot typos or errors that way. The idea &#8212; far too good to be my own, and I think stolen from <a href="http://www.nickanstead.com/blog/?p=1755">Nick Anstead</a> &#8212; is better in theory than in practice.</p>
<p>The rest of the day has been spent battling for BibTeX style files, and finally making up my own. I never realized how many bibliographic choices one has until I had to sit through the <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/custom-bib/">custom-bib</a> dialog. Editor names reversed or firstname lastname? Proceedings and Collections in quotes or not? Years in brackets? Unfortunately, <a href="http://crookedtimber.org/2007/05/29/the-political-economy-of-bibliographies/">no optimal solution is known to exist</a>: congealed preferences (mine and publishers&#8217;) seem to dominate.</p>
<p>Oh, I must just say a couple of things: Wheats is teh awsumz, David was never quiet, my flatmates suffered, and Bianca might even make it to the defence.</p>
<p>That is all. Goodnight.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrishanretty.co.uk/blog/index.php/2009/11/02/stick-a-fork-in-me-im-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

