<?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>(b)logophile &#187; (La)TeX</title>
	<atom:link href="http://www.logophile.org/blog/tags/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.logophile.org/blog</link>
	<description>blog of a logophile (not "logos", but "λόγος")</description>
	<lastBuildDate>Fri, 19 Mar 2010 19:34:30 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>In which I learn things about TeX</title>
		<link>http://www.logophile.org/blog/2009/04/27/in-which-i-learn-things-about-tex/</link>
		<comments>http://www.logophile.org/blog/2009/04/27/in-which-i-learn-things-about-tex/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 13:26:55 +0000</pubDate>
		<dc:creator>tikitu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[(La)TeX]]></category>
		<category><![CDATA[epiphany]]></category>
		<category><![CDATA[geek]]></category>

		<guid isPermaLink="false">http://www.logophile.org/blog/?p=652</guid>
		<description><![CDATA[Apparently a local texmf tree no longer requires the ls-R file. Since how long, I know not, nor care I particularly. Nor expect I you to care, particularly, but I was tickled by it. Yet another piece of obscurity and complication getting slightly simpler in the LaTeX world.

(Thanks to Micha &#8212; I discovered this while [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently a local texmf tree no longer requires the <code>ls-R</code> file. Since how long, I know not, nor care I particularly. Nor expect I you to care, particularly, but I was tickled by it. Yet another piece of obscurity and complication getting slightly simpler in the LaTeX world.</p>

<p>(Thanks to Micha &#8212; I discovered this while helping him tidy up his texmf tree. And yes, I guess this is less down to (La)TeX and more down to my distribution, details jargon technicalities disclaimer.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logophile.org/blog/2009/04/27/in-which-i-learn-things-about-tex/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Pdf shuffling in LaTeX</title>
		<link>http://www.logophile.org/blog/2009/04/08/pdf-shuffling-in-latex/</link>
		<comments>http://www.logophile.org/blog/2009/04/08/pdf-shuffling-in-latex/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 13:08:40 +0000</pubDate>
		<dc:creator>tikitu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[opinion]]></category>
		<category><![CDATA[(La)TeX]]></category>
		<category><![CDATA[geek]]></category>

		<guid isPermaLink="false">http://www.logophile.org/blog/?p=626</guid>
		<description><![CDATA[Pdfpages is a LaTeX package that lets you drop individual pages of other pdfs into your LaTeX documents. Put it together with the \foreach command provided by pgf/TikZ, and you can get quite a bit done very simply.

For instance, you can scan in somebody&#8217;s photocopy of a paper from 1978 using the office printer, which [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=pdfpages">Pdfpages</a> is a LaTeX package that lets you drop individual pages of other pdfs into your LaTeX documents. Put it together with the <code>\foreach</code> command provided by <a href="http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=pgf">pgf</a>/<a href="http://pgf.sourceforge.net/">TikZ</a>, and you can get quite a bit done very simply.</p>

<p>For instance, you can scan in somebody&#8217;s photocopy of a paper from 1978 using the office printer, which emails you a pdf of the scan, and run it through this file to get a single page of the original on each page of the pdf:</p>


<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">documentclass</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">pgffor</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">pdfpages</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% Paper starts on a right-hand page of the original book,</span>
<span style="color: #2C922C; font-style: italic;">% we don't need the final page of the paper before it.</span>
<span style="color: #800000; font-weight: normal;">\includepdf</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">pages=1,
            angle=90,
            trim=<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">0 0 0 135mm</span><span style="color: #E02020; ">}</span>
            </span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">Kamp78SemanticsVersusPragmatics.pdf</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% For each double-page spread, rip out the left hand then</span>
<span style="color: #2C922C; font-style: italic;">% the right hand side. The trim was set by eye.</span>
<span style="color: #800000; font-weight: normal;">\foreach</span> <span style="color: #800000; font-weight: normal;">\page</span> in <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2,...,17</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">
  <span style="color: #800000; font-weight: normal;">\includepdf</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">pages=<span style="color: #800000; font-weight: normal;">\page</span>,
              angle=90,
              trim=<span style="color: #E02020; ">{</span>0 135mm 0 0</span><span style="color: #E02020; ">}</span>
              </span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">Kamp78SemanticsVersusPragmatics.pdf</span><span style="color: #E02020; ">}</span>
  <span style="color: #800000; font-weight: normal;">\includepdf</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">pages=<span style="color: #800000; font-weight: normal;">\page</span>,
              angle=90,
              trim=<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">0 0 0 135mm</span><span style="color: #E02020; ">}</span>
              </span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">Kamp78SemanticsVersusPragmatics.pdf</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></pre></div></div>


<p>(This also gives me a chance to <del datetime="2009-04-08T13:06:29+00:00">show off</del> try out my new <a href="http://wordpress.org/extend/plugins/wp-syntax/">code-formatting</a> plugin. Pretty!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logophile.org/blog/2009/04/08/pdf-shuffling-in-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ClassicThesis LaTeX style</title>
		<link>http://www.logophile.org/blog/2008/11/28/classicthesis-latex-style/</link>
		<comments>http://www.logophile.org/blog/2008/11/28/classicthesis-latex-style/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 12:14:04 +0000</pubDate>
		<dc:creator>tikitu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[(La)TeX]]></category>
		<category><![CDATA[beautiful]]></category>
		<category><![CDATA[PhD]]></category>

		<guid isPermaLink="false">http://www.logophile.org/blog/?p=524</guid>
		<description><![CDATA[Andr&#233; Miede&#8217;s Classic Thesis LaTeX style is a thing of beauty.

Things to like about it:


It&#8217;s damn elegant.
It&#8217;s inspired by Bringhurst&#8217;s The Elements of Typographic Style, which remains the most eloquent and convincing argument for attention to typography I&#8217;ve ever read.
Namecheck of the booktabs documentation (on why the tables don&#8217;t have vertical lines), which I&#8217;ve also [...]]]></description>
			<content:encoded><![CDATA[<p>Andr&eacute; Miede&#8217;s <a href="http://ctan.org/tex-archive/macros/latex/contrib/classicthesis/">Classic Thesis LaTeX style</a> is a thing of beauty.</p>

<p>Things to like about it:</p>

<ul>
<li>It&#8217;s <em>damn</em> elegant.</li>
<li>It&#8217;s inspired by Bringhurst&#8217;s <a href="http://www.librarything.com/work/2143"><em>The Elements of Typographic Style</em></a>, which remains the most eloquent and convincing argument for attention to typography I&#8217;ve ever read.</li>
<li>Namecheck of the <a href="http://ctan.org/tex-archive/macros/latex/contrib/booktabs/">booktabs</a> documentation (on why the tables don&#8217;t have vertical lines), which I&#8217;ve also <a href="http://www.logophile.org/LaTeX/EssentialDocs#toc1">tried to promote</a>.</li>
<li>&#8220;And no: the lines are not too short.&#8221;</li>
<li>Sidenotes. (And footnotes. But sidenotes. Lovely.)</li>
<li>The author wants postcards. And asks that you send complaints/suggestions/questions on the postcards, not by email. Nice filter.</li>
</ul>

<p>There&#8217;s also the <a href="http://ctan.org/tex-archive/macros/latex/contrib/arsclassica/">Ars Classica</a> package, which patches ClassicThesis for a slightly different look. That&#8217;s all in Italian, but the code is almost readable anyway (much more LaTeX than TeX) which is encouraging for the prospect of coming up with a patch myself.</p>

<p>Reckon I&#8217;ll be <a href="http://postcards.miede.de/">sending a postcard</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logophile.org/blog/2008/11/28/classicthesis-latex-style/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>LeGO talk: slides, how-to</title>
		<link>http://www.logophile.org/blog/2008/10/29/lego-talk-slides-how-to/</link>
		<comments>http://www.logophile.org/blog/2008/10/29/lego-talk-slides-how-to/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 14:38:44 +0000</pubDate>
		<dc:creator>tikitu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[(La)TeX]]></category>
		<category><![CDATA[PhD]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.logophile.org/blog/?p=483</guid>
		<description><![CDATA[I&#8217;ve posted the slides (3.1M download!) to my LeGO talk, on my publications page. A bit about how and why, and some technical questions maybe the laziweb will answer for me, after the gap.



I don&#8217;t usually do this, since my talks tend to rely a lot on &#8230; well, talking. The slides without the patter [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve posted the <a href="http://www.logophile.org/pmwiki/uploads/Academic/LeGO-10-08-slides-vert.pdf">slides</a> (3.1M download!) to my LeGO talk, on my <a href="http://www.logophile.org/Academic/Publications">publications page</a>. A bit about how and why, and some technical questions maybe the laziweb will answer for me, after the gap.</p>

<p><span id="more-483"></span></p>

<p>I don&#8217;t usually do this, since my talks tend to rely a lot on &#8230; well, talking. The slides without the patter can vary between cryptic, irrelevant, and just plain wrong. (I quite enjoy letting the audience absorb some choice piece of wisdom on a slide then saying &#8220;This isn&#8217;t true.&#8221;) This time I&#8217;ve taken the trouble to add notes to each slide, explaining what I had to say and why I wanted to say it. (I&#8217;ve incorporated a bit of the discussion as well, but resisted the temptation to improve things with the benefit of hindsight.)</p>

<p>For others interested in how to do this, Beamer has a <code>\note{}</code> macro. If you issue it in a frame, its contents get collected into a notes &#8220;slide&#8221; that comes after the frame (it does the right thing with frames containing transitions: every transition semi-frame gets the same notes slide, so the notes stay the same while the frame changes). Do this for every frame and you get an alternating sequence frame/notes/frame/notes&#8230; The next thing to do is put each frame/notes pair on a single page. I couldn&#8217;t find a tidy (and free) way to do this, so I got my officemate to print-to-pdf on his Mac, which did the job. (That&#8217;s why the notes are <em>under</em> the slides, not beside: we couldn&#8217;t figure out the options that would do it the other way.)</p>

<p>Some questions for the laziweb:</p>

<ol>
<li>Any good pdf manipulation programs, free for linux? For (for example) arranging several consecutive pages onto one page (like you can do with <code>pstops</code>).</li>
<li>How does the over-and-under positioning work (if anyone is actually reading the slides, that is) for you? I have a weird screen ratio that makes it perfect (I lie my screen on its side, for comfortably reading a4 pages), but I guess it&#8217;s less handy in 800&#215;600. Do I need to worry excessively about this?</li>
<li>Beamer produces really <em>big</em> pdfs &#8212; 3.1M for that presentation. Any tips on cutting them down to size would be great.</li>
<li>I couldn&#8217;t seem to get beamer to make the notes slides plain, despite following what I thought were the instructions in the manual. Has anyone made this work, and if so how?</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.logophile.org/blog/2008/10/29/lego-talk-slides-how-to/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thesis-writing in LaTeX</title>
		<link>http://www.logophile.org/blog/2008/08/22/thesis-writing-in-latex/</link>
		<comments>http://www.logophile.org/blog/2008/08/22/thesis-writing-in-latex/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 11:35:46 +0000</pubDate>
		<dc:creator>tikitu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[(La)TeX]]></category>
		<category><![CDATA[PhD]]></category>

		<guid isPermaLink="false">http://www.logophile.org/blog/?p=436</guid>
		<description><![CDATA[I&#8217;ve spent a bit of time organising my LaTeX setup for maximal dissertatory efficiency. Mainly I want a system that lets me put definitions somewhere sensible (a thesis.sty package), but also makes it easy to typeset chapters individually to hand around, without duplicating definitions or having to hand-edit files for book or single-chapter output.

I&#8217;ve got [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent a bit of time organising my LaTeX setup for maximal dissertatory efficiency. Mainly I want a system that lets me put definitions somewhere sensible (a thesis.sty package), but also makes it easy to typeset chapters individually to hand around, without duplicating definitions or having to hand-edit files for book or single-chapter output.</p>

<p>I&#8217;ve got a basic system that works pretty well, and now it has <a href="/LaTeX/MyThesisSetup">its own page on my site</a>. Any suggestions would be welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logophile.org/blog/2008/08/22/thesis-writing-in-latex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New TeX distribution</title>
		<link>http://www.logophile.org/blog/2007/06/06/new-tex-distribution/</link>
		<comments>http://www.logophile.org/blog/2007/06/06/new-tex-distribution/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 12:36:14 +0000</pubDate>
		<dc:creator>tikitu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[(La)TeX]]></category>

		<guid isPermaLink="false">http://www.logophile.org/blog/?p=273</guid>
		<description><![CDATA[Shipping even as we speak, your favourite typesetting engine now has wheels:



Snapped from the train on the way back from Paris. I guess I&#8217;ll post photos of that trip at some point too.
]]></description>
			<content:encoded><![CDATA[<p>Shipping even as we speak, your favourite typesetting engine now has <i>wheels</i>:</p>

<p><a href='http://www.logophile.org/blog/wp-content/uploads/2007/06/tex-small.jpg' title='TeX truck'><img class="center" src='http://www.logophile.org/blog/wp-content/uploads/2007/06/tex-small.jpg' alt='TeX truck' /></a></p>

<p>Snapped from the train on the way back from Paris. I guess I&#8217;ll post photos of that trip at some point too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logophile.org/blog/2007/06/06/new-tex-distribution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LaTeX math mode and italics</title>
		<link>http://www.logophile.org/blog/2006/09/05/latex-math-mode-and-italics/</link>
		<comments>http://www.logophile.org/blog/2006/09/05/latex-math-mode-and-italics/#comments</comments>
		<pubDate>Tue, 05 Sep 2006 11:51:43 +0000</pubDate>
		<dc:creator>tikitu</dc:creator>
				<category><![CDATA[(La)TeX]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.logophile.org/blog/?p=208</guid>
		<description><![CDATA[It&#8217;s an awfully simple rule: Don&#8217;t put words (of more than one letter) in pure math mode. This should be carved into the monitor of every mathematician and (particularly) computer scientist who ever wrote a paper in LaTeX. Don&#8217;t use math mode for words. Don&#8217;t (don&#8217;t you dare) use math mode for italics.

Why not?

The spacing [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s an awfully simple rule: <b>Don&#8217;t put words (of more than one letter) in pure math mode.</b> This should be carved into the monitor of every mathematician and (particularly) computer scientist who ever wrote a paper in LaTeX. Don&#8217;t use math mode for words. Don&#8217;t (don&#8217;t you <em>dare</em>) use math mode for italics.</p>

<h3>Why not?</h3>

<p>The spacing is wrong. It&#8217;s usually only slightly, subtly wrong. But around an &#8216;f&#8217;, it&#8217;s grotesque. The reason is that in math mode TeX assumes individual letters represent individual variables, so it doesn&#8217;t use the kerning information that would otherwise tell it to close up the spacing around the &#8216;f&#8217;, since its ascender and descender stick out sideways. This behaviour is fine if the &#8216;f&#8217; is a function variable, but it doesn&#8217;t work in &#8216;infold&#8217;, for instance.</p>

<h3>Aren&#8217;t you being a bit picky?</h3>

<p>Nope. I have in front of me page 307 of <a href="http://www.cs.kent.ac.uk/people/staff/sjt/TTFP/">Type Theory &amp; Functional Programming</a>, which contains a function definition beginning <em>in f old f st</em>&#8230; or possible <em>inf old f st</em>, or (as in fact intended) <em>infold f st</em>, where <em>infold</em> is the function name, <em>f</em> is a function argument, and <em>st</em> is a state argument. The link takes you to an online PDF copy, go check it out. I&#8217;ll wait.</p>

<p>See it? If you look closely you might notice some weird spacing on the right-hand-side also &#8212; it <em>would</em> be truly picky to call that out, but the oddity on the left really interferes with the interpretation. (Why that page? It happened to come out on top of a signature as I was folding the book up for binding. And 307 is a nice number, don&#8217;t you think?)</p>

<h3>What should it look like then?</h3>

<p>Simple answer: use <code>\mathit{}</code> and <code>\mathrm{}</code> to get properly spaced <em>words</em>, italicised or roman, in math mode. (Thanks Tom for the <b>r</b>e<b>m</b>inder.)</p>

<p>Slightly more complicated and pedantic answer: it&#8217;s worth carefully considering whether you need italics at all. Traditionally these are used for <em>variable</em> quantities or entities; a function variable <em>f</em> which can take many values, a state variable <em>st</em> likewise (although I&#8217;d prefer <em>s</em>), and so on. It&#8217;s flatout wrong to use italics for well-known functions like sine and cosine, which is why LaTeX provides primitives <code>\sin</code> and <code>\cos</code> which typeset these in upright roman. So if you&#8217;re defining a function &#8220;infold&#8221;, which will always have the same definition, it might make sense to put that in roman too. Another case which crops up often (in the same line of TT&amp;FP, for instance) is an equality symbol subscripted with &#8216;df&#8217; or &#8216;def&#8217; or similar, for &#8220;definitional&#8221;. Here there&#8217;s really no reason to use italics at all, and of course the spacing is again messed up by the &#8216;f&#8217;.</p>

<p>All right, now I <em>am</em> being picky.</p>

<h3>Can I go now?</h3>

<p>Yes yes, run along.</p>

<p>Oh, one more thing. I don&#8217;t mean to pick on Simon Thompson, who after all has written a textbook that I just downloaded and printed and expect to learn quite a lot from. I use that example because it shows that it&#8217;s not just students writing term papers who do this stuff, it crops up also in books with editors, that get published and that people pay money for. And it&#8217;s so <em>easy</em> to avoid, once you know there&#8217;s a problem. So do try, please? You&#8217;ll do wonders for my blood pressure.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logophile.org/blog/2006/09/05/latex-math-mode-and-italics/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Presentations in LaTeX</title>
		<link>http://www.logophile.org/blog/2005/12/29/presentations-in-latex/</link>
		<comments>http://www.logophile.org/blog/2005/12/29/presentations-in-latex/#comments</comments>
		<pubDate>Thu, 29 Dec 2005 17:49:15 +0000</pubDate>
		<dc:creator>tikitu</dc:creator>
				<category><![CDATA[(La)TeX]]></category>

		<guid isPermaLink="false">http://www.logophile.org/blog/?p=117</guid>
		<description><![CDATA[I&#8217;ve always used prosper for presentations, but someone recently put me onto beamer, and I must say I&#8217;m impressed. It lets you structure your file using standard LaTeX sectioning, and produces section-level tables of contents by default. There are 26 different themes, and an architecture for easy colour-scheme changes and so on. The documentation (beameruserguide.pdf) [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always used <a href="http://ctan.org/tex-archive/macros/latex/contrib/prosper/">prosper</a> for presentations, but someone recently put me onto <a href="http://ctan.org/tex-archive/macros/latex/contrib/beamer/">beamer</a>, and I must say I&#8217;m impressed. It lets you structure your file using standard LaTeX sectioning, and produces section-level tables of contents by default. There are 26 different themes, and an architecture for easy colour-scheme changes and so on. The documentation (<a href="ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf">beameruserguide.pdf</a>) is a bit chatty for my taste, but pretty comprehensive: 203 pages! Very little of this is needed to use the package though &#8212; there&#8217;s a tutorial introduction, 70 pages showing the various themes, a &#8220;workflow&#8221; (only three pages, but really&#8230;) and significant repeated material (tutorial, reference, and how-to).  Some of this space is also taken up with hints about presentation, most pretty accurate:</p>

<blockquote>
  <p><em>Always</em> test your presentation. For this, you should vocalize or subvocalize your talk in a quiet
  environment. Typically, this will show that your talk is too long. You should then remove parts of your
  presentation [...]</p>
</blockquote>

<p>I&#8217;m currently putting together my first presentation using <code>beamer</code>, so I can&#8217;t really give it a solid thumbs-up yet. It&#8217;s looking good though, the structuring and handling of overlays (step-by-step appearance of material on one slide) seems much more intuitive than in <code>prosper</code>. (There&#8217;s a command <code>\pause</code>, for instance, which introduces an overlay transition at that point.)</p>

<p>Both <code>beamer</code> and <code>prosper</code> are in CTAN contrib and might not be included in your distro. You can get them from CTAN, of course (links above), but <code>beamer</code> is also packaged for Debian, as <code>latex-beamer</code>. The docs don&#8217;t get put in your texmf tree though &#8212; you&#8217;ll find them under <code>/usr/share/doc/latex-beamer</code>.</p>

<p>PS: The following, which I&#8217;m going to shamelessly steal, is described (in the Guidelines) as &#8220;the central rule of typography&#8221;:</p>

<blockquote>
  <p>Every rule can be broken, but no rule may be ignored.</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.logophile.org/blog/2005/12/29/presentations-in-latex/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>New version of &#8220;Using Imported Graphics in LaTeX&#8221;</title>
		<link>http://www.logophile.org/blog/2005/12/13/new-version-of-using-imported-graphics-in-latex/</link>
		<comments>http://www.logophile.org/blog/2005/12/13/new-version-of-using-imported-graphics-in-latex/#comments</comments>
		<pubDate>Tue, 13 Dec 2005 16:33:56 +0000</pubDate>
		<dc:creator>tikitu</dc:creator>
				<category><![CDATA[(La)TeX]]></category>

		<guid isPermaLink="false">http://www.logophile.org/blog/?p=111</guid>
		<description><![CDATA[Keith Reckdahl&#8217;s excellent tutorial/reference has been updated. The new title is Using Imported Graphics in LaTeX and pdfLaTeX, and the big update is of course the inclusion of pdfLaTeX.

Even if you never use imported graphics, UIG is possibly worth checking out. The second half  describes all the unusual things you can do with LaTeX [...]]]></description>
			<content:encoded><![CDATA[<p>Keith Reckdahl&#8217;s excellent tutorial/reference has been updated. The new title is <a href="http://tug.ctan.org/tex-archive/info/epslatex/english/"><em>Using Imported Graphics in LaTeX and pdfLaTeX</em></a>, and the big update is of course the inclusion of pdfLaTeX.</p>

<p>Even if you never use imported graphics, <em>UIG</em> is possibly worth checking out. The second half  describes all the unusual things you can do with LaTeX floats (<code>figure</code> and <code>table</code>) &#8212; adjusting the default placement, moving captions to odd places, numbering sub-figures, and so on. You can read it cover-to-cover as a tutorial, but you can also easily dip in, FAQ-style.</p>

<p>This one has for years now been on my best-of list of LaTeX documentation. At the very least, you should bookmark it for when that deadline is closing in and the damn figures are pushing you over the page limit&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logophile.org/blog/2005/12/13/new-version-of-using-imported-graphics-in-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>professionalism in writing LaTeX documents</title>
		<link>http://www.logophile.org/blog/2005/05/17/professionalism-in-writing-latex-documents/</link>
		<comments>http://www.logophile.org/blog/2005/05/17/professionalism-in-writing-latex-documents/#comments</comments>
		<pubDate>Tue, 17 May 2005 11:18:01 +0000</pubDate>
		<dc:creator>tikitu</dc:creator>
				<category><![CDATA[(La)TeX]]></category>
		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://www.logophile.org/blog/?p=37</guid>
		<description><![CDATA[This essay comes from my experiences proofreading LaTeX documents,
both semi-professionally and for friends. It is intended mainly for
technical writing, where LaTeX really comes into its own and where
attention to detail can both greatly assist the proofreader or
typesetter, and greatly improve the readability of the
manuscript. This is neither a description of how to use LaTeX nor [...]]]></description>
			<content:encoded><![CDATA[<p>This essay comes from my experiences proofreading LaTeX documents,
both semi-professionally and for friends. It is intended mainly for
technical writing, where LaTeX really comes into its own and where
attention to detail can both greatly assist the proofreader or
typesetter, and greatly improve the readability of the
manuscript. This is neither a description of how to use LaTeX nor a
replacement for a decent style guide for technical writing. I will
discuss <em>concepts</em> that should be kept in mind while writing, and give
some suggestions on how to use LaTeX effectively to manage them.</p>

<p><span id="more-37"></span></p>

<p>(Note: I refer throughout to <em>La</em>TeX. These ideas apply just as much
to TeX, and in fact to any &#8212;markup-based&#8212; document preparation
system. The examples are in LaTeX, because that&#8217;s what I use.)</p>

<h3>Writing LaTeX for the reader and for the typesetter</h3>

<p>Two readers of your manuscript must be kept in mind: the eventual
reader of the published product, and the typesetter at the publishing
office who must correct your typos and apply the house style to what
you have written. For the first, the main concerns are <em>consistency</em>
and <em>clarity</em>. For the second, I advocate writing LaTeX as a
 <em>programming language</em> as well as a typesetting system. These concerns
overlap to some extent; good programming practises help maintain
consistency, while simplicity and clarity are of paramount importance
for writing code (as anyone who has debugged code written by someone
else can confirm). Even if you are your own typesetter (for student
papers, for example, or a thesis) the techniques I describe will be
useful. They&#8217;ll make your manuscript easier to write, and <em>much</em>
easier to edit.</p>

<p>First I&#8217;ll discuss writing for the reader, then afterwards how
considering LaTeX as a programming language can make things
easier. For those who don&#8217;t consider themselves programmers, this
second section is non-technical and even more important for you than
for the code junkies, since these simple techniques are likely to be
both unfamiliar and very helpful.</p>

<h3>Consistency and clarity in technical writing</h3>

<p>There are two major areas where consistency becomes an issue in
technical writing: in technical <em>notation</em>, and in the basic business
of <em>document management</em>. The first category includes mathematical
expressions, and whatever specialised notation you might happen to
need for your subject. By &#8220;document management&#8221; I mean such details as
crossreferences, citations, and fonts and styling. I assume the reader
is familiar with <code>\ref{}</code>, <code>\cite{}</code>, <code>\section{}</code> and so on. I&#8217;m
going to discuss some more general methods for <em>using</em> these
consistently.</p>

<h4>Technical notation</h4>

<p>The biggest thing you should be conscious of here is that <em>choice of
font styling matters</em>. When used technically, &#8220;x&#8221;, &#8220;<em>x</em>&#8221; and &#8220;<b>x</b>&#8221;
could refer to three different concepts or objects. As an author, you
should choose your styling deliberately and with care. There are a
number of generally established principles that can help you. (In this
section I refer to &#8220;font&#8221; and &#8220;styling&#8221; more or less interchangeably.)</p>

<h5>Variables are italic</h5>

<p>The most general rule I know of is that variables are given italics. I
mean &#8220;variable&#8221; in the mathematical sense: &#8216;placeholder&#8217; words whose
referent is unspecified, or changes over time. (The canonical example
is the use of <em>x</em> to represent an unspecified number in a mathematical
expression.) Note that variables do not have to be mathematical! The
sentences &#8220;I say something, and you say something back&#8221; and &#8220;I say
<em>something</em> and you say <em>something</em> back&#8221; have very different meanings
if &#8220;<em>something</em>&#8221; is interpreted as a variable.</p>

<p>In LaTeX you usually put variables in math mode. A common mistake to
avoid is mentioning a variable in text mode when it also appears in a
mathematical expression (&#8220;&#8230;the formula is <em>2x(x+y)</em> where x and y
are positive&#8230;&#8221;). The correct code is <code>where $x$ and $y$ are</code>, or
<code>where \(x\) and \(y\) are</code>, producing &#8220;where <em>x</em> and <em>y</em> are&#8221;. (The
pitfalls of math mode are many! Some more common mistakes are
discussed <a href="#math-mode">later</a>. The most important is that
math mode should <em>not</em> be used to produce italics over whole-word
variables, since the spacing is incorrect &#8212; try it with &#8220;effect&#8221; and
see for yourself.)</p>

<p>Another consequence of the variables-are-italic rule is that most
non-variable entities should <em>not</em> be italicised. Another common
misuse is to spell out functions such as sine and cosine in math
mode. Since the referents of the words &#8220;sin&#8221; and &#8220;cos&#8221; are fixed, they
should be in roman. LaTeX provides builtins for many common
mathematical functions, but you need to take care of your own notation
yourself. (For example, if discussing semantics you might refer to the
denotation of the noun &#8220;man&#8221; as &#8220;man(<em>x</em>)&#8221;, but &#8220;<em>man</em>(<em>x</em>)&#8221; would be
incorrect.) Some techniques to make this less of a chore are discussed
<a href="#semantic-markup">later</a>.</p>

<h5>&#8220;But I&#8217;m using someone else&#8217;s notation!&#8221;</h5>

<p>This is sometimes a tricky one. Some people (particularly
non-mathematicians) are simply font-blind, and don&#8217;t <em>see</em> the sorts
of distinctions I&#8217;m discussing here. When using notation invented by
such people, I usually feel free to standardise it (a common telltale
is the use of the same word in different fonts for the <em>same</em> object
or concept).</p>

<p>On the other hand, if the notational system <em>is</em> font-conscious, but
doesn&#8217;t follow these guidelines, then you should be very cautious
about making changes.</p>

<h5>Choosing fonts carefully</h5>

<p>At the opposite extreme from the completely font-blind, you can use a
different font or style for every conceptually different type of
object you discuss. This has the same advantage that type-checking
does in a programming language: it helps you make sure you&#8217;re writing
what you think you&#8217;re writing. However it can produce such a profusion
of information that the result is largely unreadable. (For an example,
see the notation in <a href="http://www3.isrl.uiuc.edu/~junwang4/langev/localcopy/pdf/chang01groundedLearning.pdf">this cognitive linguistics paper</a>.)  <a href="#semantic-markup">Semantic markup</a> is a technique giving you
the type-checking advantage, without the loss in clarity.</p>

<p>More important, though, is careful choice of notation to emphasise the
important distinctions and gloss over the unimportant ones. You should
choose your examples to make as many distinctions as possible
intuitively obvious, so that they need not be indicated with a
profusion of font shifts. However if the distinctions are important,
try to avoid &#8220;overloading&#8221; fonts (using italics for emphasis,
technical terms and quotes, for instance). Minimising markup means
that <em>one</em> &#8216;marker&#8217; is enough, there&#8217;s no need to (for example)
italicise a quote <em>and</em> surround it with quotation marks.</p>

<p>If the same word is used for many related concepts, you might consider
using subscripts instead of font shifts to distinguish between
them. (This is common for instance in cognitive linguistics, where you
might want to distinguish between the word &#8220;man&#8221;, an abstract meaning
&#8220;man(<em>x</em>)&#8221;, a particular conceptual implementation of the meaning in
someone&#8217;s head, and so on. Another example is distinguishing types
from tokens.)  Note that the subscripts should be in roman! (They
refer to fixed entities &#8212;in this case types&#8212; not variables.)</p>

<p>In most cases where the typography carries meaning, it is wise to
explicitly state the conventions you employ. Having to describe these
conventions for every font shift may also help you keep such
complications to the minimum needed. (Bear in mind that many people
will not pay close attention to these points. Using slanted <em>and</em>
italic styles in LaTeX for different purposes is probably unwise,
despite their real differences, since they&#8217;re so easy to confuse.)</p>

<h5><a name="math-mode">Common math mode mixups</a></h5>

<p>The confusing regarding italics is the commonest problem I see with
LaTeX math mode. Close behind are the people who let math mode put
their variables in italics, but use long variable names (such as
&#8220;effort&#8221;). The reason this is a mistake is that spacing in math mode
is based on the assumption that each letter is a <em>separate</em>
variable. You&#8217;ll see this very clearly if your word contains the
letter &#8220;f&#8221;, since this is unusually wide. The solution is to use the
math italic font <code>\mathit{}</code>, since this is spaced as ordinary text.</p>

<p>Spacing in math mode is much more complex than it appears. This only
becomes apparent when it goes wrong, of course. In fact there are six
or seven different classes of math entities, all of which are given
different treatment for spacing. So for instance you should use
&#8220;<code>\colon</code>&#8221; instead &#8220;:&#8221; for function notation <code>f\colon D \rightarrow
R</code>, because of the altered spacing. (You can also specify directly the
spacing class you want an expression to have. More details in the
<a href="ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf">Short Math Guide</a>.)</p>

<p>Another, more subtle, mistake I see frequently is the failure to
distinguish between the <em>mathematical</em> part of a formula and the
<em>textual</em> part. For instance, I often see expressions such as <code>let $v
\in V, e \in V \times V,$ and</code>. It is mere pedantry to insist that the
commas are textual elements and do not belong in math mode, since the
visual appearance is exactly the same. What does matter, though, is
the lack of a space between &#8220;<code>\in V</code>&#8221; and &#8220;<code>e \in</code>&#8221; &#8212; which belongs there
because the comma is not a mathematical operator (as in
<code>e_1,\dotsc,e_n</code>) but a textual one. The reverse confusion becomes
highly visible when a mathematical variable is included in a text
paragraph without putting it into math mode. (Depending on the font,
the same may hold for numerals as well, although thankfully this is
not the case in Computer Modern, the LaTeX default font.)</p>

<h4>Managing your document</h4>

<p>LaTeX already provides good features for the low-level details of
keeping your document consistent. If you use <code>\label{}</code>, <code>\ref{}</code>,
<code>\cite{}</code> and friends, you no longer need to worry about the numerical
details of your cross-references. But there are subtler matters of
consistency that LaTeX will not handle for you, or at least not
without a bit of prompting.</p>

<p>I have in mind things like whether figures are referred to as
&#8220;Fig. 13&#8243; or &#8220;figure 13&#8243;, whether to use double or single quotes for
quotations, and so on. I don&#8217;t advocate any particular style here, for
that you need to read a good style guide (and in fact your decisions
may be overridden by the typesetter of your publishing house). The
most important thing is that you apply one set of decisions
<em>consistently</em> throughout your document.</p>

<p>For some of these issues, you can make LaTeX do some of the work for
you. For instance, you might define a macro <code>\figref{}</code> that works
like <code>\ref{}</code> but also adds the word &#8220;figure&#8221;. This has two
advantages: you&#8217;re sure to always get the same consistent style, and
if you want to change that style you only have to change your macro
definition.</p>

<p>A word of warning: this sort of thing is worse than useless if you
don&#8217;t, or can&#8217;t, use it! The definition above is bad, because you
can&#8217;t use it if the reference is the first word of a sentence. You
might be tempted to write the word by hand, but then you lose the
consistency-enforcing benefits of the macro. Either choose a style
that you can use sentence-initially, or define another macro for that
case. I wrote a <a href="http://student.science.uva.nl/~sjagerde/latex/index.html#code">small package</a> (allrefs) that assists with
this process for reference-like constructs, but in general you&#8217;ll have
to think carefully through how you expect to use the macros you
define, and make sure they cover all the situations you&#8217;ll run into. A
partial solution is worse than none at all, for enforcing
consistency. Some rules have so many exceptions it&#8217;s better to
implement them by hand than using macros.</p>

<p>Also be aware that someone else will have to read your manuscript. If
you&#8217;re going to use non-standard macros like this, you should apply
the ideas <a href="#programming-language">outlined below</a> to make
your decisions as clear and easy to edit as possible for your
typesetter. (If you are your own typesetter, this is still good
practise and will certainly pay off in a large project such as a
thesis.)</p>

<p>There exist a few LaTeX packages designed to solve this particular
problem (the words attached to a <code>\ref{}</code>). Most of them try to
analyse the label they&#8217;re given, to decide if it is a figure or a
table or whatever (so you&#8217;re committed to a naming scheme such as
<code>\label{fig:myfig}</code>, which is in itself useful discipline). I don&#8217;t
use them because they&#8217;re complicated to learn and use correctly. In
general I advocate <em>simple</em> solutions to consistency problems, for two
reasons. Firstly, these are minor matters of professional
presentation. While they&#8217;re important, they&#8217;re not worth devoting too
large a portion of your writing time to, for instance in mastering a
complex reference-synthesis package. Secondly,
<a href="#programming-language">as discussed below</a>, the simpler and
clearer your markup is the easier it is to read and alter. Complex
solutions have a tendency to hide the actual text that gets produced
underneath multiple layers of macros, which is generally unhealthy for
the maintenance of your document. (See the section on
<a href="#programming-language">LaTeX as a programming language</a>
for why I think your document needs &#8220;maintaining&#8221;.)</p>

<h5><a name="semantic-markup">Semantic markup for consistency</a></h5>

<p>A very useful technique for maintaining consistency is <em>semantic
markup</em>. This idea is behind the LaTeX macro <code>\emph{}</code>, which seems
superfluous when we already have <code>\textit{}</code> and <code>\itshape</code>. At least,
it seems superfluous until you look at the result of <code>\emph{within
this text \emph{some words} are more important than others}</code>. The
<code>\emph{}</code> macro is not a simple font switch, but really <em>emphasises</em>
its argument differently depending on the environment.</p>

<p>Not all semantic markup need be so cleverly constructed. The important
point is that the name and usage of the macro are defined by the
<em>intended meaning</em> for the reader, not by the intended typographical
effect.</p>

<p>This is good for several reasons. As with the reference example above,
you can change your style decisions quickly and easily. But you can
also embed extra information in your document that the reader never
receives, but which is available for you or for your typesetter!</p>

<p>Consider for example the common convention of introducing new
technical terms in italics. You can do this using <code>\textit{}</code>. You can
be clever and use <code>\emph{}</code>, so that the words stand out in italicised
environments (such as theorems under some styles, for instance). Even
better, though, is to define a macro <code>\term{}</code> that applies <code>\emph{}</code>
to its argument.</p>

<p>Then if you change your mind about how you wish to mark terms, just
change the macro. If you want to construct an index of terms showing
where they are defined, put an indexing command in <code>\term{}</code>! Even if
you in the end only apply <code>\emph{}</code>, the distinction between italics
for real emphasis and for technical terms is preserved in the LaTeX
source. (That this is a Good Thing comes down again to
<a href="#programming-language">document maintenance</a>.)</p>

<p>Semantic markup is especially good for technical notation. You can
include all the type-related information you need (to keep your
notions straight) in your document, while only showing the parts that
are important for the example at hand. You can even recycle the same
example with different styling definitions for different purposes.</p>

<h3><a name="programming-language">Writing for maintenance: LaTeX as a programming language</a></h3>

<p>Software engineering emphasises the important of <em>maintaining</em> a
program: far more time is usually spent debugging and altering a piece
of software than writing it. In contrast, a document is apparently
written once then thereafter is little if at all altered.</p>

<p>Apparently. In fact, you should be spending quality time editing your
writing if you want to end up with a polished result. Most people
during the writing process make rearrangements to their material,
whether large or small, and the result is often the better for
it. It&#8217;s easy to be put off making major changes by the thought of
making sure everything fits together again afterward. Before
electronic document production, this problem was much worse:
rearranging material meant renumbering sections, figures, footnotes,
and even pages. Many people still use word processers this way, for
instance writing a table of contents by hand (although any serious
modern word processor <em>can</em> automate all of this). In this sense,
document maintenance is something to plan for early (if you&#8217;re
considering making major changes, chances are the original is really
not what you wanted, so making changes possible should be a
priority!).</p>

<p>However document production using LaTeX is in another way more similar
to writing a program than typing an essay on a typewriter. TeX, the
typesetting engine on which LaTeX is built, is a programming
language. Some LaTeX constructions are much more like miniature
programs than simple typesetting instructions (anyone who has used the
XY-pic system for diagrams will agree). And LaTeX constructions have
the capacity to be just as baffling as the worst obfuscated C code you
could imagine. This is particularly the case if you&#8217;re writing complex
mathematical expressions, which TeX is very good at but can be almost
impossible to decipher or make alterations to.</p>

<p>The reason this can become important is simple: publication. If you&#8217;re
getting published, at least one other person probably has to read some
of your LaTeX code. You want to please this person, you want to make
them as happy as you can, because they have the power to alter
anything you have written and leave your name attached to it, for all
the world to see. Less cynically, they will likely <em>have</em> to make some
alterations to what you have written, for layout reasons and to apply
the conventions of their publishing house. The clearer your intentions
are, the more likely the end result is more or less what you
wanted. (Remember <a href="#semantic-markup">semantic markup</a>? This
is where it really comes into its own.)</p>

<h4>Write it how it looks</h4>

<p>A general principle that helps the reader enormously is that the code
should look as much as possible like the result on the page. For
example, take the display-mode math delimiters <code>\[</code> and <code>\]</code>. You can
write <code>the main theorem \[E=m\mathrm{c}^3\] states that</code>, or you can
write</p>

<pre><code>  the main theorem
  \[
    E=m\mathrm{c}^3
  \]
  states that
</code></pre>

<p>Because LaTeX treats spaces intelligently, you can lay the code out
pretty much as you wish. When you later see that you&#8217;ve used the wrong
exponent, you&#8217;ll find it more easily if it&#8217;s laid out in the second
manner (especially given that searching is sometimes tricky, with
markup and variable spacing to contend with).</p>

<p>For the same sorts of reasons, when defining macros you should choose
names that are related to the text produced, as far as this is
possible (these are generally good semantically-oriented names
anyway). As much as possible you want a typesetter to be able to read
your document source and make correct guesses about how the output
will look, without having to keep in mind the details of how your
macros are defined.</p>

<p>There is a certain conflict between this aim and the ideal of semantic
markup (the &#8220;emph&#8221; of <code>\emph{}</code> doesn&#8217;t appear in the text, for
instance). This is a delicate matter calling for taste and discretion
;-) Your markup shouldn&#8217;t overwhelm the actual text, but low-level
font switches should occur very infrequently, if at all. The worst
cases are things like <code>\mathcal{}</code>, which have long names and will
probably be applied very frequently to single letters. Any semantic
markup will likely be just as bad (<code>\eventvariable{}</code>) and you&#8217;re
probably better off moving more towards the as-it-looks end of the
spectrum:</p>

<pre><code>   \newcommand{\event}[1]{\mathcal{#1}} % use for event variables
   % commonly used event vars
   \newcommand{\e}{\event{e}}
   \newcommand{\a}{\event{a}}
</code></pre>

<p>Be especially careful with these ultra-short forms, since they&#8217;re
error-prone and difficult to interpret when reading. If you&#8217;re using
them as convenience shortcuts for sensible longer forms, use a
<a href="#tools">smarter editor</a> instead.</p>

<h4>Indent for clarity</h4>

<p>Like most programming languages, LaTeX has a block structure
(indicated by <code>{</code>, <code>}</code> and <code>\begin{}</code> and <code>\end{}</code> environment
delimiters). Keeping track of this intelligently aids the readability
of your code, as well as helping avoid errors. A <a href="#tools">good
text editor</a> should do this automatically.</p>

<h4>Commenting</h4>

<p>Whenever you define new macros, you should comment extensively. Not
what the macros do (unless it&#8217;s such hairy TeX code that it&#8217;s not
obvious) but <em>why</em>. Mnemonic names are good, but realistically macro
names should be kept short as well. The comment is for everything that
got thrown out from the name. For macros taking arguments, or that
should only be used in certain ways, an example usage might help.</p>

<pre><code>  \newcommand{\myFigref}[1]{Figure~\ref{#1}} % eg. \myFigref{fig:3}

  \newcommand{\axiom}[1]{\mathsf{#1}} % named axioms or axiom systems, eg. \axiom{ZFC}
  % some common axioms and systems
  \newcommand{\ZFC}{\axiom{ZFC}}
  \newcommand{\DC}{\axiom{DC}}
  \newcommand{\FOD}{\axiom{FOD}} % first-order-definable, eg. $\FOD(\theta)$
</code></pre>

<h4><a name="tools">Use tools intelligently</a></h4>

<p>Yes, you <em>can</em> write LaTeX in Microsoft Word, or even Notepad. But you
don&#8217;t want to. You want a tool that makes it easy, so you can spend
more time deciding what to write. My tool of choice is Emacs, you
mileage may vary. But there are a few things that your tool should
provide.</p>

<ol>
<li><p>Syntax highlighting and brace matching. This is really really
important. These things have to do with LaTeX as a programming
language, so they&#8217;re important to get right. You should know where
each brace pair starts and finished without having to count,
because that&#8217;s a single argument to some LaTeX macro, so if you get
it wrong it&#8217;s going to show. It might generate an error, which is
irritating but actually a good thing, because then you know you
have something to fix. Or it might just silently make a three-line
section heading for you to catch on proofreading. Likewise you
should know where math mode turns on and off just by glancing at
your source code. Indenting, as mentioned above, comes into this
category as well. Properly indenting code makes certain common
errors (forgetting to <code>\end{}</code> an evironment, for instance) much
less likely.</p></li>
<li><p>Completion for macro names. With a good completion mechanism, you
don&#8217;t have to define short but unreadable versions only for
convenience sake.</p></li>
<li><p>Label, reference and citation checking. The builtin LaTeX
mechanisms of course can&#8217;t cope if you misspell your label names. A
good system warns you when you <code>\ref{}</code> something that doesn&#8217;t
exist in your document.</p></li>
<li><p>Multi-file handling. For large projects, being able to split your
file into several pieces has big advantages. Your tool should be
aware that these are all parts of the same document (for instance
enabling document-wide find-and-replace, reference checking, and so
on).</p></li>
</ol>

<p>And now a shameless plug: you mileage <em>may</em> vary, but you should
really take Emacs for a test-drive. At least, if you&#8217;re unfamiliar
with Emacs you should try XEmacs, in either case with the AUC-TeX
package and RefTeX, which together provide everything mentioned above
and more. Where this package really shines is in the treatment of math
mode, allowing you to enter expressions like <code>$f \colon \alpha
\rightarrow \beta$</code> as quickly as the (less clear) shortcut forms <code>$f
\: \a \ra \b$</code> which you might otherwise be tempted to define.</p>

<h3>Summary</h3>

<p>After outright errors, nothing shows up an unprofessional manuscript
like a lack of consistent styling. LaTeX does a lot of work to ensure
that this is not a problem, but you can still make a hash of it all.
(It goes without saying that you should <em>use</em> the mechanisms LaTeX
provides, such as <code>\label{}</code> and <code>\ref{}</code>!) Being aware of the need
for consistency is the first step towards a professional-looking
manuscript.</p>

<p>Style guides can help make many decisions about presentation, but
often you&#8217;ll be left with a large number of possible
approaches. Emphasising clarity and simplicity in presentation will
make your document more readable to its audience, while well-chosen
semantic markup and layout designed for reading will help you or your
typesetter find and fix errors and give you the freedom to make
stylistic changes freely.</p>

<p>The facilities LaTeX provides can be used to make this much less of a
chore than it appears at first. To reap the full benefits you&#8217;ll have
to learn some TeX programming, but for basic semantic markup all you
need to know is <code>\newcommand{}{}</code>. Combine this with attention to
matters of consistency, and a basic knowledge of a few general
conventions, and your writings will be the better for it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logophile.org/blog/2005/05/17/professionalism-in-writing-latex-documents/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
