<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>LaTeX and Literary Studies</title>
	<atom:link href="http://humtex.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://humtex.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Fri, 17 Feb 2012 16:27:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='humtex.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>LaTeX and Literary Studies</title>
		<link>http://humtex.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://humtex.wordpress.com/osd.xml" title="LaTeX and Literary Studies" />
	<atom:link rel='hub' href='http://humtex.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to Begin</title>
		<link>http://humtex.wordpress.com/2012/01/22/how-to-begin/</link>
		<comments>http://humtex.wordpress.com/2012/01/22/how-to-begin/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 18:48:27 +0000</pubDate>
		<dc:creator>Andrew Goldstone</dc:creator>
				<category><![CDATA[General Reflections]]></category>
		<category><![CDATA[Sample files]]></category>

		<guid isPermaLink="false">http://humtex.wordpress.com/?p=60</guid>
		<description><![CDATA[So you just want to begin. The TeX Users Group website has a Getting Started Page with the essentials: introductory documents, examples, and, most importantly, links to the software itself: TeX Live on Unix, MacTeX on Mac, proTeXt on Windows &#8230; <a href="http://humtex.wordpress.com/2012/01/22/how-to-begin/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=60&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So you just want to begin. The TeX Users Group website has a <a href="http://tug.org/begin.html">Getting Started Page</a> with the essentials: introductory documents, examples, and, most importantly, links to the software itself: TeX Live on Unix, MacTeX on Mac, proTeXt on Windows (all free, and rather enormous, downloads). If you are on a Mac, look for the <a href="http://www.uoregon.edu/~koch/texshop/">TeXShop</a> application; if you are on Windows, look for <a href="http://www.texniccenter.org/">TeXnicCenter</a>. If Unix, pffft; open up an xterm and vim/emacs. However you do things, here is a file to start playing around with: <a href="http://andrewgoldstone.com/tex/xelatex.sample.tex">xelatex.sample.tex</a>. If your setup is working like mine—and if you have the fonts I use—you should be able to typeset it with XeLaTeX and get a result that looks like this: <a href="http://andrewgoldstone.com/tex/xelatex.sample.pdf">xelatex.sample.pdf</a>.</p>
<h2 id="engines">Engines</h2>
<p>In the rest of this post, I’ll walk through that source file, but before we can do that, there’s one technicality to get out of the way: what <strong>engine</strong> will you use? The engine is the program that converts your TeX source code into a presentational format like PDF. TeX has been around long enough to have developed a bunch of variants, each with their corresponding processing engine. First of all there’s the contrast between the original or “plain” TeX and LaTeX. Plain TeX is a specialist taste. Stick with LaTeX, which is easier and much more in the spirit of contemporary document markup (XML, etc.). A TeX distribution comes with three important LaTeX engines: <code>latex</code>, <code>pdflatex</code>, and <code>xelatex</code>. (There are more out there, but never mind them).</p>
<p>How do you use an “engine”? If you are working in a graphical front-end program, look for a pulldown menu that allows you to choose one. Here is what it looks like in the MacOS program TeXShop: <img src="http://humtex.files.wordpress.com/2012/01/texshop.jpg?w=500" alt="texshop screenshot" /></p>
<p>Click the “Typeset” button to produce a PDF. TeXShop will automatically use pdflatex if you choose “LaTeX” from its menu. I think that’s a bit confusing.</p>
<p>If you like the command line, the command is simply</p>
<pre><code>[ENGINE] [FILENAME]
</code></pre>
<p>as in</p>
<pre><code>xelatex my-article.tex
</code></pre>
<p>Classic <code>latex</code> processes LaTeX source into DVI (“device independent”) format, a TeX-specific filetype devised in pre-PDF days. At this stage, think no more about it.</p>
<p><code>pdflatex</code> processes LaTeX source directly into PDF. Pretty much anything you can <code>latex</code> you can <code>pdflatex</code>. If you are reading introductions to LaTeX (or Mittlebach and Goosens’s big reference book, the <a href="http://www.worldcat.org/oclc/254817616">LaTeX Companion</a>) and you want to try out their example code, try it in <code>pdflatex</code>.</p>
<p><code>xelatex</code> processes XeLaTeX source to PDF. XeLaTeX source is LaTeX with a certain preamble and Unicode characters used freely throughout. Unlike (<code>pdf</code>)<code>latex</code>, <code>xelatex</code> uses your system fonts.</p>
<p>I think the font-and-Unicode combo is compelling enough that humanists should use XeLaTeX, so for the rest of this post I’ll talk about that. But if you run into trouble, try switching to <code>pdflatex</code>.</p>
<p><strong>Here is a sample file in LaTeX, to be processed with</strong> <code>pdflatex</code>: <a href="http://andrewgoldstone.com/tex/pdflatex.sample.tex">pdflatex.sample.tex</a>. Its output should look like this: <a href="http://andrewgoldstone.com/tex/pdflatex.sample.pdf">pdflatex.sample.pdf</a>. Enjoy!</p>
<h2 id="a-minimal-sample-document">A minimal sample document</h2>
<p>But on to the promised description of the sample.</p>
<p>A LaTeX document has two sections, the <strong>preamble</strong> and the <strong>body</strong>. Ideally the preamble describes the details of the appearance of the final page, whereas the body describes the structured content of the document. The preamble commands are trickier to master than the body commands, so what you really need is someone else’s preamble to get you going. I’ll talk about the body first and then come back to the preamble.</p>
<h3 id="in-general">In general</h3>
<p>Here are the most important things about TeX syntax.</p>
<ul>
<li>A comment begins with a <code>%</code> sign. Everything from <code>%</code> to the end of a line is ignored by the typesetter.</li>
<li>TeX commands—instructions to the typesetter—always begin with <code>\</code>.</li>
<li>What programmers call the grouping operator—used to delimit blocks of code and parameters to commands—is the curly brace, <code>{}</code>.</li>
<li>Optional parameters to commands use square brackets, <code>[]</code>.</li>
</ul>
<h3 id="the-body">The body</h3>
<p>The body begins, naturally enough, with the command <code>\begin{document}</code>. It ends with <code>\end{document}</code>. In general, simply type the text you want set. TeX turns multiple spaces into just one space, and it ignores single carriage returns.</p>
<p>Paragraph breaks are made with one (or more) blank lines. The nature of a paragraph break—how much to indent the paragraph, whether to leave extra whitespace between paragraphs—is an aspect of layout and as such should be specified in the preamble. A forced line break is made with a double backslash, <code>\\</code>.</p>
<p>Two more idiosyncracies. TeX always produces curly quotes, but you must tell it which kind you want. Double quotes are typed as double backticks <code>``</code> and double apostrophes <code>''</code>; single quotes as <code>`</code> and <code>'</code>; and the apostrophe as itself <code>'</code>. A good TeX editor will automatically type these for you when you type a regular double quote. (In TeXShop, you’ll have to make sure Source &gt; Key Bindings &gt; Toggle On/Off is checked.)</p>
<p>TeX also cares deeply, very deeply, about dashes. The em dash is written as a <em>triple</em> hyphen, <code>---</code>, the en dash (for e.g. ranges of numbers like 4–5) as <code>--</code>, and the hyphen as itself, <code>-</code>.</p>
<p>That’s almost it! If all you’re doing is writing free-form paragraphs, as in a blog post, you know what you need. But if your document has more structure, you need to know some LaTeX markup commands.</p>
<p>The simplest one is emphasis: <code>\emph{my emphasized text}</code>. To understand the difference between <em>typesetting</em> italic font and <em>marking up emphasis</em>, consider that you can nest emphasis commands: <code>\emph{my emphasis has a \emph{further} emphasis within it}</code>. The inner emphasis appears in roman type, as it should.</p>
<p>And the favorite humanist command: <code>\footnote{my footnote text}</code>. This is the kind of thing where LaTeX really shines. You put the footnote command right where you want the note “anchor” (i.e. the little superscript number) to appear, so you never lose track of how your notes and your body text are related. LaTeX numbers your notes for you and thinks hard about how best to lay out your pages, deciding if it’s necessary to continue footnotes onto the next page, making sure your body text fills out the page, and so on.</p>
<p>Then there are commands that describe the <em>structure</em> of the document. In LaTeX these are called <code>\section{}</code>, <code>\subsection{}</code>, and <code>\subsubsection{}</code>. The title of the section goes in between the braces. If you specify <code>\documentclass{book}</code> (see the discussion of the preamble below) then you can also use <code>\chapter{}</code>. All these commands not only typeset your section headings distinctively, but can also number them (if you wish) and remember them for a table of contents (if you wish).</p>
<p>A little more complex is the construct called an <em>environment.</em> These are made up of two commands: <code>\begin{environment-name}</code> and <code>\end{environment-name}</code>. Between these two statements comes text that you want typeset differently from body paragraphs. The most important one for the humanities is the <code>quote</code> environment for blockquotes. There is also a <code>verse</code> environment, as well as listing environments for numbered or bullet-pointed lists. Bullet points are distasteful, but numbered lists are useful. They begin with <code>\begin{enumerate}</code> and end with <code>\end{enumerate}.</code> Each item begins with the command <code>\item</code>, which LaTeX converts to the item number.</p>
<p>And that’s really it.</p>
<h3 id="the-preamble">The preamble</h3>
<p>As I say, the preamble is a bit trickier, and it’s probably best to begin with someone else’s preamble and modify it to suit. But the basic idea is straightforward.</p>
<p>First you declare the “class” of the document: the important ones are <code>article</code> and <code>book</code>. The declaration also specifies a base point-size as an option: </p>
<p>The rest of the preamble combines invocations of <em>packages</em> and layout commands. Packages are self-contained modules of code that extend LaTeX’s capabilities, either by modifying what existing commands do or by giving you access to new commands. LaTeX is supported by an enormous open-source library of packages called CTAN (large chunks of which will be installed with your latex distribution). A package is invoked with the command <code>\usepackage[options]{package-name}</code>.</p>
<p>pdflatex doesn’t need anything before the <code>begin{document}</code>. XeLaTeX documents always start, after the document class declaration, with the following package invocations:</p>
<pre><code> \usepackage{fontspec}
 \usepackage{xunicode}
 \usepackage{xltxtra}
</code></pre>
<p>Then comes a font declaration:</p>
<pre><code>\defaultfontfeatures{Ligatures=TeX,Numbers=OldStyle}
\setmainfont{Hoefler Text} % Or the full name of any other font on your system
</code></pre>
<p>It is rather disconcerting for first-time users to discover that by default LaTeX has big margins. The margins are chosen to make your lines not too wide—the typical 6-inch line of a word-processed document is much longer than any book designer would use for 12-point font in most cases. But this may look too odd when you begin. Fortunately the <code>geometry</code> package gives you an easy way to reassert control:</p>
<pre><code>\usepackage{geometry}
\geometry{width=6 in,height=8.5 in}
</code></pre>
<p>If you really want that Microsoft Word-y look, you can doublespace:</p>
<pre><code>\usepackage{setspace}
\doublespacing
</code></pre>
<p>Though very elaborate things are possible with headers and footers in LaTeX (look up the <code>fancyhdr</code> package), the next command gives you a barebones page-number-footer:</p>
<pre><code>\pagestyle{plain}
</code></pre>
<p>Finally, you may be mystified about those numbered sections. The following incantation ensures that no section numbers will be typeset:</p>
<pre><code>\setcounter{secnumdepth}{-2}
</code></pre>
<h3 id="to-be-continued">To be continued!</h3>
<p>That should be all you need to start experimenting. There’s much more to play with—e.g., bibliographies and citations, images, and of course mathematical equations—but this should be enough to get things underway.</p>
<p>I recommend continuing by looking at Tobias Oetiker’s <a href="http://tobi.oetiker.ch/lshort/lshort.pdf"><em>Not-So-Short Introduction to LaTeX2e</em></a>. Contact me or comment here if you like, too!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/humtex.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/humtex.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/humtex.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/humtex.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/humtex.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/humtex.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/humtex.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/humtex.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/humtex.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/humtex.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/humtex.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/humtex.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/humtex.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/humtex.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=60&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://humtex.wordpress.com/2012/01/22/how-to-begin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44acef4a637da5c1e1328f67826eecae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agoldst</media:title>
		</media:content>

		<media:content url="http://humtex.files.wordpress.com/2012/01/texshop.jpg" medium="image">
			<media:title type="html">texshop screenshot</media:title>
		</media:content>
	</item>
		<item>
		<title>biber first aid for &#8220;data source not found&#8221;</title>
		<link>http://humtex.wordpress.com/2011/11/29/biber-first-aid-for-data-source-not-found/</link>
		<comments>http://humtex.wordpress.com/2011/11/29/biber-first-aid-for-data-source-not-found/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 13:35:38 +0000</pubDate>
		<dc:creator>Andrew Goldstone</dc:creator>
				<category><![CDATA[biber]]></category>
		<category><![CDATA[kludgetastic]]></category>

		<guid isPermaLink="false">http://humtex.wordpress.com/?p=48</guid>
		<description><![CDATA[I don’t know what causes it, but every now and then biber gives up working on my system. Then I start getting error messages like data source /var/folders/m6/bn7r45zx6cx55rr9g4qh6s6w0000gn/T/par-agoldst/cache-87e533530c5239fb9f8e3ff008979f1f16ea0e5e//inc/lib/Biber/LaTeX/recode_data.xml not found in . There is a magic incantation, which I found &#8230; <a href="http://humtex.wordpress.com/2011/11/29/biber-first-aid-for-data-source-not-found/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=48&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I don’t know what causes it, but every now and then biber gives up working on my system. Then I start getting error messages like <code>data source /var/folders/m6/bn7r45zx6cx55rr9g4qh6s6w0000gn/T/par-agoldst/cache-87e533530c5239fb9f8e3ff008979f1f16ea0e5e//inc/lib/Biber/LaTeX/recode_data.xml not found in .</code></p>
<p>There is a magic incantation, which I found somewhere on the biber sourceforge forums, to get biber to clear the cobwebs by reinstalling itself using perl’s PAR tool, as it does the first time it is run on a new system. Just clear the PAR cache, whose location under <code>/var</code> is helpfully specified in the error message:</p>
<pre><code> sudo rm -rf /var/folders/m6/bn7r45zx6cx55rr9g4qh6s6w0000gn/T/par-agoldst
</code></pre>
<p>You will have different stuff in <code>/var/folders.../par-&lt;username&gt;</code>.</p>
<p>Since I’ve seen other people complaining of this, I’m convinced it’s not my fault but the result of some deeply buried sporadic bug in biber. I’d try harder to figure it out, but it’s just too easy to make this one go away when it pops up once every few months. TeX is hacking, people!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/humtex.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/humtex.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/humtex.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/humtex.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/humtex.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/humtex.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/humtex.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/humtex.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/humtex.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/humtex.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/humtex.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/humtex.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/humtex.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/humtex.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=48&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://humtex.wordpress.com/2011/11/29/biber-first-aid-for-data-source-not-found/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44acef4a637da5c1e1328f67826eecae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agoldst</media:title>
		</media:content>
	</item>
		<item>
		<title>LaTeX to Word: the basic issue</title>
		<link>http://humtex.wordpress.com/2011/11/11/latex-word-basic/</link>
		<comments>http://humtex.wordpress.com/2011/11/11/latex-word-basic/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 15:19:54 +0000</pubDate>
		<dc:creator>Andrew Goldstone</dc:creator>
				<category><![CDATA[Conversion]]></category>
		<category><![CDATA[General Reflections]]></category>
		<category><![CDATA[tex4ht]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://humtex.wordpress.com/?p=40</guid>
		<description><![CDATA[It seems to me that there are two possible avenues for the challenge of converting LaTeX source to Microsoft Word—a challenge which humanists will have to take up whenever they collaborate with non-TeXnical co-authors and editors. One route is to &#8230; <a href="http://humtex.wordpress.com/2011/11/11/latex-word-basic/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=40&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It seems to me that there are two possible avenues for the challenge of <a href="http://humtex.wordpress.com/2011/10/04/tex4ht-tease/">converting LaTeX source to Microsoft Word</a>—a challenge which humanists will have to take up whenever they collaborate with non-TeXnical co-authors and editors. One route is to parse the source and output Word or, more likely, a less closed intermediate markup format. Humanists are actually better off here than scientists, since they don’t use the major feature that TeX handles very differently from word processors—and far, far better: namely, mathematical equation typesetting. And assuming that Word is not going to be the format for final publication, there’s no need to cry (much) over the loss of typographical quality resulting from subjecting your paragraphs to Word’s justification and pagination “algorithms” rather than TeX’s. The goal is most likely just to share and edit content. For these purposes (from shared authorship to substantial editing to copy-editing), LaTeX markup for humanists can be pretty simple—indeed, practically equivalent to the text-markup subset of HTML itself: paragraph, header, section (division), span. For this very minimal version of LaTeX—entirely conceivable as a possibility for humanists—conversion to Word is a matter of getting a parser for the minimal LaTeX and outputting its equivalent in XML.</p>
<p>Numerous converters do this. The one I have nearest to hand is the astonishing <a href="http://johnmacfarlane.net/pandoc/">pandoc</a>, an all-purpose converter. Pandoc’s “native” format is a plain-text format called <a href="http://daringfireball.net/projects/markdown/">markdown</a>, which pretty much corresponds to the minimal text markup I mentioned above. And pandoc writes lots of markup formats, including HTML and OpenDocument. I’m writing this post in markdown and using pandoc to output the HTML. If your LaTeX has a markdown equivalent, pandoc can very robustly produce an ODT. Then NeoOffice (etc) can convert it to .doc format.</p>
<p>As far as I can tell, this is also the approach taken by the python-based Word converters supplied for <a href="http://www.lyx.org/">LyX</a>. But I haven’t tried those.</p>
<p>There’s a problem, however. What if your LaTeX markup exceeds the capacities of markdown? After all, TeX itself is a Turing-complete programming language (sez <a href="http://en.wikipedia.org/wiki/TeX#History">Wikipedia</a>), and markdown, lacking loops and conditionals, definitely isn’t. If your LaTeX uses any of LaTeX’s more robust algorithmic powers to generate your text, the magic of pandoc will not, at least in its present version, be powerful enough for you. (I’d love to be wrong about this, but I’m pretty sure this argument holds. Because the <a href="http://en.wikipedia.org/wiki/Haskell_(programming_language)">Haskell</a> interpreter underlies pandoc, I guess a robust TeX parser is in principle possible for pandoc, but that’s not really in the spirit of pandoc’s minimalism. Possibly some kind of compromise involving markdown with embedded haskell fragments would be possible. Sounds painful.)</p>
<p>But humanists—when would they use such powers? Alas, they will if they want to use those lovely <a href="http://humtex.wordpress.com/2011/10/02/intro/">bibliography-generation</a> <a href="http://www.ctan.org/pkg/biblatex">capabilities</a>. A lot of algorithmic work goes into lining up all those nice <a href="http://www.ctan.org/pkg/biblatex-chicago">Chicago-style footnotes</a> and short references and ibids.</p>
<p>Now we come to the other avenue for TeX-to-Word conversion: reading the <em>output</em> rather than the input and converting that. On the plus side, all the algorithmic hard work will have already taken place, so all that nice generated text will be easy alphanumeric characters, spaces, and punctuation. On the minus side, TeX’s output is a DVI or a PDF, images of pages with much less semantic structure and lots and lots of non-semantic layout information. That’s the whole point of LaTeX! I guess you could use a PDF-to-Word converter, like the one embedded in Acrobat Pro; but the layout-not-semantics problems quickly spiral out of control (I’ve tried. The results with footnotes make you cry). The converted Word document may sort of look like the PDF you make with LaTeX, but it will be very hard to use it in collaborating on content.</p>
<p>Now I’ve often wondered whether there isn’t some intermediate stage in the LaTeX processing that would be more suitable for conversion into ODT (which is <a href="http://humtex.wordpress.com/2011/10/15/odtxml-first-aid/">just xml markup</a>). After all, a package like biblatex doesn’t output DVI code when it generates a citation, it outputs TeX. Isn’t there some mid-processing version of my article (say) which consists of all the LaTeX I wrote, but with all the <code></code> commands replaced with their output? Without knowing biblatex’s internals, I think we can be pretty sure that it’s not so simple. Lots of programmatic magic happens in a <code></code> call, magic that depends on global knowledge of the TeX processing run (decisions about pagination, information about sections and chapters, counters, etc. etc.).</p>
<p>So what’s left? <a href="http://www.tug.org/tex4ht/">tex4ht</a>. The ingenious tactic used by this general-purpose TeX-to-markup converter is to piggyback on the TeX processing run, allowing TeX to do the work of output generation but <em>annotating</em> the result—a DVI file—with reminders of the original semantic structure. Then tex4ht reads the annotated TeX output back in and converts it to a new markup format; the package speaks xml and can output several flavors of html and—the key desideratum—OpenDocument XML. tex4ht redefines basic TeX/LaTeX commands to produce the annotations it needs. Of course you can immediately see the challenge: this means:</p>
<ol style="list-style-type:decimal;">
<li>
<p>tex4ht needs to “annotate” every command your document uses.</p>
</li>
<li>
<p>Which means tex4ht needs to redefine every command you use—or a generating subset of them (i.e. a set {f_1, f_2, f_3, …} such that every command you use can be expressed in terms of the f_i).</p>
</li>
<li>
<p>And those redefinitions are supposed to behave just like the original commands, modulo output format: fancy TeX typesetting can re lost, but not any actual text or basic style information.</p>
</li>
</ol>
<p>The result is that the maintainers of tex4ht are constantly playing catch-up with the entire TeX ecosystem, writing “.4ht” workalike packages to convert the commands offered by popular packages into working surrogates for tex4ht. The task has been even more challenging because tex4ht was the brainchild of one person, <a href="http://tug.org/applications/tex4ht/mn.html">Eitan Gurari</a>, who died suddenly in 2009; the current maintainers have had to plunge into his work <em>in medias res</em>.</p>
<p>So there you have it: the basic issue. As I blog on, I’ll discuss the little ways of coping with it. Amazingly, you really can.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/humtex.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/humtex.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/humtex.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/humtex.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/humtex.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/humtex.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/humtex.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/humtex.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/humtex.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/humtex.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/humtex.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/humtex.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/humtex.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/humtex.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=40&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://humtex.wordpress.com/2011/11/11/latex-word-basic/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44acef4a637da5c1e1328f67826eecae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agoldst</media:title>
		</media:content>
	</item>
		<item>
		<title>ODT/XML first aid</title>
		<link>http://humtex.wordpress.com/2011/10/15/odtxml-first-aid/</link>
		<comments>http://humtex.wordpress.com/2011/10/15/odtxml-first-aid/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 15:28:19 +0000</pubDate>
		<dc:creator>Andrew Goldstone</dc:creator>
				<category><![CDATA[Conversion]]></category>
		<category><![CDATA[kludgetastic]]></category>
		<category><![CDATA[tex4ht]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://humtex.wordpress.com/?p=34</guid>
		<description><![CDATA[If you work with tex4ht to convert LaTeX to OpenDocument (for subsequent Word conversion in NeoOffice, say), you may find yourself wanting to doctor an .odt file. At least I did; sometimes tex4ht outputs an odt with problems or syntax &#8230; <a href="http://humtex.wordpress.com/2011/10/15/odtxml-first-aid/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=34&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you work with tex4ht to <a href="http://humtex.wordpress.com/2011/10/04/tex4ht-tease/">convert LaTeX to OpenDocument</a> (for subsequent Word conversion in <a href="http://www.neooffice.org">NeoOffice</a>, say), you may find yourself wanting to doctor an <code>.odt</code> file. At least I did; sometimes tex4ht outputs an odt with problems or syntax errors. But here&#8217;s the nice thing, if you need some quick odt first aid: as I learned from this <a href="http://www.ntg.nl/maps/28/09.pdf">article by Maarten Wisse</a>, an odt is really just a zip archive.</p>
<pre>
&gt; unzip test.odt
Archive:  test.odt
   creating: META-INF/
  inflating: META-INF/manifest.xml
   creating: Pictures/
  inflating: content.xml
  inflating: meta.xml
  inflating: settings.xml
  inflating: styles.xml
</pre>
<p>Mirabile dictu, those xml files are pretty easy to read. All the good stuff is in <code>content.xml</code> and <code>styles.xml</code>. You can burrow into these files wth a text editor, modifying style parameters or the way tex4ht has tried to tag your content. And when you&#8217;re done:</p>
<pre>
&gt; zip test.odt content.xml
updating: content.xml (deflated 81%)
</pre>
<p>That&#8217;s all! If NeoOffice gives you an error when it tries to open a generated odt, it will tell you the line number of the syntax problem, and you can just fix it by hand.</p>
<p>All right, I know, kludge city. But very, very useful in a pinch.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/humtex.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/humtex.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/humtex.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/humtex.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/humtex.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/humtex.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/humtex.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/humtex.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/humtex.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/humtex.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/humtex.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/humtex.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/humtex.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/humtex.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=34&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://humtex.wordpress.com/2011/10/15/odtxml-first-aid/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44acef4a637da5c1e1328f67826eecae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agoldst</media:title>
		</media:content>
	</item>
		<item>
		<title>Life with tex4ht: a teaser</title>
		<link>http://humtex.wordpress.com/2011/10/04/tex4ht-tease/</link>
		<comments>http://humtex.wordpress.com/2011/10/04/tex4ht-tease/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 21:21:42 +0000</pubDate>
		<dc:creator>Andrew Goldstone</dc:creator>
				<category><![CDATA[Conversion]]></category>
		<category><![CDATA[tex4ht]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://humtex.wordpress.com/?p=27</guid>
		<description><![CDATA[The grand challenge for TeX loyalists in the humanities is clear: TeX/Word interoperation. It&#8217;s been a long day of debugging, and I&#8217;m still not all the way there. But I&#8217;ll be using this space soon to post some results on &#8230; <a href="http://humtex.wordpress.com/2011/10/04/tex4ht-tease/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=27&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The grand challenge for TeX loyalists in the humanities is clear: TeX/Word interoperation.</p>
<p>It&#8217;s been a long day of debugging, and I&#8217;m still not all the way there. But I&#8217;ll be using this space soon to post some results on using the <code>tex4ht</code> suite to generate an OpenDocument file (which can then be converted by NeoOffice to Word format). It <em>can</em> be done, even with a 200 pp book manuscript with hundreds of autogenerated footnotes and lots of Unicode text. The current maintainers of <a />tex4ht</a> have done amazing work on keeping it functioning in tandem with cutting-edge packages. There are lots of issues, and hopefully they&#8217;ll be making some serious updates soon, but still.</p>
<p>Anyway, more to come here on this subject. TeX to Word is within reach.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/humtex.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/humtex.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/humtex.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/humtex.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/humtex.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/humtex.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/humtex.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/humtex.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/humtex.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/humtex.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/humtex.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/humtex.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/humtex.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/humtex.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=27&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://humtex.wordpress.com/2011/10/04/tex4ht-tease/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44acef4a637da5c1e1328f67826eecae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agoldst</media:title>
		</media:content>
	</item>
		<item>
		<title>hyperref makes PDFs with awesome features</title>
		<link>http://humtex.wordpress.com/2011/10/04/hyperref-pdf/</link>
		<comments>http://humtex.wordpress.com/2011/10/04/hyperref-pdf/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 14:57:31 +0000</pubDate>
		<dc:creator>Andrew Goldstone</dc:creator>
				<category><![CDATA[Footnotes]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://humtex.wordpress.com/?p=22</guid>
		<description><![CDATA[A PDF file can be more than just an image. If you&#8217;ve copied text and pasted it from a PDF (or opened a JSTOR scan and discovered you couldn&#8217;t), then you know that a PDF is not just a picture &#8230; <a href="http://humtex.wordpress.com/2011/10/04/hyperref-pdf/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=22&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A PDF file can be more than just an image.</p>
<p>If you&#8217;ve copied text and pasted it from a PDF (or opened a JSTOR scan and discovered you couldn&#8217;t), then you know that a PDF is not just a picture for printing but a hypertext in its own right. If you use modern TeX at all, you know that pdflatex and xelatex produce well-behaved PDFs that can indeed be copied from. (In the old days, when you had to use a tex to dvi to postscript to pdf workflow, things were not so reliable.)</p>
<p>But you may not know that the <code>hyperref</code> package works in conjunction with pdf/xelatex to add extra richness to your PDFs. As you&#8217;d expect, it helps you typeset URLs and makes those URLs clickable hyperlinks. But by default, <code>hyperref</code> will also automatically create a set of &#8220;bookmarks&#8221; based on your section headings, respecting the chapter/section/subsection hierarchy. (These bookmarks appear as a sidebar table of contents in most PDF viewers.) Pretty nice, right?</p>
<p><code>hyperref</code> also automatically makes footnote anchors (the numbers/symbols in your text that mark a footnote) clickable links to the footnote text itself. The <code>hyperref</code> documentation warns that this behavior is &#8220;easily broken&#8221; (it can be switched off with the package option <code>hyperfootnotes=false</code>), but I have found it to work pretty well. It can get confused if complex things happen with floats and pagebreaks.</p>
<p>And this is the really magical thing I discovered only a few days ago. <code>hyperref</code> and <code>biblatex</code> play well together. In particular, <code>hyperref</code> will make every <code>\cite</code> of a particular source a clickable link back to the first <code>\cite</code>, so that readers who see an &#8220;ibid.&#8221; or a shorthand abbreviation can click it to see the first, full reference. This works even with highly minimal cites like a postnote-only citation generated with <code>biblatex</code>&#8217;s <code>\notecite</code> and <code>\pnotecite</code> commands. The markup <code>\pnotecite[16]{stevens:cpp}</code> typesets as simply &#8220;(16),&#8221; but in the PDF that page number is a clickable link back to my first, full citations of <code>stevens:cpp</code>. </p>
<p>I haven&#8217;t yet played with generating a bibliography alongside my footnotes; it would be neat to see if <code>hyperref</code> and <code>biblatex</code> could create links between a bibliography and notes. That would alleviate my main complaint about short-citations-plus-bibliography books (I hate having to fish in the back to figure out what a telegraphically-cited source is).</p>
<p>Indeed, the clickable-footnote-anchor feature means that <code>hyperref</code> also makes PDFs that defeat my main complaint about endnotes&#8212;I hate having to turn pages / scroll all the way to the end and hunt for the note. In combination with the &#8220;back&#8221; feature of any good PDF viewer, endnotes become almost as tractable for reading as foodnotes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/humtex.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/humtex.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/humtex.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/humtex.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/humtex.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/humtex.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/humtex.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/humtex.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/humtex.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/humtex.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/humtex.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/humtex.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/humtex.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/humtex.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=22&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://humtex.wordpress.com/2011/10/04/hyperref-pdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44acef4a637da5c1e1328f67826eecae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agoldst</media:title>
		</media:content>
	</item>
		<item>
		<title>Chicago Manual-style footnote numbers</title>
		<link>http://humtex.wordpress.com/2011/10/04/footnote-numbers/</link>
		<comments>http://humtex.wordpress.com/2011/10/04/footnote-numbers/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 00:15:14 +0000</pubDate>
		<dc:creator>Andrew Goldstone</dc:creator>
				<category><![CDATA[Chicago Style]]></category>
		<category><![CDATA[Footnotes]]></category>

		<guid isPermaLink="false">http://humtex.wordpress.com/?p=7</guid>
		<description><![CDATA[Here&#8217;s a first tip for humanist TeXheads. The Chicago Manual of Style calls for footnote numbers that are not superscript and followed by a period. It&#8217;s really not that obvious how to do this in LaTeX, and it was many &#8230; <a href="http://humtex.wordpress.com/2011/10/04/footnote-numbers/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=7&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a first tip for humanist TeXheads.</p>
<p>The <em>Chicago Manual of Style</em> calls for footnote numbers that are not superscript and followed by a period. It&#8217;s really not that obvious how to do this in LaTeX, and it was many years before I learned how. Put this in your preamble:</p>
<pre>
\makeatletter
\renewcommand\@makefntext[1]{%
    \parindent 1em%
    \@thefnmark.~#1}
\makeatother
</pre>
<p>See Mittlebach and Goosens&#8217;s <em>LaTeX Companion</em>, 112&#8211;14. Unlike the standard <code>\@makefntext</code>, this version does not put the footnote number in a <code>\makebox</code> hanging off the left margin of the footnote body. Many books also use different length rules between body and footnotes when a footnote continues from a previous page. For that, use the preamble command <code>\usepackage[splitrule]{footmisc}</code>. This invocation must precede the command that changes <code>\@makefntext</code>, or <code>footmisc</code> will clobber your nice formatting. </p>
<p>The code for altering endnotes (if you use the <code>endnote</code> package) is slightly different: </p>
<pre>
\renewcommand\enoteformat{\parindent 1em\theenmark.~}
</pre>
<p>On the other hand, if you use the recently developed <a href="http://www.ctan.org/tex-archive/help/Catalogue/entries/biblatex-chicago.html"><code>biblatex-chicago</code></a> package, your footnotes will be correctly formatted&#8212;with more or less this very command. The package also has a <code>strict</code> option which will suppress the rule except for footnotes continued from a previous page (the <em>Manual</em>&#8217;s preferred style).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/humtex.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/humtex.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/humtex.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/humtex.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/humtex.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/humtex.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/humtex.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/humtex.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/humtex.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/humtex.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/humtex.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/humtex.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/humtex.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/humtex.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=7&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://humtex.wordpress.com/2011/10/04/footnote-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44acef4a637da5c1e1328f67826eecae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agoldst</media:title>
		</media:content>
	</item>
		<item>
		<title>Why LaTeX and Literary Studies? An Introduction</title>
		<link>http://humtex.wordpress.com/2011/10/02/intro/</link>
		<comments>http://humtex.wordpress.com/2011/10/02/intro/#comments</comments>
		<pubDate>Sun, 02 Oct 2011 17:14:11 +0000</pubDate>
		<dc:creator>Andrew Goldstone</dc:creator>
				<category><![CDATA[General Reflections]]></category>

		<guid isPermaLink="false">http://humtex.wordpress.com/?p=1</guid>
		<description><![CDATA[Why blog about the LaTeX typesetting system and literary studies? I have been using TeX for twelve years. Probably there aren&#8217;t too many people in literary studies who could say the same. I gave Word the definitive boot about six &#8230; <a href="http://humtex.wordpress.com/2011/10/02/intro/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=1&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Why blog about the LaTeX typesetting system and literary studies?</p>
<p>I have been using <a href="http://en.wikipedia.org/wiki/TeX">TeX</a> for twelve years. Probably there aren&#8217;t too many people in literary studies who could say the same. I gave Word the definitive boot about six years ago and since then have produced all my written documents in <a href="http://en.wikipedia.org/wiki/LaTeX">LaTeX</a>. This is a blog for humanists who are doing the same, or are thinking they might like to try.</p>
<p>Why might you try? I have already written one <a href="http://andrewgoldstone.com/tex.html">manifesto</a>, but here&#8217;s the abbreviated version. Word has an unconscionable tyranny in literary studies and in the humanities more generally. You would think that highly verbally attentive people who write and produce elaborate documents (articles, books) for a living would have long ago risen up in protest at the many frustrations of Word: its instability, its family of mutually incompatible file formats, the sheer ugliness of the documents it produces. Try writing twenty pages with thirty footnotes in Word and look at the huge stripes of white space at the bottom of every page&#8212;if Word doesn&#8217;t crash first. Then try manipulating an extensive bibliography in Word, even with the help of <a href="http://zotero.org">Zotero</a>. Not fun.</p>
<p>It doesn&#8217;t have to be that way. Switching to LaTeX involves, for a humanist, a big shift in how you go about producing documents, and even in how you <em>think</em> about producing documents, but the rewards are many. LaTeX doesn&#8217;t simply help you typeset pages more beautifully, though it really does that. It asks you to separate the content and the conceptual structure of your work on the one hand from the printed (or, more than ever, onscreen) page on the other. TeX&#8217;s job is to help you generate an aesthetically pleasing  representation of your content from a more bare-bones representation. Work in plain text, writing markup code (yes, code&#8212;but simple code), using the immense library of tools that computer scientists and programmers and text-processing wizards have developed for themselves over the last half-century. Then <em>produce</em> a PDF file, and printed pages, which automatically use all the typographical bells and whistles that used to be the exclusive province of professional designers and publishers with offset presses.</p>
<p>Why now? I have recently finished revising a <a href="http://andrewgoldstone.com/research.html#autonomy">book manuscript</a> using LaTeX, and it&#8217;s become clear to me that TeX has over the last few years taken a huge leap forward in its usefulness to humanists. It&#8217;s now possible to use <a href="http://unicode.org">Unicode</a> text to handle multiple languages easily in a single document (and to typeset those languages responsibly, with appropriate hyphenation). Using the <a href="http://www.tug.org/xetex">XeTeX</a> engine, you can use your system fonts, including &#8220;advanced&#8221; fonts with OpenType features (small caps, ligatures, old-style numerals&#8212;you have no idea how much difference these features make in producing a document that looks <em>typeset</em> rather than just <em>printed out</em>). And above all, the <a href="http://www.ctan.org/tex-archive/help/Catalogue/entries/biblatex.html">biblatex</a> project has finally provided a bibliography-management package adequate to the complicated demands of humanists. I have used the semi-miraculous <a href="http://www.ctan.org/tex-archive/help/Catalogue/entries/biblatex-chicago.html">biblatex-chicago</a> package, together with the very impressive <a href="http://bibdesk.sourceforge.net/">BibDesk</a> database manager, to automatically generate the hundreds of footnotes in my book from a database of sources&#8212;and LaTeX typesets my citations in full conformity with the <em>Chicago Manual of Style</em>. No other combination of text processor and bibliography manager even comes close to being able to do this. </p>
<p>So though TeX and LaTeX have been around for decades, they are only now finally coming into their own as tools for humanists. My posts here will chronicle my work with these tools&#8212;the discoveries I&#8217;ve made, the tricks I&#8217;ve learned, the frustrations I encounter. I hope, too, that it will be a place for other humanists using TeX or working on digital document forms to discuss their shared concerns and answer each other&#8217;s (and my) questions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/humtex.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/humtex.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/humtex.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/humtex.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/humtex.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/humtex.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/humtex.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/humtex.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/humtex.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/humtex.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/humtex.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/humtex.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/humtex.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/humtex.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=humtex.wordpress.com&amp;blog=28061479&amp;post=1&amp;subd=humtex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://humtex.wordpress.com/2011/10/02/intro/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44acef4a637da5c1e1328f67826eecae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agoldst</media:title>
		</media:content>
	</item>
	</channel>
</rss>
