<?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>Apolitically Incorrect &#187; Writing and Literature</title>
	<atom:link href="http://www.oak-tree.us/blog/index.php/category/literature/feed" rel="self" type="application/rss+xml" />
	<link>http://www.oak-tree.us/blog</link>
	<description>The Rants and Raves of an Unsettled Mind</description>
	<lastBuildDate>Sat, 06 Mar 2010 17:45:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hannibal, Napoleon, and Joseph Charles Minard</title>
		<link>http://www.oak-tree.us/blog/index.php/2010/02/22/minard-maps</link>
		<comments>http://www.oak-tree.us/blog/index.php/2010/02/22/minard-maps#comments</comments>
		<pubDate>Mon, 22 Feb 2010 21:49:11 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Cool Stuff]]></category>
		<category><![CDATA[Illustration]]></category>
		<category><![CDATA[Science and Medicine]]></category>
		<category><![CDATA[Writing and Literature]]></category>
		<category><![CDATA[rapidBOOKS]]></category>
		<category><![CDATA[Charles Joseph Minard]]></category>
		<category><![CDATA[Charts and Graphs]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[Maps]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[OpenSource Writing]]></category>
		<category><![CDATA[Statistics]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/?p=1396</guid>
		<description><![CDATA[
No study of the history of scientific communication can be complete without mention of Joseph Charles Minard, a 19th Century French civil engineer and cartographer.
At the end of his life, Minard created two very famous examples of statistical charts, called flow maps, that every scientist, engineer and student should be familair with.  The first showed [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2010/02/22/minard-maps">Hannibal, Napoleon, and Joseph Charles Minard</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 15px 0px 0px; display: inline; border-width: 0px;" title="Charles Minard - Railroad Routes" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/CharlesMinardRailroadRoutes.jpg" border="0" alt="Charles Minard - Railroad Routes" width="200" height="347" align="left" /></p>
<p>No study of the history of scientific communication can be complete without mention of Joseph Charles Minard, a 19th Century French civil engineer and cartographer.</p>
<p>At the end of his life, Minard created two very famous examples of statistical charts, called flow maps, that every scientist, engineer and student should be familair with.  The first showed Hannibal’s crossing of the Alps (218 BC, Second Punic War), and the second describes Napoleon’s disastrous invasion of Russia (1812-1813).</p>
<p>Both examples are beautiful works of art and masterful examples of evidence.  But they are also more than that, they tell cohesive and interesting stories.  In this post, I thought it might be interesting to take a closer look at the history of Hannibal and Napoleon, and highlight the ways which Minard’s charts help us to explain their eventual outcome.</p>
<p><em>(Note: High resolution, PDF versions of the two maps are available for download.  These versions have been translated from the original French.  To download, either click on the images, or <a href="http://www.oak-tree.us/stuff/OpenSource-Writing/Minard-Hannibal.pdf">here</a> for the Hannibal invasion of Northern Italy, and <a href="http://www.oak-tree.us/stuff/OpenSource-Writing/Minard-Napoleon.pdf">here</a> for the French Invasion of Russia.)</em><span id="more-1396"></span></p>
<h2>Hannibal Invasion of Italy (218 BC, Second Punic War)</h2>
<p><!--adsensestart--><a href="http://en.wikipedia.org/wiki/Hannibal">Hannibal</a> was perhaps the single greatest threat to Roman power to ever live.  At the same time that Roman legions marched unopposed through most of the Mediterranean world, Hannibal lead a force of twenty-five thousand soldiers into the heart of Roman territory. He then spent the next fifteen years occupying portions of the Italian peninsula and generally wreaking havoc.  But even though he ravaged the Roman countryside, Hannibal was never successful in subduing Rome.  Ironically, this might be due to one of his greatest exploits: the overland crossing of the Alps.</p>
<p>Hannibal departed his home base in Spain with nearly 90,000 troops (one of the largest armies that had ever been fielded at that point in history) and had a number of early successes.  He marched north over the Pyrenee mountains and into Gaul (modern day France).  He subdued the Celtic tribes and crossed the Rhone River before the Romans could take measures to stop his advanced.  He forged important alliances and found unexpected friends in his fight against the Romans.</p>
<p>After crossing the Rhone, however, Hannibal’s luck began to change.  He received word that a large Roman force was marching from the Mediterranean coast to intercept and destroy him.  As the force outnumbered him by a significant margin, Hannibal was faced with a difficult choice.  Should he stay at his current location and engage the Roman army or retreat and prepare a defense?</p>
<p>Not content with either choice, Hannibal ultimately chose a third option; which, ironically, would have enormous consequences for his overall campaign.  To evade the Romans, Hannibal took the unprecedented action of turning inland and marching over the Alps.  (It is thought that he probably crossed over the valley of the Drome and south of the Col de Montgenevre or near the Col de Mont Cenis.)  This had never been done before – indeed many thought it impossible – and has long been praised as a brilliant tactical decision.</p>
<p>Minard’s reconstruction of Hannibal’s journey shows the journey from Spain, through Transalpine Gaul and eventual arrival in Italy, allows it to be seen a slightly different light, however.  Through use of a flow line, Minard shows how the strength of Hannibal’s army waned through the march, with a disastrous loss of twenty thousand men while passing over the Alps.  This steady loss of strength, subtly reinforced by Minard’s map, helps to explain why Hannibal failed to subdue Rome.<!--adsensestop--></p>
<p>Hannibal’s brilliant tactical decision was also a strategical disaster.  It came at a dramatic loss of men, war elephants, and material with the most disastrous loss being the destruction of his siege engines.  Without the siege engines, Hannibal was never able to successfully attack Rome.  And eventually the Romans realized this and changed their tactics.  Instead of engaging Hannibal directly, they instead fought a long-pitched war of attrition and eventually destroyed the one resource he couldn’t replace: his men.  Thus, even though crossing the Alps helped Hannibal to win a few stunning victories, the decision eventually caused him to lose the war.</p>
<p><a href="http://www.oak-tree.us/stuff/OpenSource-Writing/Minard-Hannibal.pdf"><img style="display: inline; border-width: 0px;" title="Hanibal's invasion of Italy over the Italian Alps." src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/MinardHannibal.png" border="0" alt="Hanibal's invasion of Italy over the Italian Alps." width="600" height="286" /></a></p>
<h2>Napoleon’s Invasion of Russia (1812-1813)</h2>
<p>Like in the case of the Hannibal, Minard’s depiction of the 1812-1813 invasion of Russia also tells an extraordinary story.  It combines information about the size of the army, geography, sub-campaigns and temperature into a single narrative.  This time, though, it is anything but subtle.</p>
<p><em>Note: Because of  the elegant management of all this information – at any time showing the army’s direction, size, and loss relative to the start – some statisticians and data visualization experts (such as Edward Tufte, Etieene Jules Marey and Howard Wainer) have declared Minard’s depiction of Napoleon’s Invasion of Russia to be the greatest numerical graphic ever created.</em></p>
<p>From the very beginning, the army met with tremendous hardship.  The cold temperatures and lack of available resources took an enormous toll.  Napoleon had planned on scavenging for supplies to support his massive army, but the Russians had destroyed all of their crops and burned their villages so that Napoleon wouldn’t be able to make use of them.  As a result, the army was heavily reliant on slow supply trains from Europe that were unable to keep pace with its quick advance.  Hundreds of thousands died from starvation and exposure, greatly outnumbering those lost in combat.</p>
<p>Minard’s map shows this trend of devastating loss.  Napoleon’s Grand Army starts out as a wide, brown line to the left of the map.  As the army progresses across Russia, the number of men decreases dramatically.   A few ribbons of men are dispatched to other targets, but by far the majority succumb to the elements.</p>
<p>Eventually, a substantially reduced force (100,000 men, about 20% of those who began the campaign) arrived in Moscow.  What they found did little to improve their circumstances.  The city had been abandoned and burned to the ground.  No food was available.  The only available option was to return to France.</p>
<p>Demoralized and broken, the Grand Army began a slow retreat to the west.  Their progress is shown in the black.  As they crossed the vast Russian wilderness, the temperature turned bitter cold (shown in the bottom third of the map).  When the army arrived at the Niemen river, there were a scant 10,000 troops.  More than 400,000 had died.</p>
<p>Such a devastating loss of life crippled Napoleon’s young empire and left him open to invasion by his enemies.  He was defeated later in 1813 and exiled to the island of Elba.</p>
<p><a href="http://www.oak-tree.us/stuff/OpenSource-Writing/Minard-Napoleon.pdf"><img style="display: inline; border-width: 0px;" title="Minard's map showing Napoleon's invasion of Russia and the catastrophic losses he suffered." src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/MinardNapoleon.png" border="0" alt="Minard's map showing Napoleon's invasion of Russia and the catastrophic losses he suffered." width="600" height="292" /></a></p>
<h2>Conclusion</h2>
<p>Minard’s graphics are successful because they demonstrate powerful trends and place evidence within its proper context.  In the case of Hannibal, it shows how he began in a position of strength and then undermined himself through a brilliant tactical innovation.  In the case of Napoleon, it shows how distance and temperature ravaged an army and destroyed an emperor.</p>
<p>The clear evidence and thoughtful presentation define the story, they show where things are headed and help to foreshadow the inevitable conclusion.  For this reason, they are powerful examples of clear communication.</p>
<p>____________________________________________________</p>
<h3>Unrelated Thoughts: Re-Visioning Minard with Open Source Tools</h3>
<p>Since first seeing these charts as part of an undergraduate statistics course, I’ve been obsessed with them.  I even have a poster sized copy of the Russian invasion (available from <a href="http://www.edwardtufte.com/tufte/posters">Graphics Press</a>) hanging in my office.  Given this obsession, it should come as no surprise that I’ve wanted to include the maps in my book.</p>
<p>There is, however, just one problem; there is not anything new to say about them.  Edward Tufte has held up Minard as a “Da Vinci of Data” for the better part of thirty years.  Nearly every one of his books includes a copy of the maps (in the case of Beautiful Evidence, his most recent work, there is an entire chapter devoted to the graphics; including eight different reproductions).  Other than, “They’re beautiful, study them carefully, read Tufte’s analysis,” there just isn’t that much to say.</p>
<p>That is, until I started looking for examples of scientific illustration that could be reproduced using the vector illustration program, Inkscape. Any such example should have simple lines and clean integration of text and images.  I&#8217;m not sure that a better description of Minard&#8217;s work exists.</p>
<p>The two images above (and attendant PDFs) were my first pass at re-drawing the maps.  And I have to say, I’m rather happy with the result.  For the most part, I was able to get a very faithful reproduction (with the exception of the type face, which I deliberately changed because I hate script fonts), and only required a couple of hours worth of work.</p>
<p>I think that I may have found my book examples.  It allows me to include one of the best statistical charts of all time, talk about flow maps, and even include some interesting how-tos which show how the graphics can be built in an automated fashion.  Which, come to think of it, might just count as a new contribution after all.</p>
<h3>Acknowledgements and Further Reading</h3>
<p>More information on the book can be found at the <a href="http://rapidbooks.ca/">publisher’s website</a>.</p>
<p>The source images for the two maps included “Re-Visions of Minard” by Michael Friendly (1999) and the reproductions in “Beautiful Evidence” by Edward Tufte.  Translation for the Hannibal map was adapted from those available on <a href="http://www.edwardtufte.com/tufte/minard-hannibal">Edward Tufte’s website</a> (Dawn Finley) and sources available at <a href="http://www.math.yorku.ca/SCS/Gallery/re-minard.html">Re-Visions of Minard</a>.  Translation for the Russian campaign map were taken from the reproduction in Edward Tufte’s “Beautiful Evidence”, <a href="http://commons.wikimedia.org/wiki/File:Minard.png">Wikimedia Commons</a> and sources available from <a href="http://www.math.yorku.ca/SCS/Gallery/re-minard.html">Re-Visions of Minard</a>.</p>
<p>Additionally, the Re-Visions of Minard Website include a number of interesting adaptations of the Napoleon graphic that might be of interest, including both Matlab and GGPlot2 reconstructions.<br />
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/03/09/anathem" rel="bookmark" title="March 9, 2009">Anathem: Big Book, Big Ideas</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles" rel="bookmark" title="November 14, 2009">Customizing LyX: Character Styles and the LyX Local Layout</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/03/24/af-mri" rel="bookmark" title="March 24, 2009">Heart Arrhythmias and MRI</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/12/16/wpf-svg-xaml-part3" rel="bookmark" title="December 16, 2008">WPF – SVG Graphics and XAML – Part 3</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1" rel="bookmark" title="November 25, 2009">Typeset Your Curriculum Vitae &ndash; Part 1: The xetexCV Document Class</a></li>
</ul>
<p><!-- Similar Posts took 14.945 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2010/02/22/minard-maps">Hannibal, Napoleon, and Joseph Charles Minard</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2010/02/22/minard-maps/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Working With Words, Numbers and Images: A Reading List</title>
		<link>http://www.oak-tree.us/blog/index.php/2010/02/14/analytic-design-reading</link>
		<comments>http://www.oak-tree.us/blog/index.php/2010/02/14/analytic-design-reading#comments</comments>
		<pubDate>Sun, 14 Feb 2010 18:10:28 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Science and Medicine]]></category>
		<category><![CDATA[rapidBOOKS]]></category>
		<category><![CDATA[Analytic Design]]></category>
		<category><![CDATA[Interesting Reads]]></category>
		<category><![CDATA[Patterns and Recognition]]></category>
		<category><![CDATA[Scientific and Professional Writing With Open Source Tools]]></category>
		<category><![CDATA[Visual Explanations]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/?p=1386</guid>
		<description><![CDATA[There are three tools that a professional, scientific or technical writer needs to make use of: words, numbers and images.&#160; In many cases, such as an effective illustration or chart, all three will be used.
The following books introduce principles and examples of how to use these tools to their fullest extent.&#160; Some of the titles [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2010/02/14/analytic-design-reading">Working With Words, Numbers and Images: A Reading List</a></p>
]]></description>
			<content:encoded><![CDATA[<p>There are three tools that a professional, scientific or technical writer needs to make use of: words, numbers and images.&#160; In many cases, such as an effective illustration or chart, all three will be used.</p>
<p>The following books introduce principles and examples of how to use these tools to their fullest extent.&#160; Some of the titles are historical and others are academic.&#160; In every case, though, they highlight strategies that can be used to more effectively communicate ideas.&#160; Additionally, each one is also an interesting and fantastic read.</p>
<table border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="111"><a href="http://www.amazon.com/gp/product/0060851198?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0060851198"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Math and the Mona Lisa" border="0" alt="Math and the Mona Lisa" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/MathandtheMonaLisa.jpg" width="110" height="160" /></a></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0060851198?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0060851198">Math and the Mona Lisa</a> by Bulent Atalay. For more than 500 years, the name of Leonardo Da Vinci has been synonymous with brilliance.&#160; His careful observation of nature, collection and analysis of evidence, and use of mathematics to explain his observations represented a radical shift that foreshadowed the modern scientific method.In this book, Bulent Atalay explains <em>why </em>Leonardo was a remarkable artist, engineer and scientist.&#160; He looks at the hidden patterns, geometric concepts and impeccable perspective in order to probe the mind that dreamt of helicopters, unsinkable ships and underwater exploration.</td>
</tr>
<tr>
<td valign="top" width="111"><a href="http://www.amazon.com/gp/product/1579128173?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=1579128173"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Leonardo&#39;s Notebooks" border="0" alt="Leonardo&#39;s Notebooks" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/LeonardosNotebooks.jpg" width="110" height="129" /></a></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/1579128173?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=1579128173">Leonardo’s Notebooks</a>, edited by H. Anna Suh.&#160; To understand a man, you must read him in his own words.&#160; This volume provides an opportunity to sample Da Vinci’s writings on anatomy, botany, architecture, sculpture and the physical sciences.&#160; The key illustrations from his notebooks have also been reproduced.</td>
</tr>
<tr>
<td valign="top" width="111"><a href="http://www.amazon.com/gp/product/0486286312?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0486286312"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="" src="http://bourabai.kz/landscheidt/img/galileo.jpg" width="110" height="156" /></a></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0486286312?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0486286312">Galielo at Work: His Scientific Biography</a> by Stillman Drake.&#160; Like Leonardo, Galileo was a scientific titan.&#160; As Stephen Hawking aptly summarized, “Galileo, perhaps more than any other single person, was responsible for the birth of modern science.”But why?&#160; What was it about his innovative combination of experiment and mathematics that was so important.&#160; How did he analyze data?&#160; How did he present it to others?This book attempts to answer those questions.&#160; It lays aside the philosophical implications of Galileo’s rift with the Catholic church and instead looks at how Galileo focused his mind on physical quantities and the mathematical relationships between them.</td>
</tr>
<tr>
<td valign="top" width="111"><a href="http://www.amazon.com/gp/product/0961392142?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0961392142"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="The Visual Display of Quantitative Information" border="0" alt="The Visual Display of Quantitative Information" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/TheVisualDisplayofQuantitativeInformation.jpg" width="110" height="139" /></a></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0961392142?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0961392142">The Visual Display of Quantitative Information</a> by Edward Tufte.&#160; Communicating complex ideas is difficult.&#160; One of the most important tools in that struggle are charts, graphs and illustrations.&#160; Unfortunately, however, these important figures often receive less attention than other aspects of a manuscript.In this book, Tufte provides inspiring examples of graphics that are beautiful to behold and illuminating to ponder.&#160; He also includes shockingly bad examples and explains why they are so dangerous.</td>
</tr>
<tr>
<td valign="top" width="111"><a href="http://www.amazon.com/gp/product/0961392126?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0961392126"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Visual Explanations by Edward Tufte" border="0" alt="Visual Explanations by Edward Tufte" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/VisualExplanations.jpg" width="110" height="138" /></a></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0961392126?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0961392126">Visual Explanations</a> by Edward Tufte.&#160; In his earlier work, Tufte showed how important it is for numbers to be communicated clearly and without distracting&#160; ornamentation.&#160; In this volume, he turns his attention to a slightly different series of questions: What is the best way to show cause and effect?&#160; Or to demonstrate evolutionary change?But the most important question he asks is far more universal: How can an information display be be used to reveal the truth?&#160; To answer this, he analyzes a cholera epidemic in 19th century London and explains how poor communication contributed to the explosion of the Challenger space shuttle.</td>
</tr>
<tr>
<td valign="top" width="111"><a href="http://www.amazon.com/gp/product/0961392177?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0961392177"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Beautiful Evidence by Edward Tufte" border="0" alt="Beautiful Evidence by Edward Tufte" src="http://www.malaysiachoice.com/Photos/beautiful-evidence.jpg019b77db-7ace-4484-abaf-baf209f7d1e5.jpg" width="110" height="129" /></a></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0961392177?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0961392177">Beautiful Evidence</a> by Edward Tufte.&#160; Like in his previous books, Tufte again tackles the question of how to best reveal truth through the graphical display of information.&#160; But where earlier books focused on principles, <em>Beautiful Evidence </em>is about how seeing turns into showing.&#160; To explore that theme, this book is filled with hundreds of spectacular examples and thoughtful commentary on what makes them unique.</td>
</tr>
<tr>
<td valign="top" width="111"><a href="http://www.amazon.com/gp/product/0970601980?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0970601980"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Now You See It by Stephen Few" border="0" alt="Now You See It by Stephen Few" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/NowYouSeeIt.jpg" width="110" height="145" /></a></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0970601980?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0970601980">Now You See It</a> by Stephen Few.&#160; The human mind is amazingly adept at seeing and understanding patterns.&#160; An informed eye can distinguish between authentic and forgery and arrive at startlingly accurate calculations with minimal effort.&#160; But even though we are capable of recognizing the hidden influences in the world around us, we can also be mislead and exploited far too easily.&#160; We become awash in a sea of data of our own making.This book attempts to explain how the mind interprets and sees information.&#160; As the author explains in the introduction, “[This book] provides tools to dive into the ocean of information, net the best of it, bring it back to shore and sort it out.”&#160; In essence, it’s a book about seeing and distinguishing patterns on a conscious level.</td>
</tr>
<tr>
<td valign="top" width="111"><a href="http://www.amazon.com/gp/product/0520242262?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0520242262"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Visual Thinking" border="0" alt="Visual Thinking" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/VisualThinking.jpg" width="110" height="165" /></a></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0520242262?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0520242262">Visual Thinking</a> by Rudolf Arnheim.&#160; It’s long been known that “seeing is believing.”&#160; This book explains why seeing is also synonymous with thinking.</td>
</tr>
<tr>
<td valign="top" width="111"><a href="http://www.amazon.com/gp/product/0226799735?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0226799735"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Maps and Civilization" border="0" alt="Maps and Civilization" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/MapsandCivilization.jpg" width="110" height="162" /></a></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0226799735?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0226799735">Maps and Civilization: Cartography in Culture and Society</a> by Norman J.W. Thrower.&#160; The history of exploration and discovery is also the history of cartography.&#160; As mankind sailed out of sight of shore, he needed to learn techniques for representing his position and understanding the natural forces that he might encounter.&#160; This book tells the history of mapmaking and how advances in cartography impacted civilization.</td>
</tr>
<tr>
<td valign="top" width="111"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="The Elements of Graphing Data" border="0" alt="The Elements of Graphing Data" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/TheElementsofGraphingData.jpg" width="110" height="149" /></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0963488414?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0963488414">The Elements of Graphing Data</a> by William S. Cleveland.&#160; In this book by William Cleveland, he presents the nuts and bolts (the how-to) of graphing data.&#160; Then he goes on to explore the science in which his principles are based..</td>
</tr>
<tr>
<td valign="top" width="111"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Visualizing Data" border="0" alt="Visualizing Data" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/VisualizingData.jpg" width="110" height="150" /></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0963488406?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0963488406">Visualizing Data</a> by William S. Cleveland.&#160; Whereas <em>The Elements of Graphing Data </em>is primarily&#160; focused on the principles of quality display and exploration of many types of common statistical charts, <em>Visualizing Data </em>takes the next logical step.&#160; It introduces a number of new chart types and techniques for creating insightful and clear graphics.</td>
</tr>
<tr>
<td valign="top" width="111"><a href="http://www.amazon.com/gp/product/0143038915?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0143038915"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Fiasco: American Military Adventure in Iraq by Thomas E. Ricks" border="0" alt="Fiasco: American Military Adventure in Iraq by Thomas E. Ricks" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/FiascoAmericanMilitaryAdventureinIraq.jpg" width="110" height="167" /></a></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0143038915?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0143038915">Fiasco: The American Military Adventure in Iraq, 2003 to 2005</a> by Thomas E. Ricks.&#160; Serious endeavors require careful forethought and nuanced planning; and few enterprises are more serious than the business of war.&#160; This controversial book looks at the missteps and mistakes of the American military as it justified, planned and executed the 2003 Iraq War.It contains haunting examples of how information can be distorted and obfuscated by both well-meaning individuals and those with insidious hidden agendas.&#160; It also explains how the adoption of American corporate culture and leadership by PowerPoint lead to serious miscommunication and early failure.</td>
</tr>
<tr>
<td valign="top" width="111"><a href="http://www.amazon.com/gp/product/0226851761?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0226851761"><img style="border-right-width: 0px; margin: 0px 15px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Challenger Launch Decision" border="0" alt="Challenger Launch Decision" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/ChallengerLaunchDecision.jpg" width="110" height="162" /></a></td>
<td valign="top" width="496"><a href="http://www.amazon.com/gp/product/0226851761?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0226851761">The Challenger Launch Decision: Risky Technology, Culture and Deviance at NASA</a> by Diane Vaughan.&#160; The Challenger explosion on January 28, 1986 changed the course of manned space flight forever.&#160; But how did it happen?&#160; What factors lead to it?&#160; Might it have been prevented?In <em>The Challenger Launch Decision</em>, Diane Vaughan attempts to answer those questions.&#160; In the process, she reveals that the Challenger explosion wasn’t the result of intentional wrongdoing but rather a slow-creeping definition of “normal” and comfort with the status quo.</td>
</tr>
</tbody>
</table>
<p><!--adsensestart--></p>
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2010/02/22/minard-maps" rel="bookmark" title="February 22, 2010">Hannibal, Napoleon, and Joseph Charles Minard</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2010/02/25/temples-timelines" rel="bookmark" title="February 25, 2010">Temples and Timelines</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles" rel="bookmark" title="November 14, 2009">Customizing LyX: Character Styles and the LyX Local Layout</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/07/20/back-in-time1" rel="bookmark" title="July 20, 2009">Back In Time (Part 1): Linux Backup Made Easy</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/01/06/ironpython-databinding1" rel="bookmark" title="January 6, 2009">IronPython &#8211; Data Binding and Data Templates &#8211; Part 1</a></li>
</ul>
<p><!-- Similar Posts took 14.988 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2010/02/14/analytic-design-reading">Working With Words, Numbers and Images: A Reading List</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2010/02/14/analytic-design-reading/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Gallery: The Notebooks of Leonardo Da Vinci</title>
		<link>http://www.oak-tree.us/blog/index.php/2010/02/05/davinci-notebooks</link>
		<comments>http://www.oak-tree.us/blog/index.php/2010/02/05/davinci-notebooks#comments</comments>
		<pubDate>Fri, 05 Feb 2010 04:31:37 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Cool Stuff]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Science and Medicine]]></category>
		<category><![CDATA[rapidBOOKS]]></category>
		<category><![CDATA[Art]]></category>
		<category><![CDATA[Leonardo Da Vinci]]></category>
		<category><![CDATA[Sketches]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/?p=1366</guid>
		<description><![CDATA[When I graduated from college and had to choose between a career in industry or academics, I found it to be an easy decision: I stayed in academics.  I like to have my head in the clouds and enjoy the intellectual lifestyle.  (I actually consider the label of “absentminded” to be a compliment.)
It should come as no [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2010/02/05/davinci-notebooks">Image Gallery: The Notebooks of Leonardo Da Vinci</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.oak-tree.us/blog/index.php/art-photography?g2_itemId=711"><img style="margin: 0px 15px 10px 0px; display: inline; border: 0px;" title="DaVinci - Hands" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/02/DaVinciHands.jpg" border="0" alt="DaVinci - Hands" width="217" height="318" align="left" /></a>When I graduated from college and had to choose between a career in industry or academics, I found it to be an easy decision: I stayed in academics.  I like to have my head in the clouds and enjoy the intellectual lifestyle.  (I actually consider the label of “absentminded” to be a compliment.)</p>
<p>It should come as no surprise, then, that one of the most enjoyable aspects of <a href="http://www.oak-tree.us/blog/index.php/2010/01/28/book-thing">writing a book</a> has been the opportunity to research my subject.  My reading list has included books on analytic design, illustration, anatomy, typesetting, scientific communication, web technologies, LaTeX, the history of science, statistics and informational graphics. And as I worked my way through it, I took some extremely interesting side trips.  One of the most intriguing, however, was an extended tangent through the notebooks of Leonardo Da Vinci.<!--adsensestart--></p>
<p>Da Vinci died in the year 1519, nearly five hundred years ago.  Yet, the modern world remains fascinated by him.  His name adorns the side of best selling books and conspiracy fiction; and his drawings have become cultural icons.  As an example of his popularity:</p>
<p>In October of 2009, Martin Kemp, a professor of art and history at the University of Oxford, found a portrait of an Italian girl.  Up until Kemp took an interest, it was widely accepted that portrait had been painted sometime in the nineteenth century by an unknown artist.   After a great deal of investigation and the use of a multispectral camera, however, Kemp discovered something startling.  The painting had actually been done by Leonardo and nearly overnight, it went from a value of 19,000  British pounds to over <a href="http://entertainment.timesonline.co.uk/tol/arts_and_entertainment/visual_arts/article6872019.ece">100 million</a>.</p>
<p>I’m no different than the masses.  Leonardo fascinates me.  He had a very distinctive way of seeing the world and an engaging style.  Maybe that’s why it’s so easy to lose yourself in the details of his work.  Given my interest, a thorough study of Leonardo’s notebooks seemed only natural.</p>
<p>What I didn’t foresee, however, is that I would start to digitally collect his sketches; and in the past several months, I’ve put together a rather eclectic mix from across the internets.  Earlier today, I realized that the images might be of interest to others as well; thus, I’ve created a special <a href="http://www.oak-tree.us/blog/index.php/art-photography?g2_itemId=711">online gallery</a> for them.  It can be found under “Art and Photography” –&gt; “From History” –&gt; “The DaVinci Notebooks”  To get there more quickly, you could also just click <a href="http://www.oak-tree.us/blog/index.php/art-photography?g2_itemId=711&amp;g2_wpg2_returnurl=http%3A%2F%2Fwww.oak-tree.us%2Fblog&amp;g2_wpg2_returnname=Apolitically+Incorrect&amp;g2_fromNavId=x49700c2d">here</a>.<!--adsensestop--></p>
<p>Enjoy!</p>
<p style="text-align: center;"><a href="http://www.oak-tree.us/blog/index.php/art-photography?g2_itemId=711"><img src="http://upload.wikimedia.org/wikipedia/commons/b/bd/Study_of_a_Tuscan_Landscape.jpg" alt="" width="528" height="349" /></a></p>
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/06/16/dark-times" rel="bookmark" title="June 16, 2009">Dark Times for the Book Publishing Business</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2010/01/28/book-thing" rel="bookmark" title="January 28, 2010">About This Book Thing</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/11/21/forgottenplaces-sewel" rel="bookmark" title="November 21, 2008">Forgotten Places – Sewell, Chile</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/10/digital-patronage" rel="bookmark" title="November 10, 2009">Patronage in the Digital Age</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/03/09/anathem" rel="bookmark" title="March 9, 2009">Anathem: Big Book, Big Ideas</a></li>
</ul>
<p><!-- Similar Posts took 10.992 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2010/02/05/davinci-notebooks">Image Gallery: The Notebooks of Leonardo Da Vinci</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2010/02/05/davinci-notebooks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About This Book Thing</title>
		<link>http://www.oak-tree.us/blog/index.php/2010/01/28/book-thing</link>
		<comments>http://www.oak-tree.us/blog/index.php/2010/01/28/book-thing#comments</comments>
		<pubDate>Thu, 28 Jan 2010 21:22:09 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Cool Stuff]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Writing and Literature]]></category>
		<category><![CDATA[rapidBOOKS]]></category>
		<category><![CDATA[Analytic Design]]></category>
		<category><![CDATA[OpenSource Writing]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/?p=1361</guid>
		<description><![CDATA[In the past few weeks, I’ve had several observant readers ask about one of my “secret” projects.  They’ve wondered what I’m up to and why it’s detracting from other endeavors.  After answering another query this morning, I decided that it’s probably time to speak openly about it.  So, here’s my public confession: I’m writing a [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2010/01/28/book-thing">About This Book Thing</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img style="display: inline; margin-left: 0px; margin-right: 0px; border: 0px;" title="daVinci-Skull" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/01/daVinciSkull.png" border="0" alt="daVinci-Skull" width="324" height="324" align="left" />In the past few weeks, I’ve had several observant readers ask about one of my “secret” projects.  They’ve wondered what I’m up to and why it’s detracting from other endeavors.  After answering another query this morning, I decided that it’s probably time to speak openly about it.  So, here’s my public confession: I’m writing a book.</p>
<p>It’s about scientific and professional writing and open source.  Moreover, it will be interesting, intriguing and revolutionary.  (Yes, I have an inflated sense of ego.)</p>
<p>Before really diving into the details, I’d like to give a bit of personal background.  This might help you understand why I’m passionate about the subject.</p>
<h2>Background</h2>
<p>Ten years ago, had someone told me that I would end up a scientist and engineer, I would have laughed at them.  At the time, I had just started at University and I was fully set on a career in either illustration, design or architecture.  I was much too “visual” and “right-brained” to surround myself by geeks, freaks and nerds.  It didn’t help that I spent a huge amount of time grooming myself to be an “artist”.</p>
<p>During high school, I had been cursed with moderate talent and highly indulgent instructors.  They praised my artwork.  They called it interesting and innovative.  They encouraged me to refine my technique and to major in visual arts.  So, I did.</p>
<p>But as time went on, I realized that I wasn’t very happy.  I realized that I had other interests.  I enjoyed art, I did well in it; but art classes weren’t my favorites.  That honor, as it turned out, was reserved for mathematics and science.</p>
<p>There was also another problem, I found that I lacked the discipline required to systematically create an individual style and build a portfolio.  I wanted create art for myself, not for other people; and that is a fatal flaw in an illustrator (the type of work that most interested me). Illustration, by definition, is work that has been requested for a particular use.  I was more interested in my own whims than those of potential clients.  Thus, not long after recognizing my problem, I decided to go a different direction and changed my major to engineering.</p>
<p><span id="more-1361"></span></p>
<p><img style="display: inline; border: 0px;" title="Cosmographicus-Earth" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/01/CosmographicusEarth.png" border="0" alt="Cosmographicus-Earth" width="599" height="413" /></p>
<h2>Analytic Design</h2>
<p>But even though I condemned myself to a life of investigation and exploration, I remained very interested in art, photography, layout and design.  This interest (and some substantial urging by the doctor I worked for at the time) resulted in a fascination with where science and art seemed to intersect.</p>
<p>And this is when I noticed, <a href="http://www.edwardtufte.com">like many others</a>, a strange trend.  If you look at the work of those considered the greatest minds in history – Leonardo  Da Vinci, Isaac Newton, Galileo Gallilei, Thomas Jefferson, Marie Curie, Albert Einstein, etc. – you find something intriguing. In nearly every case, those recognized as brilliant weren’t judged solely on the quality of their thinking, but also by how they presented and explained their insights.  Indeed, the thing identified as “brilliance” was not merely exceptional thinking, but clear communication.  After, all, clever thoughts and ingenious solutions mean nothing if they can’t be captured, understood and disseminated.</p>
<p>What is often overlooked, however, is just how much work is required to explain ideas which aren’t inherently simple, and that raises an important problem.  Communication in general, and writing in particular, is very hard.  To distill random and chaotic thought into a coherent and logical narrative requires energy, time and effort.  This is especially true of scientific, technical or professional subjects.</p>
<p>Such documents contain an enormous amount of baggage: figures, theorems, mathematical equations, algorithms, cross references and indexes.  And while such things simplify the life of a reader, they can positively drown a writer.</p>
<h2>Tools and Technology</h2>
<p>Luckily, however, there are tools and technologies that can simplify the organizational side of communication and allow for a writer to focus on the important parts: words, pictures and evidence.  But finding these tools and making them work together can be a very daunting task.  And that’s why I’m writing a book.</p>
<p>In its pages, I want to introduce principles and ideas that are characteristic of good communication.  For example, why was Albert Einstein able to convince both scientists and the general public that E=MC^2?  Why do we still read the scientific treatises of Isaac Newton or Charles Darwin – centuries after their ideas have been edited, amended, extended and restated?  Why does scientific communication often fail and what can be done to prevent breakdowns or misunderstanding?</p>
<p>Then, I want to show how those principles can be applied.  I’ll look at open source tools and how they work.  What programs are available for capturing information and references, organizing thoughts, and eventually creating a cohesive manuscript?  How can open source tools be used to create beautiful charts, maps, graphs and tables?  How can the process of collaboration be simplified?</p>
<p>Finally, I want to show why open source is awesome.  I want to demonstrate why it is functionally superior to proprietary alternatives; and I want to do this in a way that shows it to be accessible.  (Far too often, I find that people are afraid of open source because they view at as “complicated”, which is very unfortunate.)</p>
<p><img style="display: inline; border: 0px;" title="daVinci-Skull-Open" src="http://www.oak-tree.us/blog/wp-content/uploads/2010/01/daVinciSkullOpen.png" border="0" alt="daVinci-Skull-Open" width="507" height="507" /></p>
<h2>Conclusion</h2>
<p>When I first switched from art to science, I found myself confused, lost and overwhelmed.  Not only did I need to adjust to a completely new discipline and culture, but I also found that no one used the same computer programs!  And while it took some time to understand why, once I did, I realized that I would never go back to the “old” way of doing things.</p>
<p>Thus, I’m writing the book I wish someone had given me as a new science student; a book that explained the functional bits of scientific and professional writing with lots of examples, code, and pretty pictures.  This is what I’ve tried to put together, something that is part theoretical treatise but mostly instructional manual.</p>
<p>So, for those of you who have wondered where I’ve been and where I’ve wandered; that’s the answer.  I’m writing book.  The good news, however, is that it’s nearly finished.  And it’s in a state where I can start to share thoughts and examples from its chapters.  In the next few months, expect to see some of that information here.</p>
<p>But because I’m passionate about the subject, I would love to hear others have to say.  What makes for a good piece of informative writing?  What are examples of clear communication?  What lessons might we in the sciences learn from others?  And what tricks do you have for being more efficient?<br />
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/03/21/horse-photos" rel="bookmark" title="March 21, 2009">Photos of Horses</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2" rel="bookmark" title="November 30, 2009">Typeset Your Curriculum Vitae &ndash; Part 2: Extending and Customizing an Existing Document Class</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/12/14/wpf-svg-xaml-part2" rel="bookmark" title="December 14, 2008">WPF – SVG Graphics and XAML – Part 2</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/11/19/ironpython-part2" rel="bookmark" title="November 19, 2008">Learning IronPython – Part 2 – A Simple Project</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/12/23/iphone-quality" rel="bookmark" title="December 23, 2008">The iPhone App Store and Software Quality: A User’s Perspective</a></li>
</ul>
<p><!-- Similar Posts took 14.407 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2010/01/28/book-thing">About This Book Thing</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2010/01/28/book-thing/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Typeset Your Curriculum Vitae &#8211; Part 3: Automatically Generate a List of Publications</title>
		<link>http://www.oak-tree.us/blog/index.php/2009/12/02/latex-cv-part3</link>
		<comments>http://www.oak-tree.us/blog/index.php/2009/12/02/latex-cv-part3#comments</comments>
		<pubDate>Wed, 02 Dec 2009 15:19:44 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Writing and Literature]]></category>
		<category><![CDATA[rapidBOOKS]]></category>
		<category><![CDATA[Curiculum Vitae]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Typesetting]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/?p=1332</guid>
		<description><![CDATA[Publications are the currency of ideas.  Through them the experts, thinkers and dreamers of this world can share their thoughts and insights.  A good publication is not only influential, but it’s even capable of shifting the course of a whole society, as Martin Luther King demonstrated with his “Letter from a Birmingham Jail”.
Since publications are [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/12/02/latex-cv-part3">Typeset Your Curriculum Vitae &ndash; Part 3: Automatically Generate a List of Publications</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 15px 10px 0px; display: inline;" src="http://shelfelf.files.wordpress.com/2008/01/trinity-college-library-dub.jpg" alt="" width="350" height="276" align="left" />Publications are the currency of ideas.  Through them the experts, thinkers and dreamers of this world can share their thoughts and insights.  A good publication is not only influential, but it’s even capable of shifting the course of a whole society, as Martin Luther King demonstrated with his “<a href="http://www.oak-tree.us/stuff/King-Birmingham.pdf">Letter from a Birmingham Jail</a>”.</p>
<p>Since publications are so important to the dissemination of knowledge, there is a rather high expectation that an academic author should publish prolifically.  The mantra “Publish or Perish” is not just a clever quip, but a very serious way of life.</p>
<p>It is ironic, then, that the most prolific of academic writers can suffer from a surprising problem: it can be very difficult to keep track of all of their work.  Yet, an up to date CV is very important.  After all, publishing your work in influential journals is an important first step toward establishing tenure!</p>
<p>Members of a research team or those who collaborate outside of their institution experience this same problem, only more so.  Such a person may work on many projects at once, but only have direct responsibility for one or two of them.  This places the researcher in the unenviable position of trying to track the work of others.  This situation becomes even more complicated if the collaborator refuses to play by the rules of common decency.</p>
<p><!--adsensestart--></p>
<p>It would be nice, for example, if the primary author of a publication would <em>notify</em> the co-authors of its progress, or when it has been submitted.  But … that doesn’t always happen.  Academic researchers are busy people and soliciting feedback from all of your collaborators can be difficult … and there is a tendency for difficult things to go undone.  Thus, if you don’t follow what your team mates are working on, it is quite possible that an abstract might have gotten submitted while your back was turned.</p>
<p>To stay on top of the “delightful chaos”, you need to have some kind of system.  Personally, I keep my list of projects and publications in three places. The first (and perhaps most important) is the hand-written list in my experimental notebook. Any time I hear about a new project, it gets added to this list. I keep track of what I’ve contributed, what papers or abstracts have been created from the data, and what their status is. When I know that an abstract or paper has been accepted, I then create an entry for the item in my bibliography manager. Once in the bibliography manager, I can cite the reference in other documents such as proposals or related papers.</p>
<p>About once a year, I go through the tedious process of updating my CV. This typically involves manually sorting through both my project list and my reference database and account for new items or reconcile differences. Every time I do this, it&#8217;s painful; and because I’ve historically formatted the reference list by hand, it&#8217;s not uncommon for a typo to sneak its way in or for an author to accidentally get left off of a citation. These mistakes are never intentional, but they do happen.</p>
<p>When I find such an error in the reference database, I fix it. But since I often import these references from websites, the errors tend to be few and far between. Moreover, my reference database is something that I use every day; as a result, it gets a lot of scrutiny. My CV, on the other hand, gets updated much less frequently and errors tend to persist longer.</p>
<p>For a very long time, I&#8217;ve wanted to automate the process. Instead of keeping three separate lists – active projects, reference database, and CV – I’d prefer to keep only one (or two). But I&#8217;ve never found a really satisfactory way of doing so.  Or at least I hadn’t found a system until quite recently.</p>
<p>In my last review of different ways to typeset a CV, I came across an interesting article by <a href="http://nitens.org/taraborelli/home">Dario Taraborelli</a>.  In it, he described how to create a CV based on the standard “article” document class.  It was well designed, elegant, simple and attractive.  From his work, I created the <a href="http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1">xetexCV document class</a>.  Additional research turned up an add-on module that makes it convenient to automatically generate a list of publications.  So, for the first time  in a great while, I have finally found a way to automatically generate a publications list in a simple and automated manner.  In this article, I will demonstrate how that is done.</p>
<p><span id="more-1332"></span></p>
<h2>The Basic Requirements</h2>
<p>For any automated solution to be successful, it needs to meet three primary criteria:</p>
<ul>
<li>When generating a list of references, bibliographic details should be pulled from the database.  This ensures that the information is always up to date.</li>
<li>The citation style must be customizable. I want the ability to specify whether my CV includes page numbers and hyperlinks.  Not all citation styles do.</li>
<li>The publication list should be broken into different categories.  Book chapters should not be listed with peer-reviewed journal articles, nor should abstracts be listed amongst the books.</li>
</ul>
<h2>cvsplitbib and xetexCV</h2>
<p>All three of these requirements can be met by using the xetexCV document class and the cvsplitbib style (both are provided in this <a href="http://www.oak-tree.us/stuff/LyX/xetexCV.zip">zipped directory</a>).  cvsplitbib is a version of regular <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/splitbib/">splitbib</a>, a package that makes it possible to create categories in your bibliography. While all of the main features work as described in the <a href="ftp://indian.cse.msu.edu/pub/mirrors/CTAN/macros/latex/contrib/splitbib/splitbib.pdf">splitbib manual</a>, the macros have been changed to use the \cvsection and \cvsubsection macros of the xetexCV document class.  This ensures that formatting and indentation of the publications list is consistent with the rest of the document.</p>
<p>This combination also has an additional benefit.  Because cvsplitbib works entirely through LaTeX, any bibtex citaiton style can be used.  In the example below, I&#8217;ve used the the &#8220;plain&#8221; style, though it would have been just as easy to use ama, MLA, chicago or any other style in my distribution.</p>
<p><em>Note: There is an important difference between cvsplitbib and splitbib.  In the standard version of splitbib, it is possible to create subsubcategories (a second level of nested references).  Cvsplitbib does not support this as xetexCV does not define a \cvsubsubsection macro.</em></p>
<h2>Creating a Categorized List</h2>
<p>Creating different bibliography sections is achieved through the use of the “category” environment.  The arguments of the environment define the title of the section while the \SBentries macro is used to specify the citation key of any reference that should be included in that particular list.</p>
<p><em>Note: Citation keys should be added as a list separated by commas, any spaces will result in an error.</em></p>
<p>The following example creates a categorized bibliography with three different sections (<em>Novels</em>, <em>Children’s Literature</em> and <em>Comics, Graphic Novels</em>).  The bibliography data is pulled from the file “NeilGaiman-Publications.bib”, part of the xetexCV examples (see below):</p>
<blockquote><p>\begin{category}[A]{Novels}<br />
\SBentries{Gaiman2001-American-Gods,Gaiman2005-Anansi,<br />
Gaiman1990-Good-Omens,Gaiman1996-Neverwhere,<br />
Gaiman1999a-Stardust,Gaiman1985-Ghastly}<br />
\end{category}</p>
<p>\begin{category}[B]{Children&#8217;s Literature}<br />
\SBentries{Gaiman1998a-Goldfish,Gaiman2008-Graveyard}<br />
\end{category}</p>
<p>\begin{category}[C]{Comics and Graphic Novels}<br />
\SBentries{Gaiman1994b-Angela,Gaiman1993-Angels,<br />
Gaiman1989-Black-Orchid,Gaiman1993a-<br />
Books-Magic,Gaiman1994a-Death-Living,Gaiman1997-Death-Time-Life,<br />
Gaiman2000a-Green-Lantern,Gaiman2003-Marvel-1602,<br />
Gaiman1999-Midnight-Days,Gaiman1994-Anthology-Virus,<br />
Gaiman2000-End-World,Gaiman1992-Signal-to-Noise,<br />
Gaiman1998b-Smoke-Mirrors,Gaiman1998-Inkeeper,<br />
Gaiman1991-Sandman,Gaiman1987-Violent-Cases}<br />
\end{category}</p></blockquote>
<p>Any reference that is not included in a specified category will be added to a fourth category, titled: “Miscellaneous”.</p>
<h2>Generating the Bibliography</h2>
<p>Once the various references have been categorized, you can generate the bibliography as you would in any other document:</p>
<blockquote><p>\nocite{*}\bibliographystyle{plain}<br />
\bibliography{NeilGaiman-Publications}</p></blockquote>
<p>Here the \nocite{*} command is used to list all of the publications in the .bib database.  \bibliographystyle{plain} specifies the BibTeX style to use, and \bibliography{Database-Name} tells BibTeX which database file to pull the information from.  Part of the formatted output from the example is shown below.</p>
<p><img style="display: inline; border-width: 0px;" title="image" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/12/image.png" border="0" alt="image" width="525" height="210" /></p>
<h2>Examples and Class Files</h2>
<ul>
<li><a href="http://www.oak-tree.us/stuff/LyX/xetexCV.zip">Document Class and Examples (.zip)</a>.  This file contains the document class, cvsplitbib package, examples and other supporting files.</li>
<li>Neil Gaiman (Automatic Bibliography).  <a href="http://www.oak-tree.us/stuff/LyX/xetexCV/example3-xetexCV-AutomaticBib.tex">LaTeX Source</a>, <a href="http://www.oak-tree.us/stuff/LyX/xetexCV/example3-xetexCV-AutomaticBib.pdf">PDF Output</a>, <a href="http://www.oak-tree.us/stuff/LyX/xetexCV/NeilGaiman-Publications.bib">Reference Database</a></li>
<li>Albert Einstein.  <a href="http://www.oak-tree.us/stuff/LyX/xetexCV/example-xetexCV.tex">LaTeX Source</a>, <a href="http://www.oak-tree.us/stuff/LyX/xetexCV/example-xetexCV.pdf">PDF Output</a></li>
<li>Isaac Newton.  <a href="http://www.oak-tree.us/stuff/LyX/xetexCV/example2-xetexCV.tex">LaTeX Source</a>, <a href="http://www.oak-tree.us/stuff/LyX/xetexCV/example2-xetexCV.pdf">PDF Output</a></li>
</ul>
<p>______________________________________________________</p>
<h2>Acknowledgements and Further Reading</h2>
<p>The xetexCV document style is based on work from <a href="http://nitens.org/taraborelli/home">Dario Taraborelli’s website</a>.  The cvsplitbib package is a modified version of <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/splitbib/">splitbib</a>, by <a href="http://www.lsv.ens-cachan.fr/~markey/">Nicolas Markey</a>.</p>
<p>This article is part 3 of a four part series.  <a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2">Part 1</a> introduces the xetexCV document class and describes its use.  <a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2">Part 2</a> dissects the code and explains how it works.  Part 4 describes how to use the document class and a corresponding layout file with LyX<br />
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1" rel="bookmark" title="November 25, 2009">Typeset Your Curriculum Vitae &ndash; Part 1: The xetexCV Document Class</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/08/23/time-drive-bugs" rel="bookmark" title="August 23, 2009">Filing Bugs for Time Drive or LyX-Outline</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2" rel="bookmark" title="November 30, 2009">Typeset Your Curriculum Vitae &ndash; Part 2: Extending and Customizing an Existing Document Class</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/12/08/ironpython-part7" rel="bookmark" title="December 8, 2008">Learning IronPython &#8211; Part 7 &#8211; A Summary of Lessons Learned</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/10/05/install-timedrive-ubuntu" rel="bookmark" title="October 5, 2009">Install Time Drive On Ubuntu and Other Debian Linux Distributions</a></li>
</ul>
<p><!-- Similar Posts took 14.450 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/12/02/latex-cv-part3">Typeset Your Curriculum Vitae &ndash; Part 3: Automatically Generate a List of Publications</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2009/12/02/latex-cv-part3/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Typeset Your Curriculum Vitae &#8211; Part 2: Extending and Customizing an Existing Document Class</title>
		<link>http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2</link>
		<comments>http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2#comments</comments>
		<pubDate>Mon, 30 Nov 2009 18:54:16 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Writing and Literature]]></category>
		<category><![CDATA[rapidBOOKS]]></category>
		<category><![CDATA[Curiculum Vitae]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Typesetting]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/?p=1327</guid>
		<description><![CDATA[

Many first-time users of LaTeX often mistakenly look at the language as a a type of glorified word processing software – albeit a particularly complicated one.  While such an analogy may be apt in helping new users become acclimatized to the language, it suffers from a rather nasty problem: LaTeX isn’t a word processor.
If anything, [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2">Typeset Your Curriculum Vitae &ndash; Part 2: Extending and Customizing an Existing Document Class</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wordinfo.info/words/images/evolution-man-computer.gif" alt="" /></p>
<p><!--adsensestart--></p>
<p>Many first-time users of LaTeX often mistakenly look at the language as a a type of glorified word processing software – albeit a particularly complicated one.  While such an analogy may be apt in helping new users become acclimatized to the language, it suffers from a rather nasty problem: LaTeX isn’t a word processor.</p>
<p>If anything, LaTeX shares more in common with a programming languages than any type of application.  In fact, the document processing system is really nothing more than a bunch of re-usable pieces of programming called macros.  <em>Everything </em>is a macro.  That includes the commands that every user is familiar with: \title{}, \section{}, \subsection{}; in addition to the internal formatting commands that allows LaTeX to function.  (Most of the macros were originally created or packaged by <a href="http://en.wikipedia.org/wiki/Leslie_Lamport">Leslie Lamport</a> as a way of making TeX – the typesetting system created by <a href="http://www-cs-faculty.stanford.edu/~knuth/">Donald Knuth</a> – easier to work with.)</p>
<p>This has some rather practical consequence; because everything in LaTeX is a macro, it is far more extensible than a word processor could ever hope to be.  If you require a feature that doesn’t yet exist, it typically isn’t all that difficult to add it.  And when your extension is packaged inside a style or class, you can use those customizations in anything that you want to write.</p>
<p>But though creating macros isn’t particularly complicated, it is a different beast than just using the stock macros for writing.  This is not surprising, the craft of design is inherently different than the craft of writing.  There are different conventions to follow and different topics to obsess about.  In the <a href="http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1">first article</a> of this series, I introduced the <a href="http://www.oak-tree.us/stuff/LyX/xetexCV.zip">xetexCV document class</a>, which is one example of where I decided to don the designer hat.</p>
<p>But before you get too far down the road of customizing and extending, there are a some important things that you need to know.  These include the general conventions used when working with document classes, their internal anatomy, an understanding of how macros are created, and how to handle formatting and layout challenges.  In this article, I will look at these issues more in detail, particularly as they pertain to xetexCV.  In the process of reviewing these topics, I will also explain some of my design choices.</p>
<p><span id="more-1327"></span></p>
<h2>Understanding Conventions</h2>
<p>When trying to customize or extend a document class, perhaps the very first thing to understand is that there are certain conventions.  The document “LateX 2E for class and package designers” describes them this way:</p>
<blockquote><p>LaTeX has three types of commands.</p>
<p>There are the author commands, such as \section, \emph and \times: most of these have short names, all in lower case.</p>
<p>There are also the class and package writer commands.  Most of these have long mixed-case names such as the following:</p>
<p>\InputIfFileExists    \RequirePackage    \PassOptionsToClass</p>
<p>Finally, there are the internal commands used in the LaTeX implementation, such as \@tempcnta, \@ifnextchar and \@eha: most of these commands contain @ in their names, which means they should not be used in documents, only in class and package files.</p></blockquote>
<p>These conventions help to better separate  procedural formatting from the descriptive tags used in writing a document.  But it also makes it easier to identify what different sections of the code do.  Sections that are responsible for importing and configuring packages will typically use mixed case names, while variables will contain the @ symbol, and user facing macros will be in lower case.</p>
<h2>The Internal Anatomy of a Document Class</h2>
<p>The next important thing to understand is that all document classes have a few well defined components.  That is to say, they have an internal anatomy which contributes to their function and physiology.  The internal bits include the class description and required statements, a block that imports and configures packages which new features will depend on, and a section where new macro commands are created or existing commands are redefined.</p>
<h3>Class Description and Required Statements</h3>
<h4>\ProvidesClass</h4>
<p>The very first such section gives the package name and description.  Also included is a definition of the most recent version of LaTeX that the document class will work with.  The relevant code from xetexCV is shown below:</p>
<blockquote><p>\NeedsTeXFormat{LaTeX2e}<br />
\ProvidesClass{xetexCV}[2009/11/30 – Modern looking résumé which uses<br />
the xetex typesetting system]<br />
…</p></blockquote>
<p>Here, the \NeedsTeXFormat{LaTeX2e} command is the earliest version of LaTeX that the document class will work with.  \ProvidesClass{xetexCV} identifies the class name (xeteCV) and everything in square brackets is the document description.</p>
<h4>\LoadClassWithOptions</h4>
<p>Generally speaking, there are two major types of LaTeX document classes: those that are free standing, and those that are variations of other document classes.  The standard classes (article.cls, report.cls, and book.cls) are examples of the former.  They contain all of the code needed to compile and work without additional extensions.  xetexCV, is an example of the second type.</p>
<p>To load an existing class as the foundation, you can use the \LoadClassWithOptions macro:</p>
<blockquote><p>…<br />
\LoadClassWithOptions{article}<br />
…</p></blockquote>
<p>xetexCV uses “article” for its foundation.  For that reason it is likely that other packages and styles will work without conflict.</p>
<h3>Building on the Foundation</h3>
<h4>\RequirePackage</h4>
<p>After the base class has been loaded, the new package is fully functional, if identical to the foundation class.  The next step in the customization process, then, is to begin adding new features and modifying old ones.  In the case of xetexCV, there were several changes which I wanted to make.  First,  I wanted to use an 8 1/2 inch by 11 inch paper (US letter) by default.  I also wanted to set a 1 inch margin.  Next, I wanted to use the XeTeX typesetting system and a pair of advanced OpenType fonts.</p>
<p>These changes are made through the use of other LaTeX packages.  In a document class, add-on modules are loaded through the \RequirePackage command.  Below is the related code from xetexCV:</p>
<blockquote><p>…<br />
\RequirePackage{fontspec}<br />
\RequirePackage{xunicode}<br />
\RequirePackage{xlxtra}</p>
<p>\RequirePackage{graphicx}<br />
\RequirePackage[colorlinks]{hyperref}</p>
<p>\RequirePackage{ifthen}<br />
…</p></blockquote>
<p>The first three packages (fontspec, xunicode, and xlxtra) are used by XeTeX to set fonts and provide unicode support.  <a href="http://www.ctan.org/tex-archive/help/Catalogue/entries/fontspec.html">fontspec</a>, in particular, is very important.  It provides convenience macros that make it easy to change the the various font families: \setmainfont{fontname}, \setromanfont, \setsansfont, and \setmonofont.  It also provides a way to manipulate font mappings, color, scaling, and inter-word spacing.  graphicx is used to add images to the document and manipulate their size.</p>
<p>hyperref makes it possible to add clickable hyperlinks and bookmarks.  The [colorlinks] option specifies that these special links should be rendered in a different color than other text.  The hyperref package is then configured using the \hypersetup{} macro.  By default, I’ve configured xetexCV to use blue for urls and webpages and black for filenames:</p>
<blockquote><p>\hypersetup{linkcolor=blue,citecolor=blue,filecolor=black,urlcolor=blue}</p></blockquote>
<p>The ifthen package provides several macros that make it easier to apply conditional formatting.  These will be discussed in more detail below.</p>
<h3>Creating New Features and Modifying Old Ones</h3>
<p>The last major section of a document class is where new macros are defined and old ones are modified.  As might be expected, this section typically accounts for the majority of the code.</p>
<h4>\def and \newcommand</h4>
<p>There are two major commands used to define macros and variables: \def and \newcommand.  \def is a TeX primitive while \newcommand is a LaTeX macro that checks for name clashes or other problems.  In many cases, they may be used interchangeably or in concert.  Consider the code block below which defines the \cvname macro:</p>
<blockquote><p>…<br />
\def\@cvname{\relax}<br />
\newcommand{\cvname}[1]{\gdef\@cvname{#1}}<br />
…</p></blockquote>
<p>\@cvname (according to the LaTeX conventions) is a variable/macro which should only be used from inside the LaTeX document class.  Consequently, it needs a user-facing macro that can be used to assign it a value.  This is what \cvname does.  In this example, the first line of code creates the variable and assigns it the LaTeX equivalent of a null value (\relax).  The second line is a little more interesting.  It defines a macro called \cvname with one argument [1].  Then, it takes the \cname argument and assigns it to \@cvname.</p>
<p>A second, related example can be seen in the definitions of \@cvimage and \cvimage:</p>
<blockquote><p>…<br />
\def\@cvimage{\relax}<br />
\newcommand{\cvimage}[1]{\gdef\@cvimage{#1}}<br />
…</p></blockquote>
<p>Again, the first line of code creates a variable (\@cvimage) with a null value, and the second line creates the user facing macro (\cvimage).  In later commands, the internal variables are used for layout and formatting (see below).</p>
<h4>\renewcommand</h4>
<p>If I need to modify a particular piece of code, those changes can be made using the \renewcommand macro.  This is similar to over-riding a method in an object-oriented programming language like C++ or Python.  Everything that hasn’t been changed continues to work as before.  In xetexCV, I wanted to modify the \section and \subsection macros.  To do so requires \@startsection and six arguments:</p>
<blockquote><p>\@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}</p>
<p>Generic command to start a section.</p>
<p>NAME : e.g., “subsection”<br />
LEVEL : a number, denoting the depth of the section in the table of contents<br />
INDENT : Indentation of the heading from the left margin<br />
BEFORESKIP : Space to leave above the heading<br />
AFTERSKIP : Space to leave after the heading<br />
STYLE : Commands to set the font and style of the heading</p></blockquote>
<p>I, therefore, copied over the definitions from article.cls and modified the spacing and fonts:</p>
<blockquote><p>\renewcommand\section{\@startsection<br />
{section}{1}{\z@}%<br />
{-3.5ex \@plus –1ex<br />
\@minus -.2ex \vspace{1mm}}%<br />
{0.5mm}%<br />
{\sffamily\large\bfseries}}</p>
<p>\renewcommand\subsection{\@startsection<br />
{subsection}{1}{\z@}%<br />
{-3.5ex \@plus -1ex \@minus -.2ex}%<br />
{3.0mm}%<br />
{\sffamily\mdseries}}</p></blockquote>
<p>But while I chose to completely rewrite my section definitions, much the same thing could have been accomplished through the <a href="http://www.ctan.org/tex-archive/help/Catalogue/entries/sectsty.html">sectsty package</a>.  Despite the ease of sectsty, I felt that it would be better to define my styles from scratch.  sectsty often throws errors when used with other document classes, like scrbook.</p>
<h2>Rules for Creating New Macros</h2>
<p>The third important thing to understand when writing a document class is when you should add new macros rather than modifying the behavior of old ones.  In trying to make this decision, it is good to think about how changing a macro’s behavior will influence other document features.  In cases where a change might cause other features to break, it is better to add a new macro.</p>
<h3>Managing Complex Formatting &#8211; \cvsection and \cvsubsection</h3>
<p>While I was redefining the \section and \subsection macros, I ran into one such difficulty.  I wanted to set one indentation level for the header and another for the body text.  Further, I wanted to include a decorative line following the header.  Yet, no matter how I chose to define the STYLE or AFTERSKIP arguments, I couldn’t quite achieve the formatting I wished (shown below).</p>
<p><img style="display: inline; border-width: 0px;" title="image" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/image6.png" border="0" alt="image" width="600" height="149" /></p>
<p>I finally decided that the formatting was too complex and required a new macro that could be used instead of \section and \subsection.  These new additions became \cvsection and \cvsubsection:</p>
<blockquote><p>\newcommand{\cvsection}[1]{\leftskip 0cm<br />
\section*{#1}\decorativeline\marginpar{\vspace{0.3ex}}<br />
\leftskip 116pt}</p></blockquote>
<p>As in the previous examples, \newcommand was used to define a code block with a single argument – the text to be formatted).  Then, I specified the procedure that I wanted to apply to the text</p>
<ul>
<li>The left text margin is moved so that it is flush with the page margin (\leftskip 0cm)</li>
<li>A non-numbered section header is added (\section*{#1})</li>
<li>The  decorative line is included (\decorativeline)</li>
<li>The text indentation is returned to the previous value (\leftskip 116pt).</li>
</ul>
<p><!--adsensestop--></p>
<p>The definition of \cvsubsection is similar, with two exceptions.  First, the \cvsubsection style does not include a decorative life.  The second major difference is more substantial.  I found the vertical spacing <em>preceding</em> the \subsection definition to be too large, I therefore moved the entire text block up by 0.2 cm (\vspace{-0.2cm}).  This was ultimately easier than trying to find a better value for the BEFORESKIP argument:</p>
<blockquote><p>\newcommand{\cvsubsection}[1]{\leftskip 0cm \vspace{-0.2cm}<br />
\subsection*{#1}\vspace{1.0mm} \leftskip 116pt}</p></blockquote>
<p><em>Note: When given a negative value, \vspace moves up the block of text by the specified amount</em>.</p>
<h2>Layout and Formatting<img style="margin: 0px 0px 10px 15px; display: inline; border-width: 0px;" title="image" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/image7.png" border="0" alt="image" width="387" height="245" align="right" /></h2>
<p>One of the very best features of TeX is the automatic layout algorithm that it uses to position content.  In nearly all cases, allowing for LaTeX to manage spacing and layout will result in a better looking document than if you try and do so yourself.  There will be circumstances, however, where it is necessary to manually specify the position of photos or text in a more precise manner.</p>
<p>In xetexCV, there are two such cases.  In the first, special handling is required so that the CV contact information is correctly labeled and typeset.  Additional formatting commands are required so that the images and text of the title section have a “balanced” feel to them.  All of this processing occurs in the \makecvtitle macro.</p>
<h3>Conditional Formatting &#8211; \ifthenelse</h3>
<p>While it may appear simple, the formatting of the xetexCV contact section (which includes the institution, address, phone, fax, email and website information) is rather involved.  First, in order to simplify the use of the document class, I chose to add this information through the use of special macros (\email, \website\, \cvname, etc.).  Because the information is added through tags, this means that logical rules must be set up to handle to handle the layout.  What should happen, for example, if a fax number or website isn’t supplied?</p>
<p>The obvious answer is that the information should be left out of the contact details.  That also means that the label (“Fax:”, “Phone:”, “Email:”) should be omitted.  To accomplish this goal requires conditional formatting, better known to programmers as the “if, then, else” loop.  “If” a condition exists, “then” do one thing, “else” do another.</p>
<p>In LaTeX, conditional formatting is performed by the “ifthen” package and uses the \ifthenelse macro.</p>
<p>\ifthenelse takes three arguments:</p>
<blockquote><p>\ifthenelse{CONDITION}{IF TRUE}{ELSE}</p>
<p>CONDITION : The test condition, often expressed as \equals{VARIABLE}{VALUE}<br />
IF TRUE : The code that should be executed if the condition is satisfied<br />
ELSE : What to do if the condition is false</p></blockquote>
<p>At several instances in xetexCV, \ifthenelse is used to test if there is a null (or empty) value for a particular tag.  In the cases where it finds a null value, then no formatting commands are executed.  If, however, there is a value, then text is added.  A few of the simpler examples are shown below:</p>
<blockquote><p>\ifthenelse{\equal{\@phonenumber}{\relax}}<br />
{}{Phone: \texttt{\@phonenumber}\\}<br />
\ifthenelse{\equal{\@faxnumber}{\relax}}<br />
{}{Fax: \texttt{\@faxnumber}\\[0.2cm]}<br />
\ifthenelse{\equal{\@email}{\relax}}<br />
{}{Email: \href{mailto:\@email}{\@email}\\}<br />
\ifthenelse{\equal{\@website}{\relax}}<br />
{}{Website: \href{\@website}{\@website}\\}</p></blockquote>
<p>In each of these cases, the \equal macro is used to check if the pertinent variable (specified by the \@ symbol) still has a value of \relax (\equal{\@variablename}{relax}).</p>
<p><em>Note: \relax can be thought of as an equivalent to null in other language.</em></p>
<p>If the value is still set to \relax, then nothing is done (denoted by the empty diamond brackets).  If there is a non-null value, however, then the appropriate label and formatted text is added to the document.</p>
<p>While these examples are relatively simple, the same principle can be used to for very complicated formatting.  \makecvtitle, for example, uses a similar conditional statement to see if the user has specified an image.  If not, then it will use one formatting style for the entire title section.  If so, then it uses the layout shown in the examples.</p>
<h3>Balancing Images and Text &#8211; \makecvtitle</h3>
<p>In addition to the conditional formatting issues, \makecvtitle must also wrestle with the best way of creating a single, unified title block.  The CV name, contact information and photo should all be included.  Moreover, subsequent sections should be added after the end of the photo, rather than wrapping around it.  One of the easiest ways to create such a unified block of content is to use the minipage environment.</p>
<p>The minipage is extremely flexible.  It can have text, formatting and image within a self-enclosed space.  Furthermore, they can be embedded within one another.  By creating a series of embedded minipages (as shown below), you can group related content.  You can additionally specify how wide you want each minipage environment to be, or you can let the LaTeX engine make those determinations.</p>
<p><em>Note: An additional advantage of minipage is that any footnotes added to text within the minipage are  part of that environment instead of the main document.  This is useful for adding footnotes to figures or text.  Accomplishing the same thing in Microsoft Word without tedious manual formatting is impossible.</em></p>
<p><img style="display: inline; border-width: 0px;" title="Embedded Minipages" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/EmbeddedMinipages.png" border="0" alt="Embedded Minipages" width="400" height="365" /></p>
<p>I’ve used this strategy to ensure that text containing the contact details is properly aligned against the cv photo.  The minipage environment from xetexCV is shown below:</p>
<blockquote><p>\begin{minipage}{6in}<br />
\begin{minipage}{114pt}<br />
\resizebox*{100pt}{!}<br />
{\includegraphics{\@cvimage}}<br />
\end{minipage}<br />
\begin{minipage}{4in}<br />
\ifthenelse{\equal{\@institution}{\relax}}<br />
{}{\bfseries\@institution\\}<br />
\mdseries\@contactaddress\\[0.2cm]<br />
\ifthenelse{\equal{\@phonenumber}{\relax}}<br />
{}{Phone: \texttt{\@phonenumber}\\}<br />
\ifthenelse{\equal{\@faxnumber}{\relax}}<br />
{}{Fax: \texttt{\@faxnumber}\\[0.2cm]}<br />
\ifthenelse{\equal{\@email}{\relax}}<br />
{}{Email: \href{mailto:\@email}{\@email}\\}<br />
\ifthenelse{\equal{\@website}{\relax}}<br />
{}{Website: \href{\@website}{\@website}\\}<br />
\end{minipage}<br />
\end{minipage}</p></blockquote>
<p>As you may notice, there are three embedded minipages here (the main minipage and two sub pages).  The main minipage is set to span the entire width of the text.  However, the first embedded minipage is only 114 pt in width (about 1.6 inches).  Within this first box, I place the cvphoto, resized to a width of 100 pt:</p>
<blockquote><p>\resizebox*{100pt}{!}<br />
{\includegraphics{\@cvimage}}</p></blockquote>
<p><em>Note: The {!} argument in \resizebox allows the image to stretch proportionally in the vertical direction.</em></p>
<p>The second minipage is allowed to take up the rest of the paper width and includes the conditional formatting for the contact details.</p>
<h2>Conclusion</h2>
<p>Through the use of custom formatting, packages and macros, I’ve created a document that is substantially different from the foundation class (article.cls).  Despite those differences, nearly every major customization was made using simple LaTeX macros which many users will be familiar with.  Further, because it is built on a solid foundation, the ability to use other add-on packages is retained.</p>
<p>Extending an existing document class does not need to be difficult.  It is possible to use many of the commands used for writing a document.  Additionally, the modifications could be packaged as a style (.sty) and used to enhance any content that I might write in the future.</p>
<p>This flexibility is one of the reasons why LaTeX is such a good candidate for the typesetting of scientific and technical material.  It’s also why LaTeX is a good candidate for creating design heavy documents, such as a curiculum vitae.</p>
<p>______________________________________________________</p>
<h2>Acknowledgements and Further Reading</h2>
<p>Additional information on the structure of document classes can be found in the article “<a href="http://www.tug.org/TUGboat/Articles/tb28-1/tb88flynn.pdf">Rolling your own Document Class: Using LaTeX to keep away from the Dark Side</a>” by Peter Flynn of Silmaril Consultants.</p>
<p>A second article called “<a href="http://www.tug.org/TUGboat/Articles/tb29-3/tb93mansfield.pdf">How to develop your own document class – our experience</a>” describes additional techniques for documents that might have non-standard formatting.  It outlines several common mistakes and ways to get avoid them.</p>
<p>This article is part 2 of a four part series.  <a href="http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1">Part 1</a> introduces the xetexCV document class and describes its use.  <a href="http://www.oak-tree.us/blog/index.php/2009/12/02/latex-cv-part3">Part 3</a> shows how to generate a publications list through the use of a .bib database and custom BibTeX style.  Part 4 describes how to use the document class and a corresponding layout file with LyX.<br />
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1" rel="bookmark" title="November 25, 2009">Typeset Your Curriculum Vitae &ndash; Part 1: The xetexCV Document Class</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles" rel="bookmark" title="November 14, 2009">Customizing LyX: Character Styles and the LyX Local Layout</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/12/02/latex-cv-part3" rel="bookmark" title="December 2, 2009">Typeset Your Curriculum Vitae &ndash; Part 3: Automatically Generate a List of Publications</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/11/19/ironpython-part3" rel="bookmark" title="November 19, 2008">Learning IronPython – Part 3 – A Beautiful Start</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/03/04/perfect-tool" rel="bookmark" title="March 4, 2009">Creating the Perfect Writing Tool: A Proposal</a></li>
</ul>
<p><!-- Similar Posts took 15.594 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2">Typeset Your Curriculum Vitae &ndash; Part 2: Extending and Customizing an Existing Document Class</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Typeset Your Curriculum Vitae &#8211; Part 1: The xetexCV Document Class</title>
		<link>http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1</link>
		<comments>http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1#comments</comments>
		<pubDate>Wed, 25 Nov 2009 04:02:27 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Writing and Literature]]></category>
		<category><![CDATA[rapidBOOKS]]></category>
		<category><![CDATA[Curiculum Vitae]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Typesetting]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/?p=1321</guid>
		<description><![CDATA[Very few documents are more personal than a curriculum vitae (CV).  A CV lists a person’s educational history, who they’ve worked for and what they’ve accomplished.  Moreover, a CV is frequently used to judge a person’s inherent worth and value (or at least exploitability).  A quality curiculum vitae matters, a lot.
For that reason, a CV [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1">Typeset Your Curriculum Vitae &ndash; Part 1: The xetexCV Document Class</a></p>
]]></description>
			<content:encoded><![CDATA[<p><!--adsensestart-->Very few documents are more personal than a curriculum vitae (CV).  A CV lists a person’s educational history, who they’ve worked for and what they’ve accomplished.  Moreover, a CV is frequently used to judge a person’s inherent worth and value (or at least exploitability).  A quality curiculum vitae <em>matters</em>, a lot.</p>
<p>For that reason, a CV not only needs to include all the pertinent information of a person’s life, but it also needs to look <em>good. </em>An attractive CV with good spacing and contrast leaves a positive impression and makes it easier to find information.  When laid out correctly, a reviewer might just find themselves scouring past accomplishments for interesting tidbits: “I didn’t realize that this applicant organized a lecture series with Patch Adams and other notables, that’s <em>interesting</em>!”</p>
<p><span id="more-1321"></span>There are many dedicated CV classes which can be used to typeset a CV with LaTeX.  Unfortunately, they all share one thing in common: they’re complicated.  To ensure that the spacing and fonts are correct, far too often a document based on these classes will devolve into a jumbled mess of tags and obscure page layout commands.</p>
<p>I’ve tried to typeset my CV with LaTeX a number of times, and in nearly every case, I’ve been unhappy with the output.  Sure, the end product is attractive <em>enough; </em>but it doesn’t quite match the CV that I have in my head.  To really arrive at my coveted ideal of perfection, I would need to manually specify the font and position of nearly every element on the page; which is why I’ve normally used a dedicated layout program (such as Adobe InDesign) for the job.</p>
<p>This is unfortunate, however, since a CV based on LaTeX would be much easier to keep current.  Additionally, a well designed document class and corresponding BibTeX style would allow me to use my existing bibliographic database to automate the process.</p>
<p>Thus, any time that I need to make major updates, I always check the internet for information and new LaTeX classes.  While conducting one such review a few days ago, I came across <a href="http://nitens.org/taraborelli/cvtex">a very interesting article</a> and set of examples by <a href="http://nitens.org/taraborelli/home">Dario Taraborelli</a> of the <a href="http://cress.soc.surrey.ac.uk/">University of Surrey</a>.  In his write-up, Dr. Taraborelli expresses frustrations which are similar to my own;  but instead of complaining and throwing his hands up in exasperation, he went on to solve the problems in an elegant way.</p>
<p>Rather than use or modify one of the existing CV classes (as I would have done), Taraborelli opted to extend the article class by adding additional features.  Perhaps the most important addition was the use of <a href="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=XeTeX">XeTeX</a> and the \fontspec package, which allows for OpenType or <a href="http://nitens.org/taraborelli/latex">expert fonts</a> to be used and other advanced features.  The end result of this work is an attractive and <em>flexible </em>document template.</p>
<p>Dr. Taraborelli’s example also shows how easy it can be to extend an existing document class to meet a more specific need.  As I read through the example code, I realized that it would be straightforward to build upon his work and create something that would suit my particular aesthetic.<!--adsensestop--></p>
<p>So … I did, and this series is the result of my efforts.</p>
<p>In the remainder of this article, I will introduce the new CV document class I created (called xetexCV) and provide a few examples of how to work with it.  In <a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2">part 2</a>, I will dissect the class code and explain how it works.  I will also provide hints on how it might be modified.  In <a href="http://www.oak-tree.us/blog/index.php/2009/12/02/latex-cv-part3">part 3</a>, I will show how to generate a publications list through the use of a .bib database and custom BibTeX style.  In Part 4, I will describe how the document class and corresponding layout file can be used with LyX.</p>
<p><img style="display: inline; border-width: 0px;" title="image" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/image3.png" border="0" alt="image" width="550" height="286" /></p>
<h2>xetexCV – An Attractive and Easy to Use CV Document Class</h2>
<h3>Downloads and Installation</h3>
<p>All of the files needed to use the class (including xetexCV.cls, examples and supporting files) can be found <a href="http://www.oak-tree.us/stuff/LyX/xetexCV.zip">here</a>.  To install, copy to an appropriate folder in your tex path and refresh the tex database:</p>
<blockquote><p>sudo texhash</p></blockquote>
<h4>Package Requirements</h4>
<ul>
<li>XeTeX Typesetting Engine.  For users of Mac OS X and Windows, XeTeX is included in the MacTeX and MikTeX distributions (respectively).  Users of Linux, however, will need to install the texlive-xetex package</li>
<li>Fontspec package (included with MacTeX, MikTeX or texlive-xetex)</li>
<li>OpenType Expert Fonts.  By default, the document class uses <a href="http://www.josbuivenga.demon.nl/fontin.html">Fontin</a> and <a href="http://www.josbuivenga.demon.nl/fontinsans.html">Fontin sans</a>.</li>
</ul>
<h3>Curiculum Vitae Examples</h3>
<ul>
<li>Albert Einstein.  <a href="http://www.oak-tree.us/stuff/LyX/xetexCV/example-xetexCV.tex">LaTeX Source</a>, <a href="http://www.oak-tree.us/stuff/LyX/xetexCV/example-xetexCV.pdf">PDF Output</a></li>
<li>Isaac Newton.  <a href="http://www.oak-tree.us/stuff/LyX/xetexCV/example2-xetexCV.tex">LaTeX Source</a>, <a href="http://www.oak-tree.us/stuff/LyX/xetexCV/example2-xetexCV.pdf">PDF Output</a></li>
</ul>
<h3>xetexCV Class Usage</h3>
<p>To use the xetexCV class, there are a few important macros.  These include:</p>
<ul>
<li>The \makecvtitle macro and title block tags</li>
<li>The \cvsection and \cvsubsection macros</li>
<li>The \years tag for hanging notes</li>
</ul>
<h4>\makecvtitle</h4>
<p>The title block is created through the use of the \makecvtitle macro.  The name, institution and contact information are all specified by descriptive tags.  The example below shows what these are and how they are used:</p>
<blockquote><p>\documentclass{xetexCV}</p>
<p>\cvname{Albert Einstein}<br />
\cvimage{Albert-Einstein.jpg}<br />
\institution{Institute for Advanced Study}</p>
<p>\contactaddress{Einstein Drive\\<br />
Princeton, New Jersey 08450<br />
United States of America}</p>
<p>\phone number{609-734-8000}<br />
\faxnumber{609-924-8399}<br />
\email{a.einstein@ias.edu}<br />
\website{http://www.ias.edu/spfeatures/einstein}</p>
<p><img style="margin: 0px 0px 0px 15px; display: inline; border-width: 0px;" title="image" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/image4.png" border="0" alt="image" width="335" height="322" align="right" />\makecvtitle</p></blockquote>
<h4>\cvsection and \cvsubsection</h4>
<p>Sections and subsections can be added through the \cvsection{section name} and \cvsubsection{subsection name} macros.  The following codeblock creates the “Publications” section header and “Peer Reviewed Journals” subhead seen at right:</p>
<blockquote><p>\cvsection{Publications}<br />
\cvsubsection{Journal Articles}</p>
<p>…</p></blockquote>
<h4>Hanging Notes</h4>
<p>Hanging notes can be specified through the use of the \years macro.  This is helpful for typesetting education, employment history, and awards.  The following example produces the output seen below:</p>
<blockquote><p>\cvsection{Appointments Held}</p>
<p>University of Bern \years{1908-1911}\\<br />
University of Zurich \years{1911-1912}\\<br />
Charles University of Prague \years{1912-1914}\\<br />
Prussian Academy of Sciences, Berlin \years{1914-1932}\\<br />
University of Leiden \years{1920-1930}\\<br />
Institute for Advanced Study, Princeton \years{1932-1955}</p></blockquote>
<p><img style="display: inline; border-width: 0px;" title="image" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/image5.png" border="0" alt="image" width="431" height="160" /></p>
<h4>Choosing a Font</h4>
<p>To change the font, use the \fontspec package and appropriate \settext macro.  The example below shows how to change the main font and sans font to Warnock Pro and Frutiger LT Std (commercial fonts available as part of the Adobe Font Folio 11):</p>
<blockquote><p>\setmainfont[Ligatures={Common}, Numbers={OldStyle}]{Warnock Pro}<br />
\setsansfont{Frutiger LT Std}</p></blockquote>
<p>All of the examples shown here were typeset with Warner Pro and Frutiger.  By default, however, the document class uses <a href="http://www.josbuivenga.demon.nl/fontin.html">Fontin</a> and <a href="http://www.josbuivenga.demon.nl/fontinsans.html">Fontin sans</a>, which are available as free downloads.  Another excellent font alternative is <a href="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;item_id=Gentium_basic">Gentium Basic</a>.  Because XeTeX can use OpenType fonts, however, you can use any font installed on your computer.</p>
<h3>Other Features</h3>
<ul>
<li>Font features such as ligatures and glyph variants can be accessed through the <a href="http://www.ctan.org/tex-archive/help/Catalogue/entries/fontspec.html">fontspec</a> package</li>
<li>The examples and class are unicode compatible.  This means means that you can write in Chinese, Cyrillic or Greek without additional packages</li>
</ul>
<p>______________________________________________________</p>
<h2>Acknowledgements and Further Reading</h2>
<p>As noted above, this document class is based on a <a href="http://nitens.org/taraborelli/cvtex">similar example</a> available from <a href="http://nitens.org/taraborelli/home">Dario Taraborelli’s website</a>.  Other examples of how to create a resume or CV are available from <a href="http://matthewm.boedicker.org/code/latex_resume_tips.php">Matthew Boedicker</a> and <a href="http://linux.dsplabs.com.au/resume-writing-example-latex-template-linux-curriculum-vitae-professional-cv-layout-format-text-p54/">Kamil Wójcicki</a>.<br />
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2" rel="bookmark" title="November 30, 2009">Typeset Your Curriculum Vitae &ndash; Part 2: Extending and Customizing an Existing Document Class</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles" rel="bookmark" title="November 14, 2009">Customizing LyX: Character Styles and the LyX Local Layout</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/12/02/latex-cv-part3" rel="bookmark" title="December 2, 2009">Typeset Your Curriculum Vitae &ndash; Part 3: Automatically Generate a List of Publications</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/12/05/the-win32-api-and-simplicity" rel="bookmark" title="December 5, 2008">The Win32 API and Simplicity</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/12/14/wpf-svg-xaml-part2" rel="bookmark" title="December 14, 2008">WPF – SVG Graphics and XAML – Part 2</a></li>
</ul>
<p><!-- Similar Posts took 15.112 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1">Typeset Your Curriculum Vitae &ndash; Part 1: The xetexCV Document Class</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Customizing LyX: Character Styles and the LyX Local Layout</title>
		<link>http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles</link>
		<comments>http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles#comments</comments>
		<pubDate>Sat, 14 Nov 2009 21:00:00 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Writing and Literature]]></category>
		<category><![CDATA[rapidBOOKS]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[LyX]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/?p=1315</guid>
		<description><![CDATA[Imagine for a minute that you’re writing a book or technical manual.  Let’s say it’s a book on technology, maybe the open source tools used for scientific writing (to randomly pick an example).  As you write this book, you realize that you need some way to cue the reader into different parts of the text.
For [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles">Customizing LyX: Character Styles and the LyX Local Layout</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 15px 10px 0px;" src="http://www.giovanniferranti.it/images/lyx_logo.png" alt="" align="left" />Imagine for a minute that you’re writing a book or technical manual.  Let’s say it’s a book on technology, maybe the open source tools used for scientific writing (to randomly pick an example).  As you write this book, you realize that you need some way to cue the reader into different parts of the text.</p>
<p>For instance, you might want all definitions to appear in bolded text so that a reader pick out key terms quickly.  Or you might want code examples to appear in a different font than the regular text, again, so they’re easy to find.  What’s the best way to do this?</p>
<p>Sure, you could just bold the definitions, or manually change the font for the code examples.  But that’s painful!  Changing typeface and size every time that you have a section of code will eventually result in a lot of lost time.  Moreover, you might make a mistake, which destroys your consistency and makes your writing look unprofessional.  There must be a better way!</p>
<p>Thankfully, there is.  It’s through the consistent use of styles.</p>
<p><span id="more-1315"></span></p>
<h2>Styles Defined</h2>
<p>A style is a collection of formatting commands with a meaningful name.  Examples in Microsoft Word include “Heading 1”, “Body”, and “Figure”.  When you use them consistently, styles allow for “logical markup” of a document.  That is to say, you tell the computer what the section, paragraph or text corresponds to and then it handles the formatting.  For this reason, styles form the basis of the “What You See Is What You Mean (WYSIWYM)” philosophy used by LyX and other “document processors&#8221;.</p>
<p>There are three major types of styles: section styles, paragraph styles and character styles.  You are likely familiar with section and paragraph styles, as they populate the main drop down box of LyX’s main toolbar. The most common section styles are: chapter, section, subsection.  Examples of paragraph styles include: standard text, quotations, and code.  But the third main type of style, “a character style” may be a stranger.  It isn’t as common as it’s two older brethren and easier to lose track of; which is a huge shame, because it is just as important.</p>
<p>Character styles, as the name implies, work on individual characters <em>within</em> the text of a paragraph.  To extend the examples given in the introduction, the most efficient way to bold a definition would be to use a pre-defined character style called “definition”.  Ditto for an in-paragraph sample of code.</p>
<p>“Now wait a minute,” you’re probably saying, “I’m not sure that I follow the difference between character styles and other text formatting commands like ‘bold’, ‘italic’, or ‘underline’!”</p>
<p>That is perfectly alright, the distinction can be a bit hazy.  Nonetheless, it is still key in understanding the difference between “logical markup” and formatting.  Let me see if I can clear it up.</p>
<p>As described above, a style is typically used to describe what a part of the document is, rather than how it should look.  Subsequently, you are unlikely to see a style called “bold”, “italic” or “center”.  Those terms describe how the text should appear; which is to say, they are formatting commands.  Bolded text uses a heavier line stroke and centered text appears in the middle of the page.  A style, on the other hand, is used to describe a “definition”.  You then associate that style with how you want “definition” to look.  It could be numbered, bolded and centered; or it might be larger than the surrounding text and italicized.  The appearance is determined by a “style sheet”.</p>
<p><em>Note: Since the use and customization of section and paragraph styles is well explained in the LyX help documentation, this article will focus on character styles.</em></p>
<h2>Using Character Styles in LyX</h2>
<p>LyX provides some common character styles through the use of its “Logical Markup” module.  These include styles for nouns, emphasizing text, and code – which may be useful for highlighting filenames or programming syntax within the body of the paragraph.</p>
<p>The character styles are not loaded by default, however.  Instead, they come as part of an optional module.  You can use them by going to the “<strong>Document-&gt;Settings-&gt;Modules”</strong> pane and adding “<strong>Logical Markup</strong>” to your document.</p>
<p><img style="display: inline; border-width: 0px;" title="LyX supports several character styles (including noun, emphasize, strong and code) through the &quot;Logical Markup&quot; module." src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/LyXModules.png" border="0" alt="LyX supports several character styles (including noun, emphasize, strong and code) through the &quot;Logical Markup&quot; module." width="600" height="436" /></p>
<p>Once the “<strong>Logical Markup</strong>” module has been loaded, you  use of apply a particular character style through the “<strong>Edit-&gt;Text Styles</strong>” menu, or by first highlighting a block of text and selecting “Text Style” from the right click context menu.</p>
<p><em>Note: The emphasize style is distinct in that it can also be toggled on and off through the “Ctrl+E” keyboard shortcut.</em></p>
<p><img style="display: inline; border-width: 0px;" title="You can add a character style to a document either through the &quot;Edit&quot; menu, or by selecting a block of text and then right clicking on it." src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/LyXCharacterStylesRightClick.png" border="0" alt="You can add a character style to a document either through the &quot;Edit&quot; menu, or by selecting a block of text and then right clicking on it." width="600" height="380" /></p>
<p>After you’ve formatted a block of text with character style, it will appear differently from the surrounding text.  It will not only use a different font, but will also be surrounded by a set of hash marks.  The example below shows a document with two instances of the “Code” character style.  Optionally, character styles have a label which you be toggled on and off.  The screen shot below shows what this looks like.  The first instance, “TEXMFLOCAL”, has the label toggled off while the instance, “/var/lib/texmf/tex/latex”, shows the same character style with the label visible.</p>
<p><img style="display: inline; border-width: 0px;" title="This example shows two blocks of text formatted with the &quot;code&quot; character style. " src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/image1.png" border="0" alt="This example shows two blocks of text formatted with the &quot;code&quot; character style. " width="581" height="79" /></p>
<h2>Customizing Character Styles</h2>
<p>But what if you need access to other character styles?  Perhaps you’re writing a novel and would like to have a dedicated style for specifying when a character is talking to himself (called internal dialogue)?  Or you’d finally get back to working on your textbook with bolded definitions.  Such styles aren’t defined by the “Logical Markup” module, or any module at all for that matter.  Nor are they likely to be used so frequently that it is worth trying to modify the built-in modules or create a new one to support them.</p>
<p>Luckily, there is a solution to this problem.  In the <a href="http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih">first article in this series</a>, I looked at how to create a template for an NIH grant proposal from an existing LaTeX document class.  In that article, the secret to using the “nih.cls” document class lay in its corresponding LyX layout file (&#8220;nih.layout&#8221;).  Also in that article, I explained how LyX layout files primarily contain information concerned with on-screen presentation.</p>
<p><em>Note: For more detail, see: <a href="http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih#bigpicture">Customizing LyX – Part 1, Understanding the Big Picture</a>.</em></p>
<p>As a first approximation, what I said in that article is mostly true.  But, naturally, the reality is more complex.  LyX layout files can also contain information about character styles.  This includes both information about how they should be presented on-screen and how the underlying LaTeX typesetting language should process them.  Moreover, that information can either live in a global layout file (like nih.layout) or in the .lyx file you are working on (meaning that it can be conveniently added to a template).  In the remainder of this post, I will show how to create custom character styles by modifying the local layout.</p>
<h3>Example: Creating a “User Interface” Character Style</h3>
<p>As you might have guessed, the example introduced above isn’t so random.  For the past several weeks, I have been working on a book about scientific and technical writing.  The book will cover a number of programs and technologies including <a href="http://www.lyx.org/">LyX</a>, LaTeX, BibTeX, <a href="http://www.mendeley.com/">Mendeley</a>, <a href="http://www.scribus.net/">Scribus</a> and <a href="http://kile.sourceforge.net/">Kile</a>.</p>
<p>Since it is geared to a somewhat technical audience, it includes both instructions on how to use program&#8217;s UI and code samples.  For my code examples, I can use the internal LyX character style.  But I’ve found that I would also like to highlight references to the UI.  There isn&#8217;t a pre-defined UI character style.</p>
<p>Fortunately, I not the first person writing a book with UI references.  If you look at the LyX user manuals, you will see that the LyX documentation team created a character style specifically for highlighting LyX menu commands.  It uses a sans serif font and I think it is rather attractive.  But, how do you go about adding it to another document?</p>
<p>It’s actually pretty straightforward:</p>
<ol>
<li>Since there isn’t a UI to modify the local layout in LyX, open your document in a text editor</li>
<li>Create a local_layout section</li>
<li>Define how you want your character style to appear (both on screen and in the LaTeX output)</li>
</ol>
<h4>Step 1: Open your document in a text editor</h4>
<p>As explained above, custom character styles live in the local_layout section (enclosed with the “\begin_local_layout” and “\end_local_layout”) near the beginning of a LyX document.  Unfortunately, there is not currently a user interface pane within LyX to edit this section.  As a result, open the document in your favorite text editor.  The figure shows what this looks like for a file called “Book Chapter – Technical.lyx”.</p>
<p><em>Note: There is nothing to be afraid of, LyX’s file format is relatively easy to parse; even for human beings.</em></p>
<p><img style="display: inline; border-width: 0px;" title="A sample LyX document for a technical book chapter." src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/LyXCharacterStylesKateExample.png" border="0" alt="A sample LyX document for a technical book chapter." width="600" height="360" /></p>
<p>“Book Chapter – Technical.lyx” has three major sections:</p>
<ul>
<li>
<div>Document: enclosed by “\begin_document” and “\end_document” (off-screen)</div>
</li>
<li>
<div>LaTeX Preamble: enclosed by “\begin_preamble” and “\end_preamble”</div>
</li>
<li>
<div>Local Layout: enclosed by “\begin_local_layout” and “end_local_layout” (off-screen)</div>
</li>
</ul>
<p>I have added some text to the LateX preamble in this example.  The command tells LyX to use the “Latin Modern” fonts instead of the LaTeX default fonts, which I find to be rather ugly:</p>
<blockquote><p>% set fonts for nicer pdf view<br />
\IfFileExists{\lmodern.sty}{\usepackage{lmodern}}{}</p></blockquote>
<p><!--adsensestart--></p>
<h4>Step 2: Create a Local Layout Section</h4>
<p>If it doesn’t already exist, insert a local_layout section.  For organizational purposes, I like for it to appear following the preamble.  Below is the full text of the layout section for “Book Chapter – Technical.lyx”:</p>
<blockquote><p>\begin_local_layout<br />
    Format 7<br />
        InsetLayout    CharStyle:UserInterface<br />
        LyxType               charstyle<br />
        LabelString           userinterface<br />
        LatexType             command<br />
        LatexName             userinterface<br />
        Font<br />
            Family              Sans<br />
        EndFont<br />
        Preamble<br />
            \newcommand*{\userinterface}[1]{{\sffamily #1}}<br />
        EndPreamble<br />
    End<br />
\end_local_layout</p></blockquote>
<p>In the example, there is some template code (also known as boilerplate), and values that you can modify in order to better customize the appearance of your character style.  The boilerplate includes “Format 7”, LyXType      charstyle”, and “LatexType    command”.  These values will be constant for all character styles, but everything else can be customized.</p>
<h4>Step 3: Define how you want the character style to look</h4>
<p>When customizing the appearance of your character style, the first thing to do is to decide what you want to call your style.  This is done by modifying the “InsetLayout” argument.  Since my book project covers many different programs, I’ve decided that I will use this character style for any reference to the ui.  That includes menus, button names, or dialog box text.  As a result, I’ve called it “CharStyle:UserInterface”.  This is what appears when I go to the “<strong>Edit-&gt;Text Style</strong>” menu and in the dialog box that appears when I right click.</p>
<p>Next, you need to decide what you would like the “label” to be.  The label appears when the “show label” option is toggled on.  In this example, it’s “userinterface”.</p>
<p>I also need to associate my character style with a LaTeX name.  Again, I’ve opted to call it “userinterface”.</p>
<p>The next block of options, “Font”, specify how the text will look on screen.  You could be extremely ornate specifying text size, typeface, and  font weight.  In this case, however, I want to go with something simple.  I&#8217;m just going to use the “Sans” font family for on-screen to display.  Boring, but functional.</p>
<p><em>Note: A complete list of available options can be found in the LyX help documentation: “Customizing LyX: Features for the Advanced User”.  See section 5.3.6.</em></p>
<p>The Preamble block tells LaTeX how it should process the character style.  Again, I don’t want to do anything fancy, so I&#8217;m just going to use the “Sans Serif” font family.  This is accomplished by the following LaTeX command:</p>
<blockquote><p>\newcommand*{\userinterface}[1]{{\\sffamily #1}}</p></blockquote>
<p><!--adsensestop--></p>
<p>The “\newcommand” syntax tells LaTeX about my custom style, while everything after is specifying the text and the font family. “\ssfamily” refers to the sans serif font family.  Other options I could have used include the roman font family (“\rmfamily”), the typewriter family (“\ttfamily”), medium text (“\mdseries”), italic (&#8220;\itshape”), or small caps (“\scshape”).</p>
<p><em>Note: For a more complete list with sample output, see </em><a href="http://theoval.cmp.uea.ac.uk/~nlct/latex/novices/fontstyle.html"><em>here</em></a><em> (Table 4.5).</em></p>
<p>When finished, save your document and exit the text editor.  When you load the document back into LyX, your style should appear in the “<strong>Edit-&gt;Text Style</strong>” menu.  The screenshot below shows how the “User Interface” character style looks in use.</p>
<p><img style="display: inline; border-width: 0px;" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/image2.png" border="0" alt="" width="584" height="123" /></p>
<h2>Miscellaneous Things and Conclusion</h2>
<p>Like the example in the previous article, I like to save documents with custom character styles as templates.  This means that I can create additional documents very easily by going to the “<strong>File”</strong> menu and choosing the “<strong>New from template”</strong> option.  The new document will have all of the template’s settings, including the LaTeX preamble and the custom character styles.  It also means that I can keep separate templates for technical documents, scientific articles, book chapters and fiction.  Each has character styles defined that make sense for that type of publication.</p>
<p>Character styles make writing long documents much easier.  It’s so much better to label a piece of text as “code” or “userinterface” than it is to remember the exact formatting specifications.  Moreover, it makes the document more consistent and provides an easy path to change formatting at a later date.  As a first time author, I have no complaints about anything that makes my writing easier, more organized, and flexible.<br />
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2" rel="bookmark" title="November 30, 2009">Typeset Your Curriculum Vitae &ndash; Part 2: Extending and Customizing an Existing Document Class</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1" rel="bookmark" title="November 25, 2009">Typeset Your Curriculum Vitae &ndash; Part 1: The xetexCV Document Class</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/12/11/ironpython-wpf-tutorials" rel="bookmark" title="December 11, 2008">IronPython – Windows Presentation Foundation Tutorials</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/07/30/time-traveler" rel="bookmark" title="July 30, 2009">A Better Previous Versions: Time Traveler</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/05/09/barn-architecture" rel="bookmark" title="May 9, 2009">Barn Architecture</a></li>
</ul>
<p><!-- Similar Posts took 13.335 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles">Customizing LyX: Character Styles and the LyX Local Layout</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Patronage in the Digital Age</title>
		<link>http://www.oak-tree.us/blog/index.php/2009/11/10/digital-patronage</link>
		<comments>http://www.oak-tree.us/blog/index.php/2009/11/10/digital-patronage#comments</comments>
		<pubDate>Tue, 10 Nov 2009 18:20:22 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[Writing and Literature]]></category>
		<category><![CDATA[Digital Lifestyle]]></category>
		<category><![CDATA[Patronage]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/index.php/2009/11/10/patronage-in-the-digital-age</guid>
		<description><![CDATA[As wonderful as the internet may be, it causes a lot of problems.  For starters, it is putting newspapers out of business.  It’s also radically changing how artists, writers and musicians make their living.  And in case you weren’t paying attention, it’s starting to look like a crisis.
Different groups have responded to the impending collapse [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/10/digital-patronage">Patronage in the Digital Age</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 15px 15px 0px; display: inline" src="http://blog.echovar.com/wp-content/uploads/2008/08/money-in-hat.jpg" alt="" align="left" />As wonderful as the internet may be, it causes a lot of problems.  For starters, it is putting newspapers out of business.  It’s also radically changing how artists, writers and musicians make their living.  And in case you <a href="http://www.newspaperdeathwatch.com/">weren’t paying attention</a>, it’s starting to look like a crisis.</p>
<p>Different groups have responded to the impending collapse of publishing in different ways.  Some writers sell sponsorships for their books and then offer an acknowledgement when it is printed.  Many musicians have adopted the self-publishing and distribution tools long available to authors, leading to experiments like <a href="https://www.createspace.com/">Amazon’s CreateSpace</a>.  And there are those who have gone the route of directly asking for contributions and donations to support their work; the digital equivalent of a performer passing the hat, you might say.</p>
<p>The problem is that some of these experiments are running head-long into good old American sensibility and propriety.  There are even people saying that some of the new content generation schemes are inappropriate; including that old bastion of American common sense, Ms. Manners.  Manners has even gone so far as to say that for a novelist to <a href="http://www.washingtonpost.com/wp-dyn/content/article/2009/10/20/AR2009102003399.html?nav=rss_opinion/columns">ask for a contribution is the same as begging, or panhandling</a>.</p>
<p>She says it like it’s a bad thing.  The simple truth is that artists, musicians and storytellers have long been beggars.  The content industry of the 20 industry is a tremendously new invention, and as I noted above, it’s running into another time tested American value: frugality and a love of private property.</p>
<p>In fact, there seems to be this attitude that, “After I’ve purchased the novel or CD, I own the work and ideas.  I’ve invested in its creation.”   This little nugget rears it’s head most commonly when discussing music.  Even the great Steve Jobs has been known to say, “People don’t want to rent music, they want to own it.”</p>
<p>Except … that’s bullshit.  An interesting idea, or a well written book, or a beautiful piece of music isn’t like paying for a hamburger.  You aren’t reimbursing someone for providing you a good or service.  And I’m frankly shocked that anyone would think that Beethoven’s 9th Symphony or Antonio Vivaldi’s “Four Seasons” is only worth the price that paid on iTunes.  The true worth is far greater than the price of admission.  Would you seriously think yourself exploited for buying a second recording, or for paying to hear it at a concert?</p>
<p>Of course, that’s when people can be bothered to pay for content at all.  An exacerbating factor is that many people expect ideas to be free or very inexpensive.  How many times have you heard a variant of this argument, “I would buy more music (or books) if it wasn’t so expensive!  Nine dollars for an album is just out of my budget!”  Ironically, these same people don’t blanch at dropping hundreds or thousands of dollars for an iPod or iPhone.</p>
<p>While bad, this attitude can further devolve into something much more poisonous: “The artist <em>owes me</em> for reading, viewing or listening to their work.  My piracy is helpful!  After all, I am promoting them and making them famous!”  But being famous doesn’t pay the bills.  There have been many authors, artists or musicians who lived in squalor while enjoying enormous fame and prestige.</p>
<p>A music or literature pirate might even justify their position by saying, “I’m sticking it to the music industry (or publishing industry), they’re a bunch of greedy pigs!”  And the pirate might have a point, if he weren’t doing far more damage to the creator of the content than to its distributor.  Big businesses like record labels and big publishing houses don’t respond to that attitude by lowering prices or dealing fairly with their customers.  Rather, they become more draconian in how that content is disseminated.  Ever wonder why <a href="http://en.wikipedia.org/wiki/Digital_rights_management">Digital Rights Management (DRM)</a> and related technologies were born?  It might just have something to do with the <a href="http://en.wikipedia.org/wiki/Napster">American</a> <a href="http://torrentfreak.com/">sense of entitlement</a>.</p>
<p>Clearly, something needs to change.  Artists and musicians can continue to experiment with different pricing and distributions schemes, but I remain rather unconvinced that it will have a lasting effect.  What we really need is a return to the <a href="http://en.wikipedia.org/wiki/Patronage">patronage system of old</a>, with a few major modifications.  Certainly, artists should continue to sell recordings, books and other tangible goods.  But the public should also undergo a shift in our attitudes and ideas about what the arts are and how we support them.  That might mean that we transform our understanding of what a “donation” is.</p>
<p>When buying a book or donating to a writer, it’s foolish to think that you are somehow providing a fair compensation for the ideas and entertainment that you receive.  Instead, it is much healthier to view your contribution as a support so that the artist can continue to create future content.  This notion actually fits in pretty well with the concept of <a href="http://en.wikipedia.org/wiki/Fair_trade">Fair Trade</a>.</p>
<p>We also need to understand that the price we pay for a book or CD isn’t about the value of the materials.  <a href="http://www.directtextbook.com/">Textbooks</a> aren’t expensive because they are printed on beautiful paper with artwork and in color; they’re expensive because researching and writing their content is hard.  For example, the “Contributors and Reviewers” page for Gray’s Anatomy (the anatomical guide, not the television show) lists sixty different authors and content reviewers, though only the editor and chief is credited on the cover.</p>
<p>Except, how do you actually bring about the needed shift in attitudes and culture?</p>
<p>…</p>
<p>That’s an excellent question, and I’m not sure that I can offer any insight.  The <a href="http://www.osborne-conant.org/email2/euro-stats-arts-funding.htm">Europeans</a> have tried to shape public perception through generous subsidies.  But <a href="http://reason.com/blog/2009/11/10/get-over-that-outdated-fear-of">direct governmental support of news agencies and publishers</a> is controversial for good reason.  As a cure, it might even be worse than the illness.  If you’ve got any ideas, let’s hear ‘em!<br />
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/06/16/dark-times" rel="bookmark" title="June 16, 2009">Dark Times for the Book Publishing Business</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/07/10/personal-website" rel="bookmark" title="July 10, 2009">Why Bother With a Personal Website?</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/03/03/of-artists-and-artisans" rel="bookmark" title="March 3, 2009">Of Artists and Artisans</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/05/05/save-your-show" rel="bookmark" title="May 5, 2009">Save Your Favorite Show By Watching Online</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/01/12/brisingr-short" rel="bookmark" title="January 12, 2009">Literary Sins &#8211; A Review of Christopher Paolini’s Brisingr</a></li>
</ul>
<p><!-- Similar Posts took 11.529 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/10/digital-patronage">Patronage in the Digital Age</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2009/11/10/digital-patronage/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Statistics With R &#8211; Part 1: An Old Dog Learns New Computing Tricks</title>
		<link>http://www.oak-tree.us/blog/index.php/2009/11/08/r-stats-part1</link>
		<comments>http://www.oak-tree.us/blog/index.php/2009/11/08/r-stats-part1#comments</comments>
		<pubDate>Mon, 09 Nov 2009 02:21:20 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Science and Medicine]]></category>
		<category><![CDATA[rapidBOOKS]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Scientific Computing]]></category>
		<category><![CDATA[Statistics]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/index.php/2009/11/08/statistics-with-r-part-1-an-old-dog-learns-new-computing-tricks</guid>
		<description><![CDATA[When doing math or numerical analysis, the knowledge of the technique is far too often tied to the tool performing the calculation.  Consider an engineer whose understanding of the Fast Fourier transformation is inseparably tied to the fft function in Matlab.  Of course this hypothetical engineer understands what the results mean (more or less) but [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/08/r-stats-part1">Statistics With R &ndash; Part 1: An Old Dog Learns New Computing Tricks</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 10px 0px 0px; display: inline;" src="http://www.wmo.int/wcc3/images/statistics.jpg" alt="" align="left" />When doing math or numerical analysis, the knowledge of the technique is far too often tied to the tool performing the calculation.  Consider an engineer whose understanding of the <a href="http://en.wikipedia.org/wiki/Fast_Fourier_transform">Fast Fourier transformation</a> is inseparably tied to the fft function in Matlab.  Of course this hypothetical engineer understands what the results mean (more or less) but may not be able to duplicate his analysis if Matlab were taken away.</p>
<p>In most cases, it is likely that no deeper understanding will be required.  But what happens if the computer makes a mistake?  Or the program becomes unavailable?  Both situations are entirely possible.  Computer algorithms aren’t perfect and occasionally arrive at results make little sense; and hardware has been known to fail.</p>
<p><!--adsensestart--></p>
<p>When the engineer understands how the computer arrived at the answer, however, he can recognize, understand, and ultimately correct those cases where the results are unexpected.  This is an important reality check that can prevent costly disasters later down the line.  Or, if the hardware is unavailable, he can use an alternative tool or software package to duplicate the analysis.</p>
<p>But while such a situation can arise with any type of numerical software, it’s most likely to happen to users of a statistical package.  I find this extremely ironic since a proper understanding of statistics is essential to live in the modern world.  (Much more so than an understanding of the Fast Fourier transform, at any rate.)  The rules of probability, the normal curve, correlation, and multivariate statistics can have a direct impact on how we live our lives.  They are used in making important decisions in finance, medicine, science and government.  A misunderstanding of stats and the methods of science (from which statistics is inseparable), underlies the most divisive issues of our day: abortion, stem cell research, and global warming.</p>
<p>Moreover, neither side has a monopoly on ignorance or misunderstanding.  People fail to distinguish between correlation and causality, or insist in using the word “average” as a slur.  Nearly as bad are those that – like the hypothetical engineer described above – only understand statistics within the narrow context of their stats package.  Casual statisticians are nearly as dangerous as the wholly uninformed.</p>
<p>The <a href="http://www.spss.com/">Statistical Package for the Social Sciences (SPSS)</a>, is one of the biggest perpetrators of this crisis.  Which is hugely ironic, because I happen to love SPSS.  SPSS is probably the first statistical package that has placed advanced statistical methods within the grasp of the novice user.  I’ve been a happy user for nearly a decade (ever since I was introduced to the program in high school).  But there is no doubt that I’ve come to understand statistics within the context of SPSS and its GUI.</p>
<p>Please don’t misunderstand me, I have a pretty good grasp of basic statistics.  I can sling probability with the best of them and take relish in describing when to use the Fischer Exact test instead of a Chi-Square; but advanced statistics are a completely different matter.  Advanced stats <em>scare</em> me.  I can certainly use these more complicated methods.  I’ve analyzed and written about multi-variate models and even ventured into Analysis of Variance (ANOVA).  But I have to rely on SPSS and the aid of my institution’s biostatistician to help me recognize when there is a problem.</p>
<p>Which is why, in a time of tight budgets, losing the institution’s SPSS license has been a crushing blow to my productivity.  (Whoever made that decision should be hauled out and shot!)  Because I don’t have my statistics software any more, there are certain aspects of my job that are much more difficult to do.  And unfortunately, there is only logical conclusion to draw: I’ve become a victim of the statistical ease of SPSS.</p>
<p><!--adsensestop--><span id="more-1299"></span></p>
<h2>Open Source Alternatives</h2>
<p>I went through a <a href="http://www.oak-tree.us/blog/index.php/2008/11/18/ironpython-part1">similar experience about a year ago</a>.  At the time, I had become increasingly frustrated with the restrictions, licensing fees, and limitations of the <a href="http://www.mathworks.com/">Matlab</a> technical computing language.  After one particularly infuriating meeting, I decided that I had had enough and was going to do something about it.  In the months that followed, I spoke with friends and colleagues, and experimented with every alternative I could get my hands on.  I looked at Octave (the “Open Source Matlab”) and Ruby, before eventually settling on a combination of Python and PyQt to meet my needs.  The result of these changes has been tremendously positive.  Python is both easier to use and far more powerful than Matlab could ever hope to be.  Not only am I happier and more productive, but so are those who work with me.</p>
<p>It is, therefore, logical that when I lost my statistical language of choice that I would look to open source to provide an alternative.  Fortunately, the Open Source community delivers not one alternative to SPSS, but two: Gnu PSPP and R.</p>
<h3><a href="http://www.gnu.org/software/pspp/"><img style="margin: 0px 20px 0px 0px; display: inline; border-width: 0px;" title="PSPP-Logo" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/PSPPLogo.png" border="0" alt="PSPP-Logo" width="125" height="136" align="left" />Gnu PSPP</a></h3>
<p>As the name implies, PSPP has one simple goal: to clone SPSS in every way that matters.  It can perform descriptive statistics, T-tests, linear regression and non-parametric tests.  It has an easy to easy to use and relatively intuitive GUI.  It can use SPSS syntax and read SPSS data files.  It supports an obscene number of variables and cases (about a billion).  It interoperates with Gnumeric and OpenOffice.  Finally, it’s fast.</p>
<p>Aside from its horribly ugly icon, PSPP would appear to deliver exactly what I want and need.  Except, you might have noticed that this article is titled “Statistics with R”, not “Statistics with PSPP”.  Obviously, I chose to go with the second alternative.  But why?</p>
<p>PSPP works as advertised.  I found it able to deal with nearly all of the old SPSS data files and syntax that I threw its way.  But, the program suffers from the problem of all clones everywhere: it’s greatest aspiration is to be a copy of something else.  That is to say, it seeks to be “Good Enough”,  and therein lies the problem, <a href="http://www.oak-tree.us/blog/index.php/2009/07/20/back-in-time1">I don’t want a tool that is good enough</a>.  I want to use excellent software, even if it’s different or requires me to learn new things.  Even if I have to pay for it.</p>
<p>I’m not trying to pick on or be unfair to PSPP.  It meets an important need in the free software landscape.  It just doesn’t fit in my with my desires or preferences very well.</p>
<h3><img style="margin: 10px 20px 10px 0px; display: inline;" src="http://www.r-project.org/Rlogo.jpg" border="0" alt="R logo" width="125" height="95" align="left" /><a href="http://www.r-project.org/index.html">The R Statistical Project</a></h3>
<p>This is where R steps into the picture.  Whereas PSPP is “<strong>aimed</strong> at statisticians, social scientists and students requiring fast convenient analysis of sampled data (emphasis added)”, R is the software that most statisticians actually use.  When I contacted the statistician at my institution to ask, “What statistical software should I use?  I’m looking at R and PSPP.”</p>
<p>He responded, “Oh that’s easy.  Use R.  There will be a learning curve, but it’s much more powerful and capable than even SPSS or SAS.”</p>
<p>As I’ve started to explore the feature set and available modules, it readily becomes apparent as to why.  R is a <em>huge</em> language.  There are thousands of packages that cover every type of statistics I’ve ever heard of, and many more I haven’t.</p>
<p>Even better, people have gone to great lengths to incorporate R into other tools.  It has a set of excellent python bindings and interoperates very well with LyX and LaTeX.  As just a single example, using the Sweave document class, you can use R to <em>easily</em> embed code in reports and other documents that need to be updated on a very frequent basis.  This allows for these publications to be generated on demand with the most recent data.  The only other place I’ve seen the equal to this feature is within the proprietary universe of Microsoft Office and SQL Server.</p>
<h2>Easing Into R</h2>
<p><a href="http://www.despair.com/"><img style="margin: 10px 0px 10px 20px; display: inline;" src="http://scottthong.files.wordpress.com/2007/10/agony.jpg" alt="" align="right" /></a>Indeed, if R can be said to have a major weakness, it would be that it is <em>too</em> full featured and capable. Particularly for someone who is a statistical novice.  The sheer number of packages and options available is absolutely overwhelming.  Moreover, the reference material is distributed in nature.  Like other open source tools, you <em>can</em> find answers to your questions; but you need to be intelligent about how you ask them.</p>
<p>As I’ve explored R, there have been quite a few painful moments.  This isn’t because R is more difficult than SPSS or SAS, but rather because it is tremendously different.  As an example, consider the differences in how the programs work with data.</p>
<p>Both SPSS and SAS use one main data structure, the data set.  A data set can be thought of as a big spreadsheet where the variable names are kept in columns and the individual observations are kept in rows (SPSS calls them cases).  In contrast, R uses may types of data structures.  It has an a two dimensional array that is similar to the data set, but it is possible to use one dimensional arrays of data (similar to vectors), or three dimensional arrays (which might contain extremely complex data).  The added options raise very complicated questions: What sorts of statistical calculations are done on a three dimensional arrays?  Why are they necessary?  How do I need to code my data so that I can take advantage of R’s advanced features?</p>
<p>Those aren’t issues that a user of SPSS or SAS even needs to consider.  But with R, they present themselves before you even begin to use the program; and there is no centralized source of information to help you figure out the answers.  The result of too many options and too little information is unproductive agony.</p>
<h2>Series Introduction</h2>
<p>Which is why I decided to write this series.  R does some spectacular things, it is excellent software.  But there are some things you need to know before using it.  Here are just a few examples:</p>
<ul>
<li>What user interfaces are available for R and which should you use?</li>
<li>How can you use R to summarize data and do basic comparisons?</li>
<li>How does R handle moderately advanced statistics like one-way ANOVA and non-parametric tests?  What about mult-variate statistics and regression analysis?</li>
<li>How does R work with other programs?  How can you format your output into publication quality figures?</li>
<li>What support does LyX and LaTeX offer for users of R?</li>
</ul>
<p>The purposes of these articles are to address the concerns of the novice statistician or scientist.  I will try and avoid jargon and other indecipherable terms.  I will ensure that the examples are interesting and relevant.  But most importantly, I will try and to help build a deeper statistical foundation.  I know exactly what it feels like to be the “hypothetical” engineer who has become too reliant on his tools.  As long as the tool is nearby, you’re fine.  But when that tool is taken from you, be prepared for a world of hurt.</p>
<p>Until fairly recently, I’ve been in that world of hurt.  You might just say that these articles are my way of explaining how I got out.<br />
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/07/20/back-in-time1" rel="bookmark" title="July 20, 2009">Back In Time (Part 1): Linux Backup Made Easy</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/10/05/install-timedrive-ubuntu" rel="bookmark" title="October 5, 2009">Install Time Drive On Ubuntu and Other Debian Linux Distributions</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/05/12/pyqt-mac" rel="bookmark" title="May 12, 2009">Installation of PyQt on Mac OS X</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/12/23/iphone-quality" rel="bookmark" title="December 23, 2008">The iPhone App Store and Software Quality: A User’s Perspective</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2" rel="bookmark" title="November 30, 2009">Typeset Your Curriculum Vitae &ndash; Part 2: Extending and Customizing an Existing Document Class</a></li>
</ul>
<p><!-- Similar Posts took 21.854 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/08/r-stats-part1">Statistics With R &ndash; Part 1: An Old Dog Learns New Computing Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2009/11/08/r-stats-part1/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Customizing LyX: Create an NIH Grant Proposal Template</title>
		<link>http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih</link>
		<comments>http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih#comments</comments>
		<pubDate>Mon, 02 Nov 2009 22:21:54 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Writing and Literature]]></category>
		<category><![CDATA[rapidBOOKS]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[LyX]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/?p=1291</guid>
		<description><![CDATA[LyX is a wonderful writing program.  It’s easy to use and produces beautifully typeset output.  More importantly, though, it lets an author focus on the content and structure of his writing; rather than the formatting.  It isn’t so easy to customize, though, which limits its usefulness in a big way.  What if you need to [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih">Customizing LyX: Create an NIH Grant Proposal Template</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 20px 0px 0px; display: inline;" src="http://www.giovanniferranti.it/images/lyx_logo.png" alt="" align="left" />LyX is a wonderful writing program.  It’s easy to use and produces beautifully typeset output.  More importantly, though, it lets an author focus on the content and structure of his writing; rather than the formatting.  It isn’t so easy to customize, though, which limits its usefulness in a big way.  What if you need to create a new layout or take advantage of one of the thousands of specialized  LaTeX styles?  How, exactly, do you go about doing that?</p>
<p>That’s why this article was written.  Recently, I was asked to help with a National Institutes of Health (NIH) R21 grant proposal.  After some talk amongst the different investigators, it was decided that we would use LaTeX and LyX to draft it.  Unfortunately, we hit a rather substantial hurdle early in the process:  LyX doesn’t have an NIH grant template.</p>
<p>After additional debate, we decided to proceed with LyX anyway.  But in the process, I found myself saddled with an additional job.  In addition to responsibilities as research flunky and copy editor, I was tasked with creating a LyX and LaTeX template for our NIH grant.  This article will summarize the steps I took and describe how to create a custom template using an available style on <a href="http://www.ctan.org/">CTAN</a>.</p>
<p><img style="display: inline; border-width: 0px;" title="image" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/image.png" border="0" alt="image" width="659" height="179" /></p>
<p><em>Note: All of the files in this tutorial can downloaded </em><a href="http://www.oak-tree.us/stuff/LyX/nih.zip"><em>here</em></a><em> (.zip).</em><br />
<span id="more-1291"></span><!--adsensestart--></p>
<h2>Understanding the Big Picture</h2>
<p><a name="bigpicture"></a>Before laying out the procedure, I will start with the theory. That includes understanding how LyX and LaTeX interact, as well as what files they use for their respective jobs.</p>
<h3>An Introduction to LyX and LaTeX</h3>
<p>As you probably already know, LyX is a document preparation system which supports LaTeX, DocBook, and other typesetting technologies.  Writing with LyX is easier than using regular LaTeX or DocBook because it abstracts away the markup language and most of the associated pain.  Want to insert a citation?  Just hit <strong>Insert –&gt; Citation</strong>.  There’s no fussing with markup tags or macro commands.  The same goes for inserting figure legends, tags, labels, footnotes or any other relatively complex formatting.  LyX takes care of all the minutiae for you.</p>
<p>When you want to customize LyX, however, all of the ugliness and complexity gets shoved right back into your face.  Instead of just writing and letting the program sort out the details, all of a sudden you are transformed from a user into a collaborating developer.  You need to know how the underlying technologies work.  What’s the difference between a LaTeX class and a style sheet?  What does a LyX layout document do?  How does that differ from a LyX template document?  How do you install them and get the system to recognize that they’re present?</p>
<p>To get a handle on these questions, you need to understand that LyX and LaTeX accomplish two different (though complementary) goals.  LaTeX is largely in the job of creating printed documents (typesetting), whereas LyX is about helping you to write and organize the document (on-screen display).</p>
<p>I like to think of LyX as an editorial assistant while LaTeX is the production staff.  The editorial assistant organizes the various elements into a more logical layout, puts references and other material at your fingertips, and finally helps collate everything into a package that the production people can make sense of.  Once the package has been assembled, the production staff then goes about laying it all out on paper, making sure that references are all numbered and formatted correctly, and otherwise handling the business of making the document beautiful.</p>
<h3>LaTeX Classes and Styles</h3>
<p>To go about its work, LaTeX uses a couple of important files: document classes (.cls) and styles (.sty).  As mentioned, the entire purpose behind LaTeX is that you should be able to focus on the content of your writing without being distracted by its visual presentation.  Classes and styles are what make this possible.  As you are writing, you tell LyX (and by extension LaTeX) whether a block of text is a chapter, figure legend, table, or footnote.  When ready, you can then transform the markup (which makes sense to a computer) into something that makes sense to a human being.</p>
<p><strong>LaTeX classes</strong> are the first step in the transformation.  They contain important information about what the structure of the document should be and where things should go.  You might even say that a class file tells a document “what” it is.  Subsequently, the most common types of document classes are articles, reports, and books.</p>
<p>A <strong>LaTeX style</strong>, in contrast, tells the file “how” it should look.  If a class says, “You’re a book,” then a style will say, “you should have one inch margins” and “the chapter heading should be in Arial 16 point font with 0.2 inches of space above and below them”.  Any given document will only have a single document class, but may use many different styles.</p>
<h3>LyX Layout and Template Files</h3>
<p>In contrast, a LyX layout file corresponds to a LaTeX class and tells LyX how to draw things on screen; and this is where things can get a little confusing.  Even though a LyX layout is supposed to look like the printed page, this isn’t always true.  For example, the final document may have two or three columns; but on-screen the LyX document will only have one.  What is true, however, is that a LyX layout file will contain information about what document elements are available.  If you’re writing a book, for example, the LyX layout will have an option called “Chapter”; even though the fonts and spacing used won’t always be exactly the same.</p>
<p>The final fie type that you need to know about is called a template.  Whereas a layout file largely contains information about the on-screen display, the template file has information about typesetting and presentation.  In many ways it inherits both the properties of the LaTeX .cls and .sty files and the LyX layout properties.  This means  that you can add both LaTeX and LyX information to it.</p>
<p>The figure below shows these relationships graphically.</p>
<p><!--adsensestop--></p>
<p><img style="margin: 20px 0px; display: inline; border-width: 0px;" title="How LyX Works" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/HowLyXWorks.png" border="0" alt="How LyX Works" width="434" height="374" /></p>
<h2>Creating a Custom LyX Template – NIH Grant Proposal</h2>
<p>With the definitions out of the way, here is the procedure for creating a custom document template.  There are four basic steps:</p>
<ol>
<li>Download the necessary document classes and styles</li>
<li>Install the files into the proper folder of your LaTeX distribution</li>
<li>Create an appropriate layout file corresponding to the document class or style</li>
<li>Create a template file with additional details and information</li>
</ol>
<h3>Step 1: Download the necessary styles and templates</h3>
<p>The very first step is to locate the document class that you need to use.  There are many good resources to do this.  The first is <a href="http://www.ctan.org/">CTAN</a>, which is probably the most comprehensive resource available.  (You can also find very good package lists on <a href="http://en.wikibooks.org/wiki/LaTeX/Packages">Wikipedia</a> and through Google.)  Since I already know the name of the document class I need (<a href="http://www.ctan.org/tex-archive/macros/latex/contrib/nih/">NIH</a>), I will download it from the associated CTAN page.</p>
<h3>Step 2: Install the files into the proper folder for your  LaTeX distribution</h3>
<p>Once you have saved the files onto your computer, you need to place them in one of several locations.  If all users of the computer need it, install it to the system wide LaTeX tree.  If, however, you are the only person who will be using the package, you can place it in your own “user” folder.</p>
<p>The location of the system tree varies depending on which version of LaTeX you happen to be running.  It is typically defined by the “TEXMFLOCAL” variable.  For individuals using Ubuntu Linux, you will find it at “/var/lib/texmf/tex/latex”.  For users of other LaTeX distributions or operating systems, you will need to consult the documentation files.  The “user” tree is located in your own user folder.  For users of Linux, this will be “/home/<em>username</em>/texmf/tex/latex”.  <em>Note: Be sure to replace “username” with your appropriate login information.</em></p>
<p>To install the package, unpack the archive and copy all of the contents to the appropriate location.  After, you will need to update the LaTeX database by running texhash.</p>
<blockquote><p>sudo texhash</p></blockquote>
<h3>Step 3: Create an appropriate style layout for LyX</h3>
<p>Now that the package has been installed, we need to create a layout file so that LyX can make use of it.  This is a two step process:</p>
<ol>
<li>Edit the document class and style so that it only contains general elements</li>
<li>Generate a new LyX layout file</li>
</ol>
<h4>Step 3.1: Edit the document class and style to only contain general elements</h4>
<p>Working with LaTeX classes in LyX is slightly different than how you would work with them in a tool like <a href="http://kile.sourceforge.net/">Kile</a> or <a href="http://www.xm1math.net/texmaker/">TeXMaker</a>.  As already mentioned, LyX abstracts a lot of the technical detail of LaTeX away.  However, when using a tool like Kile, you directly interact with the LaTeX code.  When working this way, it can be convenient to place commonly used elements into the document class or style.  The NIH files that we downloaded and installed in the steps above do this.  (The page headers and footers contain the name of the primary investigator and the reference number for the grant.)</p>
<p>As you might guess, however, this isn’t a good thing if you are trying to create a general template.  The document class and style files should only contain the elements that are going to applied to <em>all</em> of the documents.  This shouldn’t include dates specific to a given revision, the name of a principal investigator, or the title of the grant.  We want to install the LaTeX files and then forget about them, which is simply impossible if they contain such specific information.</p>
<p>As a result, before we go further, we need to redact this information from the nih.cls file.  But even though we are removing it, <strong>don’t throw it away! </strong>Stick it in a spare text file for the time being.  It is still needed so that the final document will match NIH style conventions.  We will add it back to the template created in Step 4.</p>
<p>In the original files from CTAN, open up nih.layout in your favorite text editor and cut out the following text:</p>
<blockquote><p>% preamble stuff<br />
\newcommand{\nih@PIname}{Oakes, Robert Stilman}<br />
\newcommand{\piname}[1]{\renewcommand{\nih@PIname}{#1}}<br />
\makeatletter</p>
<p>% constants<br />
\newcommand{\nih@sillysize}{\scriptsize}</p>
<p>…</p>
<p>\newtheorem{proposition}{Proposition}<br />
\newtheorem{lemma}{Lemma}</p></blockquote>
<p>In addition to redacting the information above, you will also want to add the following line close to the end of nih.cls.  It will ensures that alphabetic section labels will be used instead of numeric labels:</p>
<blockquote><p>\def\thesection{\Alph{section}}</p></blockquote>
<p><em>Note: In the files for this tutorial, I have already redacted the unnecessary text from the nih.cls file and added it to the NIH Grant Proposal template.  I have also added the section label code.</em></p>
<h4>Step 3.2: Generate a new LyX layout file</h4>
<p>The easiest way to create a new layout file is to modify one of the existing examples.  If you look closely at the NIH document class (nih.cls), you will notice that it is based on the LaTeX “article” class.  As we try and create an appropriate nih.layout, let’s start by modifying <a href="http://www.oak-tree.us/stuff/LyX/article.layout">article.layout</a>.</p>
<p>When you first open the file, you will see the following:</p>
<blockquote><p># Do not delete the line below; configure depends on this<br />
# \Declare LaTeXClass{article}<br />
…<br />
Format 11<br />
Input stdclass.inc</p>
<p>SecNumDepth             3<br />
TocDepth                3</p>
<p>NoStyle Chapter<br />
NoStyle Chapter*</p>
<p>Style Part<br />
    Align                 Left<br />
    AlignPossible         Left<br />
    TopSep                2<br />
    BottomSep             1.5<br />
    Font<br />
      Size                Larger<br />
    EndFont<br />
End<br />
…</p></blockquote>
<p>As you study the layout, you should start to see a few general sections.  For example, the second line tells LyX that it is using the LaTeX class “article”.  “Input stdclass.inc” tells LyX to import the standard list of document elements.  Whenever you see a line that begins “NoStyle”, that is telling LyX to remove those particular section types from the available list of options since they aren’t supported by the document class.</p>
<p>Pay close attention to the section block that begin with “Style”.  This tells LyX how to display that particular document element on screen.  It includes information about how the text should be aligned (“Align”, “AlignPossible”) and what font should be used (“Font”, “Size”, “EndFont”).</p>
<p>To make article.layout work with nih.cls, we need to make two modifications.  First, we need to change the \DeclareLaTeXClass and then we need to add a new “Style” block.</p>
<p>First, let’s change the \DeclareLaTeXClass.  Add the following:</p>
<blockquote><p>\DeclareLaTeXClass[nih]{proposal (NIH)}</p></blockquote>
<p>In this example, nih is the name of the LaTeX document class (nih.cls) and the information in curly brackets is a description which will make it easier to find in the LyX document settings pane.</p>
<p>Next, we need to add a “Style” block that describes the “Section” element of the nih document class.  By default NIH sections are labeled alphabetically: “A Specific Aims”, “B Background”, “C Methods”, etc.  In contrast, the article labels its sections numerically: “1 Specific Aims”, “2 Background”, “3 Methods”, etc.  If we don’t modify the standard labeling, it will be displayed incorrectly on screen</p>
<p>Luckily, it’s an easy fix.  Add the following to article.layout:</p>
<blockquote><p>Style Section<br />
    LabelType             Counter<br />
    LabelCounter          section<br />
    LabelString           &#8220;\Alph{section}&#8221;<br />
End</p></blockquote>
<p><img style="margin: 0px 0px 20px 20px; display: inline; border-width: 0px;" title="Before using your new document class, you will need to reconfigure LyX so that it can see them." src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/CustomizeLyXReconfigure.png" border="0" alt="Before using your new document class, you will need to reconfigure LyX so that it can see them." width="312" height="189" align="right" /> After you’ve made these changes, resave the file as “nih.layout”.  Then copy the file to either the main LyX directory layouts folder (typically LyXDir/layouts) or to your LyX user directory (typically found at .lyx/layouts/).  For LyX to see and use the new files, you will need to run <strong>Tools –&gt; Reconfigure</strong>.</p>
<p><em>Note: A full version of the nih.layout file is available as part of the <a href="http://www.oak-tree.us/stuff/LyX/nih.zip">archive package</a> for this tutorial.</em></p>
<h3>Step 4: Create a LyX template file</h3>
<p>With a fully functioning LyX layout (nih.layout), you can now create a template file that has all of the needed elements.  As mentioned above, a LyX template file is nothing more than a regular LyX file.  So, start by creating a new LyX document (<strong>File –&gt; New</strong>).</p>
<p>After the new document is open, the very first thing that you should do is change the document class.  Go to <strong>Document –&gt; Settings</strong> –&gt; <strong>Document Class</strong>.  Then from the drop down menu, select “proposal (NIH)”.</p>
<p><img style="display: inline; border-width: 0px;" title="Customize LyX - Document Settings" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/CustomizeLyXDocumentSettings.png" border="0" alt="Customize LyX - Document Settings" width="620" height="443" /></p>
<p>Next, you need to add the information removed from nih.cls to the LaTeX Preamble.  Go to <strong>Document –&gt; Settings –&gt;</strong> <strong>LaTeX Preamble</strong>, and paste the text into the provided space.  While doing this, you may want to modify the name of the PI that will be shown in the document header.  You make this change by adding your name to the line that reads:</p>
<blockquote><p>\newcommand{\nih@PIname}{Last Name, First Name Middle}</p></blockquote>
<p>When done, press “Close”.  You now have a fully functional, NIH compliant grant proposal template.</p>
<p><img style="display: inline; border-width: 0px;" title="Customize LyX - Document Preamble" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/CustomizeLyXDocumentPreamble.png" border="0" alt="Customize LyX - Document Preamble" width="620" height="444" /></p>
<p>But while that’s the end of the essential boilerplate, you may want to include a few additional goodies.  Wouldn’t it be nice, for example, if you had access to clickable hyperlinks?  Or if you were be able to use the bookmarks sidebar to navigate the document?  For these and other desirables, add the following to the preamble:</p>
<blockquote><p>% Hyperlink Options<br />
\usepackage{ifpdf} % part of the hyperref bundle<br />
\ifpdf % if pdflatex is used</p>
<p>% Use True Type Fonts Instead of Older LaTeX Fonts<br />
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}</p>
<p>\fi % end if pdflatex is used</p>
<p>% for correct jump positions when clicking on a link to a float<br />
\usepackage[figure]{hypcap}</p></blockquote>
<p>This code enables the hyperref package.  Then, go to <strong>Document –&gt; Settings –&gt; PDF Properties </strong>and enable hyperref support in the options.  While changing the PDF properties, I personally like to customize the colors of the links.  I think that document links and cited references should be black; while urls and files should be blue.  To make this change, add the following to the “additional options” line:</p>
<blockquote><p>linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue</p></blockquote>
<p><img style="display: inline; border-width: 0px;" title="Customize LyX - PDF Properties" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/11/CustomizeLyXPDFProperties.png" border="0" alt="Customize LyX - PDF Properties" width="620" height="443" /></p>
<h2>Using the Template</h2>
<p>If you’ve followed all of the steps in this tutorial, you will now have a fully functioning NIH grant template.  Now might be a good time to save it in the same location where you keep other templates.  (If you don’t have a templates folder, you might want to create one.)  I’ve saved mine as “NIH Grant Proposal.lyx”.  From here on out, whenever I want to create a new NIH document, I simply choose <strong>New from template</strong> from the <strong>File</strong> menu and load the appropriate version.</p>
<p>Now that my template is set up, I’m back to an automated wonderland.  LyX and LaTeX keep track of the references, labels, footnotes, formatting and the other minutiae that make complicated documents so painful.  I’m free to focus on the ideas,  voice, and message; which is exactly how it should be.<br />
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2" rel="bookmark" title="November 30, 2009">Typeset Your Curriculum Vitae &ndash; Part 2: Extending and Customizing an Existing Document Class</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles" rel="bookmark" title="November 14, 2009">Customizing LyX: Character Styles and the LyX Local Layout</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/25/latex-cv-part1" rel="bookmark" title="November 25, 2009">Typeset Your Curriculum Vitae &ndash; Part 1: The xetexCV Document Class</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/03/04/perfect-tool" rel="bookmark" title="March 4, 2009">Creating the Perfect Writing Tool: A Proposal</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/05/13/lyx-outline" rel="bookmark" title="May 13, 2009">Introducing LyX-Outline 0.1</a></li>
</ul>
<p><!-- Similar Posts took 44.827 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih">Customizing LyX: Create an NIH Grant Proposal Template</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dark Times for the Book Publishing Business</title>
		<link>http://www.oak-tree.us/blog/index.php/2009/06/16/dark-times</link>
		<comments>http://www.oak-tree.us/blog/index.php/2009/06/16/dark-times#comments</comments>
		<pubDate>Tue, 16 Jun 2009 23:08:09 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Writing and Literature]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/index.php/2009/06/16/dark-times-for-the-book-publishing-business</guid>
		<description><![CDATA[The publishing industry is in trouble.  Sales of both books and newspapers are down, and even enormous powerhouses like the New York Times have found it necessary to address the once unthinkable.  While it would make a better story to have a villain who can be nobly engaged and defeated, the fall and demise of [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/06/16/dark-times">Dark Times for the Book Publishing Business</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img style="border-right-width: 0px; margin: 0px 15px 10px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Darth Vader - iPhone" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/06/DarthVaderiPhone.jpg" border="0" alt="Darth Vader - iPhone" width="239" height="344" align="left" />The publishing industry is in trouble.  Sales of both books and newspapers are down, and even enormous powerhouses like the New York Times have found it necessary to <a href="http://http://www.businessinsider.com/2009/1/new-york-times-were-not-going-bankrupt-in-may-nyt">address the once unthinkable</a>.  While it would make a better story to have a villain who can be nobly engaged and defeated, the fall and demise of the publishing industry can overwhelmingly be attributed to one factor: technology.  Or more specifically, to the changes in behavior and habits that technology and the internet have brought with them.</p>
<p>It is, thus, ironic that many publishers are looking toward technology to solve their financial ills.  And they don’t lack for places to turn: online search schemes, electronically disseminated e-books, subscription based web-pages are but a few examples. However, Amazon is preparing what may might actually be a savior to the beleaguered industry, electronically delivered content on the iPhone and Kindle.</p>
<p>Yet, at the same time that iPhone and Kindle provide access to new markets for publishers to peddle their existing wares, they also bode poorly for the future of the publishing powerhouses.  The rise of the Kindle and the technology/distribution system it represents also holds the potential to irreversibly damage the relationship between publishers their most valuable asset: authors.</p>
<p>Here’s the problem, it’s very hard to make a living as a writer.  I know, I tried.  You have to be incredibly good at communicating and even better at self promotion.  To actually be successful requires that you rise above the competition, and there’s a lot of it.  Literally tens of thousands of people complete the “Great American Novel” each year, and any author who wants a break is competing with all of them.  The goal? Land a contract with a publishing house.  It’s their role as gatekeeper which has made traditional publishers the guardians of fame, fortune and success.</p>
<p>Electronic books in general, and Amazon in specific, have the potential to radically change this arrangement.  Sure, Amazon is providing new markets for established publishers, but they also open those same opportunities to new authors.  This creates an interesting conflict: in many ways, self-publishing through <a href="https://www.createspace.com/">Amazon CreateSpace</a> or alternative services like <a href="http://www.scribd.com/">Scribd.com</a> is a better deal than pursuing a traditional book contract.  Self-publishers control the intellectual property rights to their work and make more money per-sale.  Further, using Amazon’s services provides instant access to the eco-system and to the Kindle.  And other technologies: email, blogs, and social networks have eroded the value of marketing and other support services that publishers have traditionally provided.</p>
<p>This might be a good time to ask, “Is this a good outcome?”  After all, isn’t it better to have a larger selection and more new authors to choose from?  Diversity and competition favor consumers and readers.</p>
<p>But let’s be honest, diversity of content isn’t really a problem.  Whatever your interest, religion, or politics; you can find something to read which fills it.  Are you a raging, America hating radical?  Well, don’t worry, there are <a href="http://civillibertarian.blogspot.com/">web-sites</a> that have you covered.  Ditto for closet-philosophers, back-seat mathematicians, and basement engineers.</p>
<p>In fact, the internet has made it absurdly easy for anyone to become a celebrity and propagate ideas, <a href="http://www.youtube.com/watch?v=60og9gwKh1o">even unintentionally</a>.  Want to be a broadcaster?  All you need is a camcorder and an abundance of free time.  YouTube provides the rest.  But unfortunately, just because you can find something doesn’t mean that it is worth anything.  Writing is no different.</p>
<p>If publishing only served as a vehicle for content creation, then its death would hardly be a tragedy.  In many ways, it might even be desirable as Amazon and others are positioned to provide the same services more efficiently and cheaply.  But such a view overlooks another role that publishing houses have served: that of collaborative facilitator.  Contrary to some opinions, a good book is not solely the product of a single mind, but may include the input and advice of many.  So while some support services, like advertising and illustration may be available to self-publishers, the critical insights of experienced editors often are not; and they are essential.  Some of the <a href="http://www.amazon.com/gp/product/0812511816?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0812511816">most promising</a> fiction <a href="http://www.amazon.com/gp/product/0812550293?ie=UTF8&amp;tag=apolitiincorr-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0812550293">squandered its potential</a> because the author was given far too much creative freedom.</p>
<p>There is a secondary point that is also important to consider, while publishers have served as fastidious gatekeepers; once you have passed through their gate, it was possible to make a decent living.  That dynamic changes radically in the internet’s decentralized marketplace.  Instead of convincing one person of your worth, it is instead necessary to convince hundreds of thousands, if not millions.  So while the <em>potential</em> to earn more money is present, it is more difficult to actually do so.  Worse, every other self-published author is rigorously competing for the attention of the reading public, which further amplifies the noise.  And just because more options are present does not mean that people will spend more on books or spend more time reading.  Very few have had breakthrough successes through self-publishing, and <a title="they are not necessarily" href="http://www.oak-tree.us/blog/index.php/2009/01/12/brisingr-long">those that have</a> are not necessarily <a href="http://www.oak-tree.us/blog/index.php/2009/01/21/brisingr-sociopath">exemplars of literary quality</a>.</p>
<p>So, what’s the net result?  Even fewer live the dream of the American novelist.  While they might make some money, it is unlikely any will be able to quit the day job to pursue writing full time.  In such a distributed market, no one ever really arrives.  Many people make a little bit of money, but no one makes a lot of money.  Those that are best served by Amazon’s publishing model already have an established and trusted brand.  A fantastic example of the rich getting richer and the poor getting nothing.</p>
<p>This is a bad thing for writers and most especially for new authors.  The changes in the marketplace might even mean that writing evolves into a supplement of other careers, rather than a career in its own right.  Wouldn’t it be terrible if the William Shakespeare of the next generation were trapped in dead-end job with the fear that s/he would never be able to make a livelihood via her/his writing?  The destruction of the publishing business might mean just that.  More but not necessarily better, which means that dark times might await both publishers and authors.<br />
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/10/digital-patronage" rel="bookmark" title="November 10, 2009">Patronage in the Digital Age</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih" rel="bookmark" title="November 2, 2009">Customizing LyX: Create an NIH Grant Proposal Template</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/11/25/ipod-stanzareview" rel="bookmark" title="November 25, 2008">iPhone/iPod – Electronic Reading Bliss with Stanza</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/05/05/save-your-show" rel="bookmark" title="May 5, 2009">Save Your Favorite Show By Watching Online</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2010/02/05/davinci-notebooks" rel="bookmark" title="February 5, 2010">Image Gallery: The Notebooks of Leonardo Da Vinci</a></li>
</ul>
<p><!-- Similar Posts took 13.286 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/06/16/dark-times">Dark Times for the Book Publishing Business</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2009/06/16/dark-times/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing LyX-Outline 0.1</title>
		<link>http://www.oak-tree.us/blog/index.php/2009/05/13/lyx-outline</link>
		<comments>http://www.oak-tree.us/blog/index.php/2009/05/13/lyx-outline#comments</comments>
		<pubDate>Wed, 13 May 2009 22:16:12 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Cool Stuff]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Raves]]></category>
		<category><![CDATA[Writing and Literature]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/?p=914</guid>
		<description><![CDATA[
Writing anything &#8211; whether it be a book, or a short story or an angry letter to your boss &#8211; is substantially more than starting from the first idea moment of inspiration and continuing to the final draft. Rather, writing involves a fair number of idea fragments, fleeting moments of inspiration, and a tremendous number [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/05/13/lyx-outline">Introducing LyX-Outline 0.1</a></p>
]]></description>
			<content:encoded><![CDATA[<p><!--adsensestart-->
<p>Writing anything &#8211; whether it be a book, or a short story or an angry letter to your boss &#8211; is substantially more than starting from the first idea moment of inspiration and continuing to the final draft. Rather, writing involves a fair number of idea fragments, fleeting moments of inspiration, and a tremendous number of dead ends.</p>
<p>It is incredibly unfortunate that most writing software, however, is geared to organizing and structuring the document after most of the hard work has already happened.&#160; It simply assumed that most of the planning and layout has already happened and the author is ready to string words together.&#160; Unfortunately, this assumption overlooks one important truth: ideas are best defined as they are expressed.&#160; Thus, it&#8217;s usually about the time that the a writer sits down to compose the draft, that the document&#8217;s true structure becomes apparent.&#160; In my own case, this often leads to a flurry of reorganization.&#160; And it’s during the restructuring that the real battle begins.</p>
<p>When in full creative passion,&#160; I am typically working with three or four different programs all at the same time: OneNote is open so that I can access my ideas, Word is there to start collecting the somewhat finished text, and I&#8217;ll also probably be using a MindMapper so that I can see a visual representation of the document structure.&#160; The tools are separate and don&#8217;t communicate with one another.&#160; Thus, a change made in one place needs to be made everywhere.&#160; And all too often, that I end up fighting the word-processor and the notetaker, and the mind mapper.&#160; It is tremendously frustrating to battle the tools of your adopted trade.&#160; Luckily, I am not alone in my frustration.</p>
<p>In the past everal years, a number of programs have become available that leave the linear model of writing behind.&#160; On the Mac platform, one such tool looms above the others: Scrivener.&#160; Central to Scrivener&#8217;s function are two important metaphors: that of the outline and that of the corkboard.&#160; And it works really, really well.&#160; There are just a few minor problems.&#160; First: Scrivener is only available for Mac and Scrivener&#8217;s lead developer has made it clear that there won&#8217;t be versions for other platforms.&#160; Second: Scrivener was really designed with creative writing in mind.&#160; Thus, while it can be used for long and complicated documents, this is a slightly less than straightforward process.&#160; Last, to create said fancy documents, Scrivener requires the raw use of a markup language (and all of the associated headaches that come with it).</p>
<p> <!--adsensestop-->
<p>The document processor, LyX, however, excels in many areas where Scrivener falls short.&#160; It is built upon the mature and robust underpinnings of LaTeX, the typesetting language of choice in the science and engineering.&#160; And more importantly, it is easy to use (where LaTeX most decidedly is not).&#160; But it fails in the same way as Microsoft Word and other word processors, it is a linear writing tool and doesn’t offer a great deal of work-flow flexibility.&#160; That is where LyX-Outline comes in.</p>
<p>LyX-Outline is a marriage between Scrivener&#8217;s organizational tools and LyX&#8217;s typesetting tools.</p>
<p align="center">&#160;<img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="LyX-Outline Main Window (Mac OS X)" border="0" alt="LyX-Outline Main Window (Mac OS X)" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/05/lyxeditormac.png" width="600" height="535" /></p>
<p> <span id="more-914"></span><br />
<h3>Looking for Flexibility</h3>
<p>While you can download and play with LyX-Outline, please reember that is still a <em>forthcoming</em> add-on to the LyX.&#160; And while you find it useful, this release is an <em>alpha </em>level technical preview.&#160; Right now, you can view the structure of your document at a glance in the corkboard, move things around, poke about in the outliner, and even jot your winded thoughts with the very basic plain text editor.</p>
<p>But even though some of the functionality is lacking, you can start to explore.&#160; And as you do so, one of the first things you might notice is that LyX-Outline has been designed with flexibility in mind.&#160; Nearly all of the tools can be docked, ripped away, or hidden if they are not needed.&#160; The work environment should adapt to your work habits, not the other way round.&#160; Whenever the writer needs to adapt to the environment, a moment of productivity and a spark of life has been lost.</p>
<p align="center"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="All of the tools in LyX-Outline can be docked, or float freely (Mac OS X)." border="0" alt="All of the tools in LyX-Outline can be docked, or float freely (Mac OS X)." src="http://www.oak-tree.us/blog/wp-content/uploads/2009/05/lyxfloatingtoolsmac.png" width="650" height="374" /></p>
<h3>A Quick Overview</h3>
<p>The main interface consists of three main elements.&#160; This includes the document map, the editor pane, and the dock tools.&#160; As described above, the document map and the dock tools can be relocated, docked or left free floating (depending on your preference).&#160; And if you don&#8217;t find them useful, they can quickly be hidden.</p>
<p>The document map lets you see a hierarchical list of every item in your project.&#160; Selecting one of the items displays its content&#8217;s in the editor pane.&#160; The editor pane is the main text processing portion of LyX-Outlineand can be toggled between a text editor (plain text only at the moment) and a corkboard view.</p>
<p>In addition to the main editor and corkboard, there is an additional corkboard and outliner tool available as a dockable widgets.&#160; Just as in Scrivener, you can view the pieces of <img style="border-right-width: 0px; margin: 10px 0px 10px 15px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="LyX-Outline Corkboards (Linux)" border="0" alt="LyX-Outline Corkboards (Linux)" align="right" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/05/lyxcorkboardslinux.png" width="350" height="333" />your documents in many way.&#160; Every item is a document, and an index card, and an outline point.&#160; They are intimately tied together and any change made to the order or content of one will be reflected everywhere.&#160; The document map is used to navigate the content of the main window.</p>
<p>The dock tools, however, can be controlled separately.&#160; You can view the entire document, or filter to a specific level in the hierarchy via a drop-down menu.&#160; In the future, filtering by search term, keyword, document structure, or tag will also be possible.</p>
<h3>Item Summary and Organization</h3>
<p>The health of any written work can also be greatly improved by connecting a simple synopsis to a larger chunk of text.&#160; This makes it much easier to check the flow of your work at a glance .&#160; A summary can easily be added to any individual item in the collection by double clicking on it&#8217;s index card in the corkboard or the synopsis column in the outliner.&#160; The summary text is independent from the full text and can include pertinent information that helps you structure the document.&#160; For now, the synopsis must be entered by hand; however, future versions will allow for automatic generation of the synopsis from the text.</p>
<p align="center"><a href="http://www.oak-tree.us/blog/wp-content/uploads/2009/05/lyxoutliner-filterlinux.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="The outline pane can be filtered using the drop down menu.  Choose to see the structure of the entire document, or just a single section (Linux)." border="0" alt="The outline pane can be filtered using the drop down menu.  Choose to see the structure of the entire document, or just a single section (Linux)." src="http://www.oak-tree.us/blog/wp-content/uploads/2009/05/lyxoutliner-filterlinux-thumb.png" width="600" height="348" /></a></p>
<h3>Of Outlines and Index Cards</h3>
<p>Scrivener (and LyX-Outline as it&#8217;s dedicated clone) utilizes multiple metaphors.&#160; The Corkboard may be useful in some instances, but will be less helpful in others.&#160; Ditto for the outliner.&#160;&#160; Either way, it is important to know that both the corkboard and the outliner display sub-items.&#160; If you are using the main corkboard, these sub items will be connected to the active item in the document map.&#160; If you are using the dock tool, they can be filtered via the drop-down menu.&#160; From the corkboard, you can then edit items by double clicking on either their title, or their summary.&#160; You can reorder them through drag and drop.&#160; From the outliner, you can add new items or sub items, or delete them from the document.&#160; You can also change their order (by using the up or down arrow buttons) or change their indentation level (with the left and right arrow buttons).</p>
<p align="center"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="LyX-MainWindow-Mac" border="0" alt="LyX-MainWindow-Mac" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/05/lyxmainwindowmac.png" width="600" height="452" /></p>
<h3>Minding the Potholes</h3>
<p>And that is a very quick tour of the Outline modules for LyX.&#160; As noted above, this release of LyX-Outline is a prototype and it is still very far from its intended target.&#160; Thus, if it doesn&#8217;t meet your needs right out of the box, please be patient.&#160; The mantra of OpenSource is &quot;release early, release often.&quot;&#160; In this case, I have erred on the side of early and as you might suspect, there are some dangerously rough edges.&#160; These include:</p>
<ul>
<li>Unfinished interfaces.&#160; Most of your manipulation will probably need to happen in the outliner pane.&#160; This includes adding or removing new document nodes, as well as indenting or un-indenting the document selection.&#160; The final version will include ubiquitous drag and drop. </li>
<li>A crappy editor.&#160; The current editor is plain text is a placeholder only.&#160; Ultimately, LyX-Outline will be integrated with the LyX editor and have access to all of it&#8217;s very powerful features.&#160; It is important to keep that future in mind. </li>
<li>No export option.&#160; While you can save and open past documents, there is currently no way to actually get them out of the program. </li>
</ul>
<p>In it&#8217;s current incarnation, this prototype is valuable for pecking out thoughts and playing with the organizational tools.&#160; I am releasing it so that people can see how the tools might look in their final form and provide feedback.&#160; Please do so.&#160; Download the source, use it as you can, and let me know what you think.&#160; What things work?&#160; What things don’t?&#160; What features would you as users like to see?</p>
<p><em>Update: You can download the source code and find installation instructions on the <a href="http://www.oak-tree.us/blog/index.php/science-and-technology/lyx-outline">LyX-Outline project page</a>.</em></p>
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/03/04/perfect-tool" rel="bookmark" title="March 4, 2009">Creating the Perfect Writing Tool: A Proposal</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles" rel="bookmark" title="November 14, 2009">Customizing LyX: Character Styles and the LyX Local Layout</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/08/23/time-drive-bugs" rel="bookmark" title="August 23, 2009">Filing Bugs for Time Drive or LyX-Outline</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/11/20/software-cuttingoutclutter" rel="bookmark" title="November 20, 2008">On Writing &ndash; Software that cuts out distraction and clutter</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/07/30/time-traveler" rel="bookmark" title="July 30, 2009">A Better Previous Versions: Time Traveler</a></li>
</ul>
<p><!-- Similar Posts took 15.618 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/05/13/lyx-outline">Introducing LyX-Outline 0.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2009/05/13/lyx-outline/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Anathem: Big Book, Big Ideas</title>
		<link>http://www.oak-tree.us/blog/index.php/2009/03/09/anathem</link>
		<comments>http://www.oak-tree.us/blog/index.php/2009/03/09/anathem#comments</comments>
		<pubDate>Mon, 09 Mar 2009 16:54:19 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Science Fiction/Fantasy]]></category>
		<category><![CDATA[Writing and Literature]]></category>
		<category><![CDATA[Neal Stephenson]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/index.php/2009/03/09/anathem-big-book-big-ideas</guid>
		<description><![CDATA[
What can you say about a Neal Stephenson novel?  Really.  The man is a bit like J.R.R. Tolkien, he feels the need to go out and re-invent the wheel simply because he can.  As a result, no amount of critical analysis, commentary, or old fashioned smack is really able to do his work justice.  If [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/03/09/anathem">Anathem: Big Book, Big Ideas</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/anathem.jpg"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin: 10px 20px 10px 0px; border-right-width: 0px" title="Anathem" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/anathem-thumb.jpg" border="0" alt="Anathem" width="227" height="339" align="left" /></a></p>
<p>What can you say about a Neal Stephenson novel?  Really.  The man is a bit like J.R.R. Tolkien, he feels the need to go out and re-invent the wheel simply because he can.  As a result, no amount of critical analysis, commentary, or old fashioned smack is really able to do his work justice.  If you want to experience a Stephenson novel, you just have to go read it.</p>
<p>So it is with Anathem, a book about a place which isn’t Earth and a time that isn’t now.  Though it certainly feels like both.  Anathem is s a big book which contains big ideas: the observations of classical philosophers, rules of logic, and ultimately a polycosmic theory of connected reality.  You know, light reading.  It’s also a brilliant though extremely frustrating piece which simply defies any attempt at summary.  The first third is spent drowning in detail, the middle third in quiet contemplation, and the last third in monumental disillusion.<span id="more-776"></span></p>
<h2>Of Physics and Philosophy</h2>
<p>After a few pages, it becomes clear that Stephenson is a philosopher.  I’m not sure if it is the fifteen page description of a big clock, or the ten page description of how it’s wound.  Nonetheless, there is a tremendous devotion to the mind’s perception of reality.  In fact, the entire cosmos of Anathem is meant to glorify the rational and introspective.  Imagine, if you will, what would happen if classical Greek culture had never been absorbed by the Romans and later disseminated into Roman Catholic or Byzantine thought?  Instead, it had retreated behind monastic walls and allowed to flourish? What would that look like?</p>
<p>The Mathic Orders represent a tremendously good guess: communities dedicated to the pursuit of philosophy, as the ancient Greeks understood the term.  A haven for those that seek to understand existence, knowledge, truth, beauty, justice, validity, mind, language, and logic.  The avout are, literally, “the lovers of wisdom.”  This is different from the pursuit of science, but rather the pursuit of knowledge in its purest form: theory.</p>
<p>In many ways, Stephenson’s dedication to rational philosophy drives a great deal of the ideological conflict.  So while you can rest assured that religion versus science will make an appearance, there are shadows of far nastier clash: empirical evidence versus theoretical prediction.  Remember, the sixteenth century brouhaha between Galileo Galilei and the Roman Potentate was not a fight between religion and science per-se, but a scuff between meta-physicists (philosophers) and their empirical colleagues.  After all, the geocentric view of the cosmos was not a Christian belief, but a Greek one; it can probably be tracked back to Plato or even Socrates, though Aristotle is responsible for it’s place in Western canon.  Galileo&#8217;s struggle wasn&#8217;t with the theists, but rather with his scientific colleagues. Similar fights have been waged on a far larger scales with greater consequences.  What is Communism, for example, if not a magnificently beautiful and utterly failed theory?</p>
<h2>Characters, Plot and Ideas</h2>
<p>Here’s the plot summary: aliens show up for dinner, how should the world respond?  That’s it, spread out over 900 some pages.  And while Anathem pulls off a reimagining of “Close Encounters of the Third Kind,” it suffers from more than stale plotting.  The characterization is generally terrible, in fact, most of the characters aren’t really all that likable or interesting.  Actually that’s not fair to the variety of boring and non-likeable people who populate the worlds of the polycosm.  Let me be more clear: nearly every character falls somewhere on the likable scale between mostly unpleasant and raging wanker.</p>
<p>What’s worse, I found that most were completely interchangeable; like gears in a watch or machine milled parts of a car.  Sure, there may be an assortment of adolescent pricks, older pricks, computer pricks, and token religious nuts; but the characters play stereotyped roles and never give any hint of being rounded individuals.  As long as there is a character in the right place to say the right things, that’s good enough.</p>
<p>For example, consider the “deolators” of Anathem.  They get about as much respect as a Scientologist on a bad day.  When he is feeling kind or generous, Stephenson dismisses the deolators and their motives as unfathomable.  More often, though, they are linked to a substantially less flattering and destructive connotations.  In Anathem’s nine-hundred pages, expect the word to be used interchangeably with misguided, superstitious, and stupid.  In the six or seven examples of apocalypse, Stephenson was kind enough to credit the deolators for all of them. Apparently religion is to blame for all of society’s ills.  Silly me, I thought that was the role of politics.</p>
<p>Don’t expect a consistent set of rules for anyone, however.  Based upon Stephenson’s clear distrust of religion and its notions of “truth,” it is ironic that most of the other characters simply assume that they are right.  Indeed, I found the general sense of self-satisfied superiority to be more than slightly obnoxious.  After all, why should the core characters bother to question their own place in a recently rearranged cosmos?  It’s not like the understanding of polycosmic existence isn’t about to be thoroughly challenged.  Though I’m probably being a bit harsh, Stephenoson did manage to nail one stereotype: most of Stephenson’s “avout” are carbon copies of the dry and humorless academics I’ve worked with.<img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin: 10px 0px 10px 20px; border-right-width: 0px" title="BohrCircles" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/bohrcircles.png" border="0" alt="BohrCircles" width="237" height="225" align="right" /></p>
<p>The surprising bit, however, is that the pathetic characterization doesn’t derail the book.  After I realized that individuals don’t matter, I stopped keeping track of them.  Instead, I started to follow the ideas; and that’s when Anathem became really enjoyable.  The concepts, philosophical musings, and theories are the real stars.</p>
<p>Be prepared for information deluge, though.  There is enough detail to either fascinate or thoroughly repulse.  First off, the book is written is Socratic dialogue: this means there will be smug questioning, logical maneuvering and thorough pontification.  In fact, when reading formal dialogue, keep one important fact in mind: there is a reason why the ancient people of Athens “allowed” Socrates to consume a fatal dose of hemlock, probably just before threatening to throw him off a cliff.  At best, he was a bloody nuissance; more often, he actively undermined social order and stability.  Plato may remember him fondly, but there is little in his thirty-five surviving works to say that he remembered him accurately.</p>
<p>Even so, the formal dialogues are easily the best parts of the book.  Clearly, they are also the parts which Stephenson was most interested in writing.  The care with which they have been laid out and composed is simply stunning.  Much better than any of the actual “character development” or plotting.  The ideas are presented logically, carefully and understandably.  A few examples, like Stephenson’s description of systemic evolution (the Bat, Fly, Worm dialogue) are worth the price of the novel by themselves.</p>
<p>Unfortunately, even with the beautiful ideas, Anathem is stilted.  There are so many times that a gorgeous ideas is given a grotesque application.  To use Stephenson’s language, the theorics and praxis simply don’t line up.  After hundreds of pages and thousands of words of logical dialogue, the conclusion is illogical.  Theory and empiricism are fighting it out again and the result is polycosmic miasma. Not a good way to conclude a book that has been marvelously rational.</p>
<p><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin-left: 0px; margin-right: 0px; border-right-width: 0px" title="PythagorasTheorem" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/pythagorastheorem.png" border="0" alt="PythagorasTheorem" width="282" height="200" align="right" /></p>
<h2>Conclusion</h2>
<p>Okay, so I’ve been harsh.  The simple truth is that I enjoyed many parts of Anathem thoroughly.  I started off by listening to the audio book version, but later bought a hardcopy for closer inspection.  That says something.  I don’t often pay for a book twice.</p>
<p>But even so, this book only reinforces a previous conclusion: Neal Stephenson is a clever fellow.  Unfortunately, he feels the need to beat us about the head with it.  He brilliantly plays with the whole of human history and explores some fascinating theoretical possibilities, but then comes off as an utter ass.</p>
<p>Most very intelligent people, unfortunately, are little more than provocative gasbags.  Far too often, “clever” is allowed to pose as brilliant and cliché to stand in for innovation.  As a result, Anathem isn’t so much a story which raises a number of interesting ideas; rather, it’s a philosophical treatise masquerading as a piece of speculative fiction.   If read as the first, it’s hopelessly and frustratingly flawed.  When read as the second, however, Anathem is one of the most interesting books to appear in quite some time.<br />
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/14/customize-lyx-character-styles" rel="bookmark" title="November 14, 2009">Customizing LyX: Character Styles and the LyX Local Layout</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/01/25/books-do-not-need-baths" rel="bookmark" title="January 25, 2009">Books Do Not Need Baths</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/01/12/brisingr-short" rel="bookmark" title="January 12, 2009">Literary Sins &#8211; A Review of Christopher Paolini’s Brisingr</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/12/08/my-collection-of-stories" rel="bookmark" title="December 8, 2008">My Collection of Stories</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/03/03/of-artists-and-artisans" rel="bookmark" title="March 3, 2009">Of Artists and Artisans</a></li>
</ul>
<p><!-- Similar Posts took 12.733 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/03/09/anathem">Anathem: Big Book, Big Ideas</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2009/03/09/anathem/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating the Perfect Writing Tool: A Proposal</title>
		<link>http://www.oak-tree.us/blog/index.php/2009/03/04/perfect-tool</link>
		<comments>http://www.oak-tree.us/blog/index.php/2009/03/04/perfect-tool#comments</comments>
		<pubDate>Thu, 05 Mar 2009 02:32:33 +0000</pubDate>
		<dc:creator>Rob Oakes</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Writing and Literature]]></category>
		<category><![CDATA[LyX]]></category>
		<category><![CDATA[OpenSource]]></category>

		<guid isPermaLink="false">http://www.oak-tree.us/blog/?p=760</guid>
		<description><![CDATA[In addition to nouns, verbs, and adjectives; there are other tools which supplement the writer&#8217;s arsenal. some writers, this is a moleskin notebook and ballpoint pen. For others, writing is synonymous with the usage of computer word processors, such as Microsoft Word.&#160; What is a given, however, is that the choice is intensely personal. If [...]<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/03/04/perfect-tool">Creating the Perfect Writing Tool: A Proposal</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img alt="" align="left" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/030509-0231-creatingthe1.jpg" />In addition to nouns, verbs, and adjectives; there are other tools which supplement the writer&#8217;s arsenal. some writers, this is a moleskin notebook and ballpoint pen. For others, writing is synonymous with the usage of computer word processors, such as Microsoft Word.&#160; What is a given, however, is that the choice is intensely personal. If you ask ten different writers, &quot;What is the perfect tool?&quot; Expect ten different answers.</p>
<p>For those who create software, however, this is big problem. Programs can&#8217;t be customized to the individual whims of every writer. (A more diverse or idiosyncratic group does not exist.)&#160; It is necessary to select a cross section of features that meet the needs of most people.&#160; Unfortunately, however, this has resulted in some serious compromises and an emphasis on the technical process of writing, often to the exclusion of the creative process.</p>
<p> <span id="more-760"></span>
</p>
<h2>The Problem</h2>
<p>Like most writers, I have some strong feelings about the tools I use; and like most writers, I have never found one that fits my needs.&#160; But this is not for a lack of trying.&#160; In fact, I’ve been searching “perfect tool” for a very long time, at least since I was a senior in high school.</p>
<p>At that time, I enjoyed writing things out in longhand, with separate drafts copied over from the first iteration. I fancied myself a budding novelist and fervently believed that such an exercise would stimulate my creativity.</p>
<p>A decade later, however, I have become impatient. Now, I prefer to peck out my thoughts at the keyboard.&#160; Sometime in college, I realized that writing by hand is slow and while it can focus the mind on word choice, it&#8217;s a plodding and frustrating exercise. In contrast, typing at the computer is quick; and since I can type nearly as fast as I can think, it allows the text to keep pace with my thoughts.</p>
<p>Moreover, working on the computer is organic. There isn&#8217;t a discrete first, second, and final draft; instead, I can add, modify or change my writing as I form the ideas. If I want to jump back and change a word or sentence, I do so. Pen and paper isn&#8217;t nearly so adaptable and many ideas are lost before they can be captured and expanded. </p>
<h3>The Limitations of Existing Tools</h3>
<p>But even though I prefer to write at the computer, I haven’t been able to find a writing program that lets me creatively adapt the structure and flow of my document.&#160; I have tried nearly everything available, but nothing fully meets my needs.</p>
<p>Consider <a href="http://office.microsoft.com/en-us/word/default.aspx">Microsoft Word</a>, for example.&#160; Even with all of its power, there are a number of things that it doesn&#8217;t handle very well. Ever tried to work with a complex Word document, numbering into the hundreds or thousands of pages? If not, I don&#8217;t recommend that you do.&#160; Large Word documents cause the program to slow down or crash and they have a tendency to become corrupted.&#160; There is nothing more disconcerting than finding out one of your book chapters is no longer usable due to bit rot.</p>
<h3>Introducing LyX: The Document Processor</h3>
<p>Luckily, there may a potential solution.&#160; The open source document processor, LyX, meets many of Word’s shortcomings.&#160; LyX encourages people to approach writing based on the structure and content of the document, rather than the appearance. Thus, it isn&#8217;t a &quot;<strong>W</strong>hat <strong>Y</strong>ou <strong>S</strong>ee <strong>I</strong>s <strong>W</strong>hat <strong>Y</strong>ou <strong>G</strong>et&quot; so much as a &quot;<strong>W</strong>hat <strong>Y</strong>ou <strong>S</strong>ee <strong>I</strong>s <strong>W</strong>hat <strong>Y</strong>ou <strong>M</strong>ean&quot; (WYSIWYM).</p>
<p>When used right, LyX focuses the user on writing the content. The program handles the mechanics of layout and output. To do so, LyX leverages the LaTeX typesetting system, which is used heavily in the engineering and science disciplines to publish dissertations, grant proposals, journal articles, and books.</p>
<p>When I first found LyX three or four years ago, it fundamentally changed the way that I worked. Before, I manually formatted everything in a given document. While this approach is okay for simple letters or lists, it quickly breaks down in anything longer than a few pages.</p>
<p>In contrast, LyX makes extensive use of tags that tell the program what a given piece of text is. The title is enclosed by a &quot;title&quot; tag, book sections by the &quot;section&quot; tag, chapter headings by the &quot;chapter&quot; tag, block quotes by the &quot;quote&quot; tag, and paragraph text by the &quot;body&quot; tag. The program then applies formatting rules globally and in a consistent manner. Text within LyX has a meaning and will be processed in a specific way.</p>
<p>And thus we have the first important component of a perfect writing environment: the program is aware of what content is. Such awareness allows for extremely complicated written pieces to be assembled in a relatively easy fashion.</p>
<h3>A Sloppy Process</h3>
<p>Despite its strengths, though, LyX is an incomplete solution. It focuses on the mechanical aspects of writing and ignores what is arguably the more important component: the creative process. Using LyX, I can assemble a true monstrosity of a manuscript replete with footnotes, endnotes, references, tables, lists of figures, indices, appendices, and all of the other components of something unreadable. Yet such elements are mere after-thoughts rather than the heart and soul of the work. The center is all about ideas.</p>
<p>Which brings me to the serious limitations inherent in most word processing programs: joining ideas together is a <img alt="" align="right" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/030509-0231-creatingthe2.png" />sloppy process and they simply don’t facilitate the sloppiness.</p>
<p>Every writer is creative in a different way. I personally start by making a miscellaneous brain dump. Everything relevant to the topic is listed out and then I start to type additional thoughts which seem relevant. After a while, I run out of steam which prompts research, reference collection, reference reading and chicken scratch notes.&#160; Then I groan, swear a little, go for a walk, and kick ideas around in my head.</p>
<p>When I come back to the computer, I move things around even further and excise any bits that now seem irrelevant (carefully saving them for later). Usually by this point, I have probably started over a few times and hopefully clarified my goals.&#160; If the process works, I get a slightly better fix on direction I intend to take and, eventually, a first draft magically seems to appear.&#160; That is when the real fun starts.</p>
<p>Unfortunately, LyX was designed to work linearly. You start at the beginning and continue to the end. All of the words and ideas are supposed to come marching out like perfect little soldiers on parade day. Using such a tool can be extremely frustrating to someone who doesn&#8217;t think in a linear fashion: I want the freedom to be intuitive! </p>
<p>And in the name of freedom, I will probably use of four or five programs spanning two operating systems: OneNote for data collection, KDissert or FreeMind for MindMapping, and Word or LyX for the actual writing. Then I go back and update my files in the other programs.</p>
<p>There should be a better way! I want to use the same tool from beginning to end, not continually move between the word processor, the outliner, the mind mapper, and the note taker.</p>
<h2>A Potential Solution: Scrivener</h2>
<p>There just happens to be a program on Mac OS X that was apparently made for scattered people: <a href="http://www.literatureandlatte.com/">Scrivener</a>. Scrivener employs a number of simple (yet profoundly powerful) metaphors that let you manage the anarchy of creativity. These include:</p>
<ol>
<li>An intuitive and simple map of the project (similar to Word&#8217;s Outline View). </li>
<li>A corkboard that lets you create any number of &quot;index cards&quot; with a title and short summary of the card&#8217;s contents. </li>
<li>An outline view where the entire structure of your document can be seen and manipulated through drag and drop. </li>
</ol>
<p>Scrivener leverages its corkboard metaphor and outliner by linking the &quot;index card&quot; to a real piece of text. Thus, the index card actually represents the physical chunk of text in the underlying draft. The index cards can be moved, nested and set into folders and any changes made to the index cards are then instantly applied to the overall structure of the document. Pretty cool, huh? A given index card can represent a section, paragraph, chapter, or sentence. Even better is that cards can be split or joined together easily.</p>
<p>The practical result is that the entire draft is instantly fluid. You can experiment with new ideas, split away sections of text for later use, and re-arrange things as inspiration strikes you. It substantially enhances the organic process already provided by the computer. I know a surprising number of people who have moved to the Mac platform just so that they can use Scrivener.</p>
<p>While other programs (like Semantik, formally known as KDissert) use similar metaphors, the use of a &quot;summary&quot; field is what makes Scrivener stand apart. The summary begins life as an outline point and later becomes the synopsis of the section. It can keep notes, goals, or thoughts in addition to a regurgitation of what is in the text.&#160; And no other program uses anything like it. Therefore, while you can replicate many of Scrivener&#8217;s best features through Word or LyX&#8217;s outline view, you are stuck manipulating the entire text (which becomes impractical and unwieldy very quickly).</p>
<p style="text-align: center"><img alt="" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/030509-0231-creatingthe3.png" /></p>
<p style="text-align: justify; margin-left: 18pt"><strong>The Outliner. </strong>Scrivener includes a high quality outliner that allows individual elements to be repositioned via drag and drop. Each outline item is connected to the text in the actual draft; therefore, changes in the outline view are immediately reflected in the structure of the document. Scrivener&#8217;s outliner is particularly effective via the inclusion of a &quot;synopsis&quot; field that contains a summary of the text. This summary field isn&#8217;t part of the full draft, and as a result, can begin life as an outline point that reflects the goal of the section. In contrast, the outline view in Microsoft Word uses the text of the actual document. In long or complicated documents, it is a slightly less than effective way to add new ideas.</p>
<p style="text-align: center"><img alt="" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/030509-0231-creatingthe4.png" /></p>
<p style="margin-left: 18pt"><strong>The Corkboard. </strong>As an alternative to the outliner, Scrivener also provides a &quot;corkboard&quot; where parts of the document can be moved around on index cards. Each card has a title and summary that is is linked to a block of text in the document. Unlike the outliner, however, the corkboard only deals with one navigational element of the document. When at the top level, the cards might represent the parts or chapters of a book. When working on the corkboard of a book chapter, they might represent sections or individual scenes. There is no limit to the number of cards or nesting that can be done.</p>
<h3>Scrivener&#8217;s Singular Strength</h3>
<p>Though Scrivener handles the creative process beautifully, it isn&#8217;t a serious word or document processor. On the program&#8217;s <a href="http://www.literatureandlatte.com/scrivener.html">website</a>, the primary developer states that Scrivener is a &quot;personal writing tool.&quot; As a result, it seems uniquely geared to creative writing; that is to say, novels and screenplays. Not many novels or screenplays have a need for a bibliography, index, appendix, footnotes, or endnotes. As a result, Scrivener cannot handle the minutiae of complicated documents.</p>
<p>Just forget support for hyperlinks, cross-links, cross-references, figures, legends or graphics. They&#8217;re outside the developer&#8217;s stated need and are unlikely to appear. That&#8217;s too bad, because it makes Scrivener worthless to those who need support for these features. Microsoft Word has them and LyX has them, OpenOffice pretends that it has them. However, Word, LyX, OpenOffice and other word processors completely lack the creative tools that make Scrivener a joy to use.</p>
<p style="text-align: center"><img alt="" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/030509-0231-creatingthe5.png" /></p>
<p style="margin-left: 18pt"><strong>A Glorified Text Editor. </strong>The weakest component of Scrivener is the actual word processor. Advanced (and even not so advanced) features like footnotes, endnotes, cross references of links are completely unsupported. It is simply unsuited to writing a complicated document like an article or cross-referenced book.</p>
<h2>A Combined Approach</h2>
<p>The simplicity of Scrivener&#8217;s word processor causes a semi-crisis. If given my choice, I would compose nearly everything in it for the convenience of its outliner and index cards. However, it isn&#8217;t up to supporting the type of heavy lifting I am often asked to do. While I could use it as my creative crutch, that worsens the overall problem. Instead of four programs across two platforms (Window/Linux), I would be using five programs across three platforms; not what I&#8217;m aiming for. I want to simplify my work process, not make it more complicated.</p>
<p>I&#8217;ve tried to find what I want in the software of others and determined that it doesn&#8217;t exist. The fallback is to develop it myself by turning to opensource solutions. Since LyX already meets my needs as a document processor, it is a great place to start. As a front-end to LaTeX, it automatically supports the advanced features I need. It is cross-platform, which means that the writing environment would be the same regardless of whether I am working on Windows, Mac OS X, or Linux. Additionally, it has deep integration with <a href="http://www.oak-tree.us/blog/index.php/science-and-technology/svn">revision control systems</a>, which greatly simplify collaboration. Last, it is available under the GNU public license, which means that I can access the source code. LyX combined with the same creative tools found in Scrivener would be nearly perfect.</p>
<p><img alt="" align="left" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/030509-0231-creatingthe6.png" /></p>
<h3>Almost There: LyX&#8217;s Existing Features</h3>
<p>After a careful review of LyX, it becomes obvious that much of the functionality required for a robust outliner and corkboard is already present. At left is the outline panel in LyX. The outline is automatically generated from the heading information in a given document and any child documents. The particular example shown here is series of three essays kept in four different files: a master document and three child documents.</p>
<p>LyX already recognizes blocks of text and understands their contextual meaning. In fact, you can already specify the order of any element and what position it holds. Further, individual text elements can be moved from one child document to another. In other words, nearly all of the background elements for a Scrivener-like outliner or corkboard are already present.</p>
<h3>Form and Function</h3>
<p>What is missing is the ability to assign a summary or &quot;synopsis&quot; to a given chunk of text. This would ideally exist as associated meta-data and affiliated with a particular tag. Additionally, it might prove convenient to associate other meta-data in addition to the summary.</p>
<p>To add the &quot;creative elements,&quot;&#160; most development could focus on creating a user interface that&#160; blends the existing outline view with the functional equivalents of the corkboard and outliner from Scrivener. Convenient drag and drop of document sections from within the document map, outliner, or corkboard would allow text to be moved and positioned. The outliner would show the complete document with the option to expand or collapse a given section. The corkboard, in contrast, would show only the elements contained in one particular outline node.</p>
<p>The figures below show an example of what such a user-interfaces might look like. The first figure shows the outliner and the second shows the corkboard. (Though the index cards and outline points of the example correspond to the chapters and sections of the document map, this should not necessarily be required in an ideal implementation. Instead, the user would be able to determine which index cards correspond to sections and which correspond to a specific piece of evidence, argument, or narrative. That is to say, the user should be allowed the freedom to create the outline structure, rather than have it imposed.)</p>
<h2>Proposal</h2>
<p>I propose to create an add-on for LyX which would combine the best features of Scrivener with the already powerful capabilities of LyX. As described above, this would consist of two inter-related tools:</p>
<p>1) The Outliner. The outliner would be an expandable panel where the structure and rough content of a document could be laid out prior to beginning the first draft. Specific features of the Outliner would include:</p>
<p>a. Each outline point would have room for a title, synopsis and type of content (drawn from the list provided by the LaTeX class).</p>
<p>b. Individual nests in the outline can be expanded or collapsed.</p>
<p>c. Elements can be dragged and dropped from one point to another. The underlying document will be updated to reflect any changes.</p>
<p>d. Though most points in the outline might correspond to headings (e.g. book parts, chapters, sections, or subsections), this would not be required. Instead, any block of text could be assigned to a point in the outline. It would behave in precisely the same manner as other outline elements.</p>
<p style="text-align: center"><img alt="" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/030509-0231-creatingthe7.png" /></p>
<p>2) The Corkboard. Housed in the same panel as the Outliner would also be a digital Corkboard which would display a small &quot;Index card&quot; with the title of an outline element in addition to the synopsis. However, in contrast to the outline, only the individual elements for a selected point in the document map would be shown. In the example below, the sections of a specific chapter, &quot;Eragon Shadeslayer: Sociopath&quot; are shown with their corresponding summaries. Changes in the order of the cards would be reflected in the underlying draft.</p>
<p style="text-align: center"><img alt="" src="http://www.oak-tree.us/blog/wp-content/uploads/2009/03/030509-0231-creatingthe8.png" /></p>
<h2>Conclusion</h2>
<p>The proposed additions to LyX would further expand its other excellent features, making it the only document/word processor with a powerful set of creative tools. By associating blocks of text with additional meta-data (like a synopsis), working with the document structure would become a visual and interactive process, thereby allowing for much greater flexibility. Indeed, such changes would bring LyX one step closer to writing perfection.</p>
<p><em>Note: A PDF copy of this article can be found <a href="http://www.oak-tree.us/stuff/LyX-Proposal.pdf">here</a>.</em></p>
<h3>Similar Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.oak-tree.us/blog/index.php/2009/05/13/lyx-outline" rel="bookmark" title="May 13, 2009">Introducing LyX-Outline 0.1</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/30/latex-cv-part2" rel="bookmark" title="November 30, 2009">Typeset Your Curriculum Vitae &ndash; Part 2: Extending and Customizing an Existing Document Class</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/11/20/software-cuttingoutclutter" rel="bookmark" title="November 20, 2008">On Writing &ndash; Software that cuts out distraction and clutter</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2008/12/14/wpf-svg-xaml-part2" rel="bookmark" title="December 14, 2008">WPF – SVG Graphics and XAML – Part 2</a></li>
<li><a href="http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih" rel="bookmark" title="November 2, 2009">Customizing LyX: Create an NIH Grant Proposal Template</a></li>
</ul>
<p><!-- Similar Posts took 20.819 ms --></p>
<p>Copywrite 2009: Rob Oakes.  <a href="http://www.oak-tree.us/blog">Apolitically Incorrect</a><br/><br/><a href="http://www.oak-tree.us/blog/index.php/2009/03/04/perfect-tool">Creating the Perfect Writing Tool: A Proposal</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oak-tree.us/blog/index.php/2009/03/04/perfect-tool/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
