<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>PhilTeX</title>
	
	<link>http://www.charlietanksley.net/philtex</link>
	<description>Technology for Philosophers - A Group Blog</description>
	<lastBuildDate>Wed, 09 Nov 2011 11:43:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Philtex" /><feedburner:info uri="philtex" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Philtex</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Writing CVs in LaTeX</title>
		<link>http://feedproxy.google.com/~r/Philtex/~3/iDfmX4Od8kE/</link>
		<comments>http://www.charlietanksley.net/philtex/writing-cvs-in-latex/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 11:43:09 +0000</pubDate>
		<dc:creator>Seamus Bradley</dc:creator>
				<category><![CDATA[Conversion]]></category>
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://www.charlietanksley.net/philtex/?p=756</guid>
		<description><![CDATA[Joseph Wright (UK-TUG secretary, author of siunitx and moderator on TeX.sx) has written a series of blog posts on writing CVs (résumés in American) in LaTeX. Joseph is a chemist, but pretty much everything he says is relevant to people from all academic disciplines. And much is even more general than that. Looking at the [...]]]></description>
			<content:encoded><![CDATA[<p>Joseph Wright (UK-TUG secretary, author of <a href="http://ctan.org/tex-archive/macros/latex/contrib/siunitx">siunitx</a> and moderator on <a href="http://tex.stackexchange.com/">TeX.sx</a>) has written a series of blog posts on writing CVs (résumés in American) in LaTeX. Joseph is a chemist, but pretty much everything he says is relevant to people from all academic disciplines. And much is even more general than that.</p>

<ol>
    <li><a href="http://www.texdev.net/2011/11/05/writing-a-curriculum-vitae-in-latex-part-1/">Looking at the wider picture</a></li>
    <li><a href="http://www.texdev.net/2011/11/06/writing-a-curriculum-vitae-in-latex-part-2/">Custom commands</a></li>
    <li><a href="http://www.texdev.net/2011/11/07/writing-a-curriculum-vitae-in-latex-part-3/">Bibliographies</a></li>
    <li><a href="http://www.texdev.net/2011/11/08/writing-a-curriculum-vitae-in-latex-part-4/">A short example</a></li>
</ol>

<p>I’ve recently been experimenting with writing my CV with emacs ORG mode to allow pdf and html versions to be kept in sync. This is one of many ways you might try maintaining multiple in-sync formats of your CV. Others include:</p>

<ul>
    <li>A TeX version and using htlatex to generate the html version</li>
    <li>Writing in markdown and using pandoc to generate tex and html versions</li>
</ul>

<p>Each way has advantages and disadvantages. I hope to write up my experiences of trying out each method soon.</p>
<img src="http://feeds.feedburner.com/~r/Philtex/~4/iDfmX4Od8kE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.charlietanksley.net/philtex/writing-cvs-in-latex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.charlietanksley.net/philtex/writing-cvs-in-latex/</feedburner:origLink></item>
		<item>
		<title>Tufte-LaTeX and a minimal LaTeX installation</title>
		<link>http://feedproxy.google.com/~r/Philtex/~3/VYZNX--1Qqg/</link>
		<comments>http://www.charlietanksley.net/philtex/tufte-latex-and-a-minimal-latex-installation/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 20:32:44 +0000</pubDate>
		<dc:creator>Charlie Tanksley</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[packages]]></category>

		<guid isPermaLink="false">http://www.charlietanksley.net/philtex/?p=751</guid>
		<description><![CDATA[In order to save space on my new laptop, I installed the smallest MacTeX package possible. So far this has worked out well for me, with one hitch: when you want to use a non-default package, you have to install it, of course, and sometimes that requires installing lots of dependencies, too. Unless I’m missing [...]]]></description>
			<content:encoded><![CDATA[<p>In order to save space on my new laptop, I installed the smallest MacTeX package possible.  So far this has worked out well for me, with one hitch: when you want to use a non-default package, you have to install it, of course, and sometimes that requires installing lots of dependencies, too.  Unless I’m missing something (which is possible), the dependency management for LaTeX packages is pretty weak.  I ran into a ton of dependencies for one of my favorite packages, <a href='http://code.google.com/p/tufte-latex/'>Tufte-LaTeX</a>, so I thought I’d list them here.</p>

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

<p>I’m using the cli <code>tlmgr</code>, so I installed each of these via <code>sudo tlmgr install PACKAGE-NAME</code>:</p>

<ul>
<li>xifthen</li>
<li>ifmtarg</li>
<li>changepage (for the chngpage package)</li>
<li>paralist</li>
<li>saurj (for the optparams package)</li>
<li>placeins</li>
</ul>

<p>Install all those (plus tufte-latex!) and you are good to go.  Oh yea, and if you haven’t checked out the Tufte-book and Tufte-handout classes that come with Tufte-LaTeX, I highly recommend them.</p>
<img src="http://feeds.feedburner.com/~r/Philtex/~4/VYZNX--1Qqg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.charlietanksley.net/philtex/tufte-latex-and-a-minimal-latex-installation/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.charlietanksley.net/philtex/tufte-latex-and-a-minimal-latex-installation/</feedburner:origLink></item>
		<item>
		<title>Lout: An alternative to LaTeX?</title>
		<link>http://feedproxy.google.com/~r/Philtex/~3/aef6gepq6PE/</link>
		<comments>http://www.charlietanksley.net/philtex/lout-an-alternative-to-latex/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 04:04:42 +0000</pubDate>
		<dc:creator>Kevin Klement</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[text editors]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.charlietanksley.net/philtex/?p=744</guid>
		<description><![CDATA[I’ve recently been playing around with the Lout document typesetting system. Lout is in many ways similar to LaTeX, was also created by academics, and seems to cater to the same community. While there are disadvantages, its chief advantages seem to be speed and size: a download of the entire system is less than 1 [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve recently been playing around with the <a href="http://savannah.nongnu.org/projects/lout/">Lout document typesetting system</a>. Lout is in many ways similar to LaTeX, was also created by academics, and seems to cater to the same community. While there are disadvantages, its chief advantages seem to be speed and size: a download of the entire system is less than 1 MB, and takes around 5 MB when installed.</p>

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

<p>Like LaTeX, you begin by editing a text file. This text file consists firstly of a header or preamble, which is used to load libraries and set initial parameters. Next comes the body of the document, with special mark-up tags or commands for special elements. In Lout, these typically begin with @, much like LaTeX’s backslash. Finally, there is a command to end the document.</p>

<p>This text file is processed by lout to generate the typeset document. By default, lout creates a PostScript file and sends it to stdout, though you can redirect it into a file, or send it directly to a printer:</p>

<pre class="brush:text; gutter:false;">
lout my-document.lout > my-document.ps
</pre>

<p>With <a href="http://pages.cs.wisc.edu/~ghost/">ghostscript</a> installed, you can pass the result to ps2pdf to create a PDF instead:</p>

<pre class="brush:text; gutter:false;">
lout my-document.lout | ps2pdf - my-document.pdf
</pre>

<p>I’ve mainly been testing with simple documents, but it seems to do its work very fast, and generates far less “noise” on the command-line compared to LaTeX.</p>

<p>Here is a sample lout file:</p>

<pre class="brush:text;">
@SysInclude { doc }
@SysInclude { eq }
@SysInclude { graph }
@Document 
    @InitialSpace { tex }
    @InitialFont { Palatino Base 12p }
@Text @Begin
@Display @Heading { Sample Lout Document }
@PP
This is a sample paragraph. It is really just intended as filler, not as anything special. I should probably put in things like ``scare quotes'', and shouldn't avoid things like apostrophes so everyone can get a better sense of how things look. Maybe a sentence with a lot of different letters? How about: grumpy wizards make toxic brew for the evil Queen and Jack. I stole that from Google web fonts.@FootNote { You've heard of Google right? } What do you think?

@PP
Here is a new paragraph. Let's add words in @B bold and @I italics, shall we? How about @S { Small Caps }? We can even do a @ShadowBox { Shadow Box } if we like.

@QuotedDisplay {
This is a sample paragraph in a quotation display. It is really just intended as filler, not as anything special. I should probably put in things like ``scare quotes'', and shouldn't avoid things like apostrophes so everyone can get a better sense of how things look. Maybe a sentence with a lot of different letters? How about: grumpy wizards make toxic brew for the evil Queen and Jack. I stole that from Google web fonts. What do you think?
}

@Heading { A Numbered List }
@NumberedList
    @ListItem One
    @ListItem Two
@EndList

@Heading { Displayed Mathematics }
@Display @Eq { T(n) = big sum from i=0 to n-1 2 sup i = 2 sup n - 1}

@LeftDisplay @Heading { A Sample Graph }
@Graph
abovecaption { New South Wales road deaths
(per 100 million vehicle km) }
{
@Data points { plus } pairs { dashed }
{ 1963 5.6 1971 4.3 1976 3.7 1979 3.4
1982 2.9 1985 2.3 1988 2.0 }
}

@End @Text
</pre>

<p>The generated output looks like this:</p>

<p><a href="http://www.charlietanksley.net/philtex/wp-content/uploads/2011/10/sample.png"><img src="http://www.charlietanksley.net/philtex/wp-content/uploads/2011/10/sample.png" alt="sample lout doc" title="sample lout doc" width="612" height="792" class="aligncenter size-full wp-image-746" /></a></p>

<p>The first three lines load specific libraries and commands. As you can see, there are special libraries for typesetting equations and complex mathematics, as well as for making graphs and figures. The next four lines represent the rest of the “preamble”; here I do little more that set spacing to emulate TeX in putting extra space between sentences, as well set the base font to Palatino. (The default otherwise is Times.)</p>

<p>Lout’s paragraph layout algorithm is based on TeX’s, and so should generate typographically pleasing results in most cases. It has a built in functional programming language, and so is highly extensible in all sorts of ways. It has built in mechanisms for lists, footnotes, citations, and most other routine tasks you’d expect.</p>

<p>I can think of the following advantages for learning Lout:</p>

<ol>
<li>It’s lightweight! You could carry it around on a floppy disk, and the typical installation is less than 1% of a medium sized (La)TeX installation. That’s neat.</li>
<li>It’s fast! Typesetting a small document at least seems to take less time than it does with LaTeX.</li>
<li>It can be extended easily.</li>
<li>It’s free and open source, and can be used with any text editor. (I was pleased to discover that vim has syntax highlighting for Lout!)</li>
<li>There are far fewer external packages to remember the ins and outs of, and maintaining a Lout system is far easier than maintaining a TeX system.</li>
<li>A single comprehensive user’s guide is available: <a href="http://lout.sourceforge.net/docs/user.pdf">here</a>.</li>
<li>It’s fun to learn something new.</li>
</ol>

<p>But that’s not to say there aren’t significant disadvantages.</p>

<ol>
<li>It’s not widely used, so you have trouble sharing with colleagues, and an impossible time submitting to journals.</li>
<li>You’re far less likely to find pre-made bibliography styles or templates for various journals or publishers.</li>
<li>You won’t be able to make use of the many specific  and powerful packages that have been created for the (La)TeX ecosystem. </li>
<li>Conversion tools and other specialized software is harder to find.</li>
<li>The community of users with expertise you can drawn on is much smaller.</li>
<li>Sometimes it’s not so fun to (have to) learn something new.</li>
</ol>

<p>That said, I’ve really only begun scratching the surface of learning Lout, and am by no means an expert. I welcome your feedback. For experienced users, what have you found to like or dislike about it? For inexperienced users, what are your first impressions?</p>
<img src="http://feeds.feedburner.com/~r/Philtex/~4/aef6gepq6PE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.charlietanksley.net/philtex/lout-an-alternative-to-latex/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.charlietanksley.net/philtex/lout-an-alternative-to-latex/</feedburner:origLink></item>
		<item>
		<title>Squeezing things onto one page</title>
		<link>http://feedproxy.google.com/~r/Philtex/~3/UEbRlmMrQTQ/</link>
		<comments>http://www.charlietanksley.net/philtex/squeezing-things-onto-one-page/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 14:00:25 +0000</pubDate>
		<dc:creator>Seamus Bradley</dc:creator>
				<category><![CDATA[formatting]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[enumeration]]></category>
		<category><![CDATA[titles]]></category>

		<guid isPermaLink="false">http://www.charlietanksley.net/philtex/?p=735</guid>
		<description><![CDATA[One thing that you may want to do with LaTeX is write handouts for your classes. This imposes particular constraints on you. In particular, you want the handout to only be one page (or two sides). Now, LaTeX’s standard margins are rather generous, and the spacing it puts between items in lists and between section [...]]]></description>
			<content:encoded><![CDATA[<p>One thing that you may want to do with LaTeX is write handouts for your classes. This imposes particular constraints on you. In particular, you want the handout to only be one page (or two sides). Now, LaTeX’s standard margins are rather generous, and the spacing it puts between items in lists and between section headings and body text are all likewise rather generous. And with good reason: it doesn’t do to make things too cramped. But for this particular purpose, it might be desirable to squish things just a little bit. So let’s look at some ways to do that.</p>

<p><span id="more-735"></span>I won’t be too judgemental in what follows, but just remember: only make what modifications are necessary. White space is normally a good thing.</p>

<p>The easiest and quickest way to fit more on a page is to go to a two column approach.</p>

<pre class="brush: latex;">\documentclass[twocolumn]{article}
\setlength{\columnsep}{2em}</pre>

<p>This makes your whole document two columns. For more control you might want to use the <a title="multicol" href="http://www.ctan.org/pkg/multicol">multicol</a> package to only have some parts in two columns. You can adjust the <code>\columnsep</code> length to suit. I find anything less that <code>2em</code> a little cramped, but if you’re really pushed for space you could change this.</p>

<pre class="brush: latex;">\usepackage[margin=1in,top=1.5in]{geometry}</pre>

<p>Here’s another easy trick that’s easily abused: change the document’s margins! The <a title="geometry package" href="http://www.ctan.org/pkg/geometry"><code>geometry</code></a> package allows you to modify LaTeX’s default generous margins in a very simple way. For example, here I have set all margins to one inch, and then modified the top margin to be slightly larger. You can likewise change <code>left,right,bottom</code> margins separately. This is a powerful package that allows much more involved changes, but for now, let’s leave it at that. If you use the <a title="KOMA script" href="http://www.ctan.org/pkg/koma-script">KOMA script</a> classes, they have their own package with much the same functionality as <code>geometry</code> called <a title="typearea" href="http://www.ctan.org/pkg/typearea"><code>typearea</code></a></p>

<pre class="brush: latex;">\usepackage{enumitem}
\setlist{leftmargin=*,itemsep=0pt,parsep=0pt,topsep=.5\baselineskip}</pre>

<p>Are your itemisations and enumerations taking up too much room? <a title="enumitem" href="http://www.ctan.org/pkg/enumitem"><code>enumitem</code></a> to the rescue! This package allows you to change many details of your list environments. Here I’ve just made spacing very minimal. Personally, I think this is too cramped, but if you really need the space, this is one way to do it.</p>

<p>Now, that pesky title is taking up altogether too much room. We can use the <a title="titling" href="http://www.ctan.org/pkg/titling"><code>titling</code></a> package to fix that.</p>

<pre class="brush: latex;">\usepackage{titling}
\pretitle{\noindent\Large\bfseries}
\posttitle{\\}
\preauthor{\itshape}
\postauthor{}
\predate{\itshape}
\postdate{}
\setlength{\droptitle}{-1in}</pre>

<p>This package completely redefines the way the titles are done. So we can just make a very minimal looking title by specifying what code we want before and after each of the title elements (title, author and date). The above example just sets the title large and bold, and the author and date on the next line in italics. Takes up much less space now. The <code>\droptitle</code> is the length of space above the title. I’ve made in one inch less than the default to save more space.</p>

<p>Finally, and this is by far the least intrusive and damaging modification, we can change the amount of space the section headings take up.</p>

<pre class="brush: latex;">\usepackage[small,compact,sc]{titlesec}</pre>

<p>The <a title="titlesec" href="http://www.ctan.org/pkg/titlesec"><code>titlesec</code></a> package has already cropped up in a <a title="using titlesec" href="http://www.charlietanksley.net/philtex/modifying-section-commands-with-the-titlesec-package/">previous post of mine</a>. But this time, we’re just using its package options method for modifying things. This is much easier than getting into the nuts and bolts of how to change the section headings individually. The <code>small</code> option makes the section heading text smaller than normal. The <code>compact</code> option reduces the vertical space the headings take up. The <code>sc</code> option sets the section headings in small caps. I did this just to differentiate them from the title text, which is now of a similar size.</p>

<p>OK. That concludes this brief primer on breaking LaTeX’s sensible rules on how much stuff you should fit on a page.</p>

<h2>Post script</h2>

<p>Since writing this, boumol pointed out that the <a title="save trees" href="http://ctan.org/pkg/savetrees"><code>savetrees</code></a> package does a lot of the same things I achieve, and indeed goes further. For instance, it modifies the letter spacing and leading (the space between lines). To quote <a title="Bringhurst" href="http://en.wikipedia.org/wiki/The_Elements_of_Typographic_Style">Bringhurst</a>: “in the world of digital type, it is very easy for a designer … with no regard for letters to squish them into cattle trains and ship them to the slaughter. When letters are maltreated in this way, their reserve of legibility is sapped. They can do little in return except shortchange and brutalise the reader”. <code>savetrees</code> does some other clever things like making LaTeX try harder to not have a paragraph end with a single word. You can, of course turn off the genuinely brutal things the package does, and keep the less brutal ones.</p>

<p>I think the above tutorial serves, in part, as <em>one way</em> to achieve some squishing. But more broadly, it serves to point to some good packages for modifying the style and layout of the page more generally.</p>
<img src="http://feeds.feedburner.com/~r/Philtex/~4/UEbRlmMrQTQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.charlietanksley.net/philtex/squeezing-things-onto-one-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.charlietanksley.net/philtex/squeezing-things-onto-one-page/</feedburner:origLink></item>
		<item>
		<title>Basics of LaTeX from the Command Line</title>
		<link>http://feedproxy.google.com/~r/Philtex/~3/JZNMuCNNYaM/</link>
		<comments>http://www.charlietanksley.net/philtex/basics-of-latex-from-the-command-line/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 02:44:48 +0000</pubDate>
		<dc:creator>Kevin Klement</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[packages]]></category>

		<guid isPermaLink="false">http://www.charlietanksley.net/philtex/?p=726</guid>
		<description><![CDATA[Even if you do all your LaTeXing from within a specialized text editor or IDE with pre-defined commands, it’s still a good idea to know some of the basic command line commands and options, so you can customize your editor’s settings, or write scripts. Here are some essentials I think everyone who uses LaTeX should [...]]]></description>
			<content:encoded><![CDATA[<p>Even if you do all your LaTeXing from within a specialized text editor or IDE with pre-defined commands, it’s still a good idea to know some of the basic command line commands and options, so you can customize your editor’s settings, or write scripts. Here are some essentials I think everyone who uses LaTeX should know about LaTeXing from the command line. This guide assumes you are using TeXlive or TeXlive-based system (like MacTeX) on a UNIX-like operating system (GNU/Linux, BSD or Mac), though some of it would carry over to MikTeX/Windows as well, and is meant for relative beginners.</p>

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

<ol>
<li><a href="#latex">pdflatex/xelatex/latex</a></li>
<li><a href="#bibtex">bibtex</a></li>
<li><a href="#texdoc">texdoc</a></li>
<li><a href="#kpse">kpsewhich and friends</a></li>
<li><a href="#tlmgr">tlmgr</a></li>
<li><a href="#other">other tools</a></li>
</ol>

<h2 id="latex">pdflatex/xelatex/latex</h2>

<pre class="brush: shell; gutter: false;">pdflatex [options] filename.tex</pre>

<p>Or</p>

<pre class="brush: shell; gutter: false;">latex [options] filename.tex</pre>

<p>Or</p>

<pre class="brush: shell; gutter: false;">xelatex [options] filename.tex</pre>

<p>Let’s start with the most obvious one, LaTeX itself! These days, most of us use <tt>pdflatex</tt>, which will take a LaTeX source file and directly output a PDF. If your code contains PostScript commands such as those from the <a href="http://ctan.org/pkg/pstricks">pstricks</a> package, you may need to use simple <tt>latex</tt>, which outputs a DVI file, which would then need to be converted first to .ps using <tt>dvips filename.dvi</tt> and then to pdf with <tt>ps2pdf filename.ps</tt> (which requires GhostScript). Another reason you might need plain <tt>latex</tt> could be that you’re using an older LaTeX system and need to use .eps graphics (although newer LaTeX systems can handle .eps using pdflatex directly). <tt>xelatex</tt> is like pdflatex in that it generates a PDF directly, but uses the XeTeX engine, which is necessary mainly if you want to use system fonts through, e.g., the <a href="http://ctan.org/pkg/fontspec">fontspec</a> package.</p>

<h3>Important Options to Know About</h3>

<p>There are quite a few options you can pass to <tt>(pdf)(xe)latex</tt> when you compile. Here are some of the ones I think it is important to know about.</p>

<pre class="brush: shell; gutter: false;">-interaction=nonstopmode</pre>

<p>Or</p>

<pre class="brush: shell; gutter: false;">-interaction=batchmode</pre>

<p>If you run LaTeX without options, and it encounters errors, it will give you an interactive prompt asking what to do. I don’t personally find it very user-friendly, and I think it hasn’t changed since the early days of TeX, when compiling could take <em>much longer</em>, and it sometimes made sense to fix problems on the fly rather than recompile from scratch. These days, it’s better to learn about all errors and fix them in the source file. Using <tt>nonstopmode</tt> or <tt>batchmode</tt> to compile will suppress the interactive prompts. The difference between them is that nonstopmode will ignore errors and do its best to build a PDF anyway, whereas batchmode will suppress PDF output if errors are encountered.</p>

<pre class="brush: shell; gutter: false;">-halt-on-error</pre>

<p>Using this option will cause LaTeX to quit after the first error it finds. This can be a time saver if you want to focus on fixing them one by one.</p>

<pre class="brush: shell; gutter: false;">-file-line-error</pre>

<p>This option affects the way errors are printed in the .log file, putting them in the format <tt>filename.tex:line_number:Error message</tt>, which can be useful for parsing the log.</p>

<pre class="brush: shell; gutter: false;">-synctex=1</pre>

<p>When this option is used, a file named <tt>filename.synctex.gz</tt> is created, which contains information about what parts of the PDF were created by what parts of the source file. Advanced editors and PDF viewers can use this information to conduct forward and reverse searches from one to the other (click on a spot in the PDF and jump to the corresponding part of the file, and vice-versa). You can also use the <tt>synctex</tt> program from the command line. E.g., <tt>synctex view –i 25:15:filename.tex –o filename.pdf</tt> would return information about what part of filename.pdf corresponds to line 25, row 15 of filename.tex. Type in <tt>synctex view help</tt> or <tt>synctex edit help</tt> (for the other direction) for more details.</p>

<pre class="brush: shell; gutter: false;">-shell-escape</pre>

<p>Activating the <tt>–shell-escape</tt> option allows LaTeX to execute other commands on your computer, and make changes to files other than the usual ones. This is mainly necessary if you need to call upon external commands such as a graphics conversion program to handle uncommon image formats, or the like. The option should be used cautiously, however, since poorly written or malicious code inside a LaTeX document could lead to trouble. On MikTeX systems, you need <tt>–enable-write18</tt> instead.</p>

<h2 id="bibtex">bibtex</h2>

<pre class="brush: shell; gutter: false;">bibtex filename.aux</pre>

<p>When you run (pdf)(xe)latex on a source file containing citations, it creates an auxiliary file, filename.aux, which, among other things, contains a list of those citations and information about the bibliography style chosen. The BibTeX program is run with this auxiliary file as input and uses it to create a file named filename.bbl, a bibliography file. Since it needs this auxiliary file, (pdf)(xe)latex must be run before running bibtex, and then run again at least once, typically twice, after bibtex, in order to incorporate the .bbl file bibtex creates into the document.</p>

<h2 id="texdoc">texdoc</h2>

<pre class="brush: shell; gutter: false;">texdoc [options] NAME</pre>

<p>This is LaTeX’s equivalent to the UNIX <tt>man</tt> command. When you simply type in <tt>texdoc NAME</tt>, the most pertinent LaTeX documentation having to do with whatever you typed in for NAME will be launched. Usually, you’ll enter the name of a package or document class, e.g., <tt>texdoc enumitem</tt>, and the manual for that package will be opened. If you use the <tt>–l</tt> option, you’ll get a list of documents to choose from, if more than one relevant document can be found.</p>

<h2 id="kpse">kpsewhich and friends</h2>

<pre class="brush: shell; gutter: false;">kpsewhich filename</pre>

<p>Or</p>

<pre class="brush: shell; gutter: false;">kpsewhere filename</pre>

<p>Do you have more than one version of a certain package installed on your system, and are uncertain which version will be used? Or do you simply want to know where a certain file (package, document class, BibTeX style file, etc.) is located? Calling <tt>kpsewhich filename</tt> will tell you the exact location of the file that would be used with a given filename. For example, for me, typing in <tt>which enumitem.sty</tt> returns <tt>/usr/local/texlive/2011/texmf-dist/tex/latex/enumitem/enumitem.sty</tt>. If you want to see all the places where it is installed, use <tt>kpsewhere</tt> instead.</p>

<pre class="brush: shell; gutter: false;">kpsepath FILETYPE</pre>

<p>If you instead want a list of all the places LaTeX (or related program) searches when looking for a certain type of file, you can use <tt>kpsepath</tt>. The FILETYPE can be things like <tt>tex</tt> for TeX source, <tt>bib</tt> for BiBTeX bibliographies, <tt>bst</tt> for BibTeX style files, <tt>pict</tt> for images/figures, and several others. The result is a list of directories separated by colons. If a directory name ends with a double slash <tt>//</tt>, this means subdirectories are also searched. If a directory name is preceded by <tt>!!</tt> this means it doesn’t actually search the directory itself, but relies on an index of files (an ls-R) file, which can be updated by running: </p>

<pre class="brush: shell; gutter: false;">mktexlsr /path/to/folder</pre>

<p>(This may need to be run as root, or with <tt>sudo</tt>, to update the ls-R for folders you don’t have write-access to as a user.)</p>

<h2 id="tlmgr">tlmgr</h2>

<pre class="brush: shell; gutter: false;">[sudo] tlmgr [action] [options] [target]</pre>

<p>The TeX live manager, or tlmgr, is a powerful tool for managing your entire LaTeX installation. Its chief uses are installing, removing and updating packages. (Be warned, however, that if you’re using a Linux distribution that has its own package manager, and used it to install TeXlive, you may not have tlmgr in addition.) Since it makes changes system-wide, it must usually be run as root, or with sudo. For example, to install a package from CTAN: </p>

<pre class="brush: shell; gutter: false;">sudo tlmgr install pgf</pre>

<p>This would install the PGF/TikZ package if you didn’t have it already and get it ready to be used. To uninstall, use:</p>

<pre class="brush: shell; gutter: false;">sudo tlmgr remove pgf</pre>

<p>By far the most common use, for me personally anyway, is to update all the packages I have installed:</p>

<pre class="brush: shell; gutter: false;">sudo tlmgr update -self -all</pre>

<p>This will sync your list of packages with a CTAN repository. You can also use tlmgr to query which package a certain file belongs to:</p>

<pre class="brush: shell; gutter: false;">tlmgr search --file tikz.sty</pre>

<p>And tlmgr has dozens of other uses too. Type <tt>man tlmgr</tt> for a list of commands. I should also mention that if you have Perl/Tk installed, you can also use a GUI to access tlmgr, launched with:</p>

<pre class="brush: shell; gutter: false;">sudo tlmgr gui</pre>

<p>Though that defeats the purpose for this particular blog post.</p>

<h2 id="other">other tools</h2>

<pre class="brush: shell; gutter: false;">texcount filename.tex</pre>

<p></p>

<p><tt>texcount</tt>, sometimes called <tt>texcount.pl</tt> is a sophisticated and customizable Word Count utility for LaTeX files, with many options, and comes with TeXlive. Run it without argument to get a help screen, and see <a href="http://app.uio.no/ifi/texcount/">its webpage</a> for more information.</p>

<pre class="brush: shell; gutter: false;">pdfcrop filename.pdf</pre>

<p>PDFCrop, another perl script that ships with TeXlive, will crop a PDF to the smallest possible page size. This is useful if you use LaTeX to either create, or include, PDF images which need to be smaller than a full piece of paper.</p>

<pre class="brush: shell; gutter: false;">pdfjam [options|actions] filename1.pdf [filename2.pdf]</pre>

<p>PDFJam is actually a collection of tools that make use of the pdflatex <a href="http://ctan.org/pkg/pdfpages">pdfpages</a> package to manipulate, combine, rotate and split PDF files. In fact, it is often used not with the above command, but with more specific commands that rely on it: <tt>pdfflip</tt>, <tt>pdfnup</tt>, <tt>pdfjoin</tt>, etc. See <a href="http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam/">its homepage</a> for more info.</p>

<pre class="brush: shell; gutter: false;">detex filename.tex</pre>

<p>This command will remove LaTeX commands and options from a file, leaving only the plain text behind. This can be useful for passing to a text to speech system, a spell checker, or in a variety of other ways.</p>

<p>Feel free to share your favorite LaTeX related commands and tricks in the comments below.</p>
<img src="http://feeds.feedburner.com/~r/Philtex/~4/JZNMuCNNYaM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.charlietanksley.net/philtex/basics-of-latex-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://www.charlietanksley.net/philtex/basics-of-latex-from-the-command-line/</feedburner:origLink></item>
		<item>
		<title>Developments</title>
		<link>http://feedproxy.google.com/~r/Philtex/~3/WCnNOpHBR0U/</link>
		<comments>http://www.charlietanksley.net/philtex/developments/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 12:15:09 +0000</pubDate>
		<dc:creator>Seamus Bradley</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[enumeration]]></category>

		<guid isPermaLink="false">http://www.charlietanksley.net/philtex/?p=722</guid>
		<description><![CDATA[This is just a quick post to say that I’ve put a package on CTAN. Now you can have your page numbers in octal! Sweet! Less frivolously, this makes greek letter enumeration easier. moreenum offers a whole bunch of new enumeration options. It hasn’t been all that rigorously tested, so do please post bugs to [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a quick post to say that I’ve put a package on CTAN. Now you can have your page numbers in octal! Sweet! Less frivolously, this makes greek letter enumeration easier. <a href="http://www.tug.ctan.org/pkg/moreenum"><code>moreenum</code></a> offers a whole bunch of new enumeration options. It hasn’t been all that rigorously tested, so do please post bugs to the <a href="https://github.com/scmbradley/moreenum">Github page</a>.</p>

<p>I’m also developing a package that allows you to print the input file line numbers in the margin. This is useful if you want to print off a copy of your draft for someone, and then be able to quickly incorporate their feedback. This is very much a work in progress (there’s no documentation to speak of and some of the options don’t work). But here is the <a href="https://github.com/scmbradley/draftinputlines">github page for <code>draftinputlines</code></a> for the interested.</p>

<p>What is the cause of all this LaTeX related productivity? Why, it’s <a href="http://www.structuredprocrastination.com/">structured procrastination</a> at its finest! I have a paper to finish drafting and am desperately trying to avoid it.</p>
<img src="http://feeds.feedburner.com/~r/Philtex/~4/WCnNOpHBR0U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.charlietanksley.net/philtex/developments/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.charlietanksley.net/philtex/developments/</feedburner:origLink></item>
		<item>
		<title>Primarily Pandoc: Writing in Markdown instead of LaTeX</title>
		<link>http://feedproxy.google.com/~r/Philtex/~3/JCnLWjCGvoQ/</link>
		<comments>http://www.charlietanksley.net/philtex/primarily-pandoc/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 21:50:39 +0000</pubDate>
		<dc:creator>Charlie Tanksley</dc:creator>
				<category><![CDATA[Conversion]]></category>
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://www.charlietanksley.net/philtex/?p=717</guid>
		<description><![CDATA[In light of Kevin’s recent post on Pandoc 1.8, I’ve been thinking lately about the possibility of writing papers directly in Markdown, then translating them into another format (like LaTeX) when the time is appropriate. This post explores just what this might look like. A sample I need a sample to work with, so I [...]]]></description>
			<content:encoded><![CDATA[<p>In light of <a href="http://www.charlietanksley.net/philtex/pandoc/">Kevin’s recent post on Pandoc 1.8</a>, I’ve been thinking lately about the possibility of writing papers directly in Markdown, then translating them into another format (like LaTeX) when the time is appropriate.  This post explores just what this might look like.</p>

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

<h2>A sample</h2>

<p>I need a sample to work with, so I picked a small section from a paper I’ve been working on.</p>

<pre><code>\section{Introduction}
\label{introduction}</code>

<code>Peter van Inwagen \citeyearpar{vanInwagenDAUP} first formulated the 
Doctrine of Arbitrary Undetached Parts (DAUP).  Here is his 
presentation of that thesis:
\begin{quote}
  For every material object M, if R is the region of space occupied by 
  M at time t, and if sub-R is any occupiable sub-region of R 
  whatever, there exists a material object that occupies the region 
  sub-R at t.  \citeyearpar[123]{vanInwagenDAUP}
\end{quote}
DAUP says that if some arbitrary region of space sub-R is a part of 
the region occupied by an object, then there is another object that 
exactly occupies sub-R.  To make this more clear, consider an example: 
call the region occupied by my left hand `Left'.  Left is a part of 
the region I occupy.  So, according to DAUP, there is an object that 
exactly fills Left.</code>

<code>DAUP is an odd thesis in that its name tells us the thesis is a 
doctrine about \emph{parts,} but no synonym of `part' appears in the 
thesis.  Why think it is a thesis about parts at all?</code>

<code>[This part added]</code>

<code>Three reasons:
\begin{enumerate}
  \item First reason.
  \item Second reason.
  \item Third reason.
\end{enumerate}</code>

<code>[End addition]</code>

<code>Consider this definition of \emph{part}:
\begin{description}
  \item[Part as Overlap (PAO).] ``[O]ne thing is part of another if 
    and only if whatever overlaps the former also overlaps the 
    latter.'' \citep[44]{GoodmanSA}\footnote{Goodman uses the notion 
      of \emph{overlap} to define all the other mereological notions.  
      This means that, for example, \emph{identity} gets defined as 
      ``a and b are identical if and only if they overlap exactly the 
      same individuals,'' and \emph{sum} as ``that individual which 
      overlaps just those individuals which overlap at least one of 
      the two'' \citeyearpar[45--46]{GoodmanSA}.</code>

<code>    But as many have pointed out, there are a handful of mereological 
    notions one could take as primitive, defining the others in terms 
    of that one; for example, \emph{part, proper part,} and 
    \emph{disjoint} could work equally well.  See \citet{SimonsP} for 
    more on this.}
\end{description}</code></pre>

<p>I had to add some to make sure I demonstrated how ordered lists worked, otherwise, this sample covers the basics: plain text, emphasized text, citations using Natbib, description lists, footnotes, and inline and block quotations.</p>

<h2>On Pandoc and Markdown</h2>

<p>Pandoc is an extension of Markdown.  I’m going to be using those extensions here, so I’ll call what I’m writing ‘Pandoc’.  You could do some of this using plain <a href="http://daringfireball.net/projects/markdown/">Markdown</a>.  Alternatively, you could use <a href="http://fletcherpenney.net/multimarkdown/">MultiMarkdown</a> for a different extension of Markdown.  But since I’m using the extensions provided by Pandoc, I’ll say I’m writing in Pandoc.  But my file has a .markdown (or .mkd, if you prefer) extension.</p>

<h2>Rewriting in Pandoc</h2>

<p>I’m not so much interested here in converting <strong>from</strong> LaTeX to Pandoc, but in writing in Pandoc, then converting to LaTeX.  So I’m starting with the following text, written in Pandoc (this is a manual translation of the above, so I can write it the way I naturally would, not the way Pandoc would translate it).</p>

<pre><code># Introduction</code>

<code>Peter van Inwagen [@vanInwagenDAUP] first formulated the Doctrine of Arbitrary
Undetached Parts (DAUP).  Here is his presentation of that thesis:</code>

<code>&gt; For every material object M, if R is the region of space occupied by 
&gt; M at time t, and if sub-R is any occupiable sub-region of R 
&gt; whatever, there exists a material object that occupies the region 
&gt; sub-R at t.  [-@vanInwagenDAUP 123]</code>

<code>DAUP says that if some arbitrary region of space sub-R is a part of the region
occupied by an object, then there is another object that exactly occupies
sub-R.  To make this more clear, consider an example: call the region occupied
by my left hand 'Left'.  Left is a part of the region I occupy.  So, according
to DAUP, there is an object that exactly fills Left.</code>

<code>DAUP is an odd thesis in that its name tells us the thesis is a doctrine about
_parts_, but no synonym of 'part' appears in the thesis.  Why think it is a
thesis about parts at all?</code>

<code>[This part added]</code>

<code>Three reasons:</code>

<code>1. First reason.
2. Second reason.
3. Third reason.</code>

<code>[End addition]</code>

<code>Consider this definition of _part_:</code>

<code>Part as Overlap (PAO)</code>

<code>:    "[O]ne thing is part of another if and only if whatever overlaps the
     former also overlaps the latter." [@GoodmanSA p. 44][^goodman]</code>

<code>[^goodman]: Goodman uses the notion of _overlap_ to define all the other
mereological notions.  This means that, for example, _identity_ gets defined as
"a and b are identical if and only if they overlap exactly the same
individuals," and _sum_ as "that individual which overlaps just those
individuals which overlap at least one of the two
[@GoodmanSA pp. 45-46].</code>

<code>    But as many have pointed out, there are a handful of mereological notions
    one could take as primitive, defining the others in terms of that one; for
    example, _part, proper part,_ and _disjoint_ could work equally well.  See
    @SimonsP for more on this.</code>

<code># References</code></pre>

<p>One thing I’m excited about here: I can hard wrap within paragraphs in Pandoc.  I write my blog posts using Textile and you can’t do that.  I don’t know if that is standard Markdown or not, but I like it!</p>

<h2>Pandoc to LaTeX</h2>

<p>I’m leaving out the header information that Pandoc generates, but when I run <code>pandoc --bibliography ~/Library/texmf/bibtex/bib/mybib.bib -s -o tmp/pandoc_sample.tex pandoc_sample.markdown</code>, here is the LaTeX I get back:</p>

<pre><code>\section{Introduction}</code>

<code>Peter van Inwagen (Inwagen 1981) first formulated the Doctrine of
Arbitrary Undetached Parts (DAUP). Here is his presentation of that
thesis:</code>

<code>\begin{quote}
For every material object M, if R is the region of space occupied by M
at time t, and if sub-R is any occupiable sub-region of R whatever,
there exists a material object that occupies the region sub-R at t.
(1981, 123)</code>

<code>\end{quote}
DAUP says that if some arbitrary region of space sub-R is a part of the
region occupied by an object, then there is another object that exactly
occupies sub-R. To make this more clear, consider an example: call the
region occupied by my left hand `Left'. Left is a part of the region I
occupy. So, according to DAUP, there is an object that exactly fills
Left.</code>

<code>DAUP is an odd thesis in that its name tells us the thesis is a doctrine
about \emph{parts}, but no synonym of `part' appears in the thesis. Why
think it is a thesis about parts at all?</code>

<code>{[}This part added{]}</code>

<code>Three reasons:</code>

<code>\begin{enumerate}[1.]
\item
  First reason.
\item
  Second reason.
\item
  Third reason.
\end{enumerate}
{[}End addition{]}</code>

<code>Consider this definition of \emph{part}:</code>

<code>\begin{description}
\item[Part as Overlap (PAO)]
``{[}O{]}ne thing is part of another if and only if whatever overlaps
the former also overlaps the latter.'' (Goodman 1951, p.~44)\footnote{Goodman
  uses the notion of \emph{overlap} to define all the other mereological
  notions. This means that, for example, \emph{identity} gets defined as
  ``a and b are identical if and only if they overlap exactly the same
  individuals,'' and \emph{sum} as "that individual which overlaps just
  those individuals which overlap at least one of the two
  \citeyearpar[45--46]{GoodmanSA}.</code>

<code>  But as many have pointed out, there are a handful of mereological
  notions one could take as primitive, defining the others in terms of
  that one; for example, \emph{part, proper part,} and \emph{disjoint}
  could work equally well. See Simons (1987) for more on this.}
\end{description}
\section{References}</code>

<code>Goodman, Nelson. 1951. \emph{The Structure of Appearance}. Cambridge,
MA: Harvard University Press.</code>

<code>Inwagen, Peter van. 1981. The Doctrine of Arbitrary Undetached Parts.
\emph{Pacific Philosophical Quarterly} 62: 123--37.</code>

<code>Simons, Peter. 1987. \emph{Parts: A Study in Ontology}. Oxford: Oxford
University Press.</code></pre>

<p>And here is what the <span class="caps">PDF</span> output looks like when I run that through LaTeX:</p>

<p><img src="http://www.charlietanksley.net/images/pandoc/small-mkd-to-latex-to-pdf.png" alt="" /></p>

<p>You’ll notice that some things didn’t work out quite right.  But that isn’t a big deal.  The big problem is that all the citations weren’t converted to LaTeX at all, they were just processed.  If you are planning on working with the LaTeX document, this is no good.</p>

<p>The solution is to just use LaTeX citation markup in your Pandoc file.  If I swap out my citations for <code>\citet</code>s and <code>\citep</code>s, everything will work out just fine:</p>

<p><img src="http://www.charlietanksley.net/images/pandoc/small-my-latex-pdf.png" alt="" /></p>

<h2>Pandoc to <span class="caps">HTML</span></h2>

<p>For now, stick with the Pandoc citation style, not LaTeX.  If you do that, then when you run <code>pandoc --bibliography ~/Library/texmf/bibtex/bib/mybib.bib -s -o tmp/pandoc_sample.html pandoc_sample.markdown</code>, you get this:</p>

<pre><code> &lt;h1 id="introduction"&gt;Introduction&lt;/h1&gt;
&lt;p&gt;Peter van Inwagen (Inwagen 1981) first formulated the Doctrine of Arbitrary Undetached Parts (DAUP). Here is his presentation of that thesis:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;For every material object M, if R is the region of space occupied by M at time t, and if sub-R is any occupiable sub-region of R whatever, there exists a material object that occupies the region sub-R at t. (1981, 123)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;DAUP says that if some arbitrary region of space sub-R is a part of the region occupied by an object, then there is another object that exactly occupies sub-R. To make this more clear, consider an example: call the region occupied by my left hand 'Left'. Left is a part of the region I occupy. So, according to DAUP, there is an object that exactly fills Left.&lt;/p&gt;
&lt;p&gt;DAUP is an odd thesis in that its name tells us the thesis is a doctrine about &lt;em&gt;parts&lt;/em&gt;, but no synonym of 'part' appears in the thesis. Why think it is a thesis about parts at all?&lt;/p&gt;
&lt;p&gt;[This part added]&lt;/p&gt;
&lt;p&gt;Three reasons:&lt;/p&gt;
&lt;ol style="list-style-type: decimal"&gt;
&lt;li&gt;First reason.&lt;/li&gt;
&lt;li&gt;Second reason.&lt;/li&gt;
&lt;li&gt;Third reason.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;[End addition]&lt;/p&gt;
&lt;p&gt;Consider this definition of &lt;em&gt;part&lt;/em&gt;:&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;Part as Overlap (PAO)&lt;/dt&gt;
&lt;dd&gt;&amp;quot;[O]ne thing is part of another if and only if whatever overlaps the former also overlaps the latter.&amp;quot; (Goodman 1951, 44)&lt;sup&gt;&lt;a href="#fn1" class="footnoteRef" id="fnref1"&gt;1&lt;/a&gt;&lt;/sup&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h1 id="references"&gt;References&lt;/h1&gt;
&lt;p&gt;Goodman, Nelson. 1951. &lt;em&gt;The Structure of Appearance&lt;/em&gt;. Cambridge, MA: Harvard University Press.&lt;/p&gt;
&lt;p&gt;Inwagen, Peter van. 1981. The Doctrine of Arbitrary Undetached Parts. &lt;em&gt;Pacific Philosophical Quarterly&lt;/em&gt; 62: 123–37.&lt;/p&gt;
&lt;p&gt;Simons, Peter. 1987. &lt;em&gt;Parts: A Study in Ontology&lt;/em&gt;. Oxford: Oxford University Press.&lt;/p&gt;
&lt;div class="footnotes"&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id="fn1"&gt;&lt;p&gt;Goodman uses the notion of &lt;em&gt;overlap&lt;/em&gt; to define all the other mereological notions. This means that, for example, &lt;em&gt;identity&lt;/em&gt; gets defined as &amp;quot;a and b are identical if and only if they overlap exactly the same individuals,&amp;quot; and &lt;em&gt;sum&lt;/em&gt; as &amp;quot;that individual which overlaps just those individuals which overlap at least one of the two .&lt;/p&gt;
&lt;p&gt;But as many have pointed out, there are a handful of mereological notions one could take as primitive, defining the others in terms of that one; for example, &lt;em&gt;part, proper part,&lt;/em&gt; and &lt;em&gt;disjoint&lt;/em&gt; could work equally well. See Simons (1987) for more on this. &lt;a href="#fnref1" class="footnoteBackLink" title="Jump back to footnote 1"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</code></pre>

<p>On it’s own, this code might be underwhelming.  But when viewed with a browser, it is pretty nice:</p>

<p><img src="http://www.charlietanksley.net/images/pandoc/small-html.png" alt="" /></p>

<p>Add a good stylesheet and your paper will look great for online viewing.  <a href="http://www.charlietanksley.net/resources/pandoc/pandoc_sample.html">Here is a sample</a>, using a <a href="http://www.charlietanksley.net/resources/pandoc/stylesheets/screen.css">simple stylesheet</a> plus <a href="http://necolas.github.com/normalize.css/">normalize.css</a>.</p>

<p>In my experiments, LaTeX commands (like <code>\citep</code>) were ignored in the translation to <span class="caps">HTML</span>.</p>

<h2>Pandoc alone</h2>

<p>It looks like we have a problem.  If you use Pandoc citations with a bibliography, you don’t get a proper LaTeX bibliography.  If you use LaTeX citations, they get ignored in your <span class="caps">HTML</span>.  If you only want one or the other (likely LaTeX), you do have a solution.</p>

<p>This made me curious.  What if you didn’t really care about mucking about with the LaTeX?  What if you wanted to be able to write your paper in Pandoc and let that be it?  Well, we already know you can output nice <span class="caps">HTML</span>.  What are your other options?  On the <a href="http://johnmacfarlane.net/pandoc/index.html">about page for Pandoc</a>, we’re told Pandoc can output tons of formats: reStructuredText, <span class="caps">HTML</span>, LaTeX, ConTeXt, <span class="caps">PDF</span>, <span class="caps">RTF</span>, DocBook <span class="caps">XML</span>, OpenDocument <span class="caps">XML</span>, <span class="caps">ODT</span>, GNUTexinfo, MediaWiki markup, textile, groff man pages, Emacs org-mode, <span class="caps">EPUB</span> ebooks, and S5 and Slidy.  Whew.</p>

<p>Let’s face it, most of those formats aren’t helping us much.  They might be great for some people, but putting your paper in DocBook <span class="caps">XML</span> isn’t going to do anything for you.  Your aim, I take it, is to have a printable paper you can share with people and a version you can submit.  Let’s start with the printable version.</p>

<h3>Pandoc to <span class="caps">PDF</span></h3>

<p>Why not let people just read a <span class="caps">PDF</span>.  That’s what you do with LaTeX anyway.  If you have a LaTeX distribution installed, you can use <code>markdown2pdf</code> at the command line to create a <span class="caps">PDF</span> directly.  So <code>markdown2pdf --bibliography ~/Library/texmf/bibtex/bib/mybib.bib -o tmp/pandoc_sample.pdf pandoc_sample.markdown</code> yields a <span class="caps">PDF</span> with all my references in it, just as I’d like.  With no customization, you can see what it produces:</p>

<p><img src="http://www.charlietanksley.net/images/pandoc/small-direct-pdf-with-bib.png" alt="" /></p>

<p>That isn’t bad.  Can I do better?  Well, Pandoc lets me specify <a href="http://johnmacfarlane.net/pandoc/README.html#templates">a template to be used with my file</a>. If I do that, I can use any prologue I like with my file.  Here’s a sample:</p>

<pre><code> \documentclass{article}
\usepackage{geometry}                
\geometry{letterpaper} 
\usepackage{graphicx}
\usepackage{amssymb}</code>

<code>\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{libertine}
%%%% FANCY HEADER
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}\chead{}\rhead{}
\lfoot{\textsc{$author$}}\cfoot{}\rfoot{\textsc{$title$} | \thepage}
\renewcommand{\headrulewidth}{0.0pt}</code>


<code>%%%% SMALL SECTIONS
\usepackage[compact,sf,small]{titlesec}</code>


<code>%%%% ARTICLE INFO
\usepackage[pdfauthor={$author$},
    pdftitle={$title$},
    bookmarks=false]{hyperref}
\title{$title$}
\author{$author$}
%\date{$date$}</code>

<code>\begin{document}
\maketitle
\tableofcontents</code>

<code>$body$</code>

<code>\end{document}</code></pre>

<p>You’ll notice the variables ($title$, $author$, and $body).  Those get filled in with your content and front matter.  Read the link above if you want to know more about this.  But by saving this as <code>template.tex</code> and then running <code>markdown2pdf --template=template.tex --bibliography ~/Library/texmf/bibtex/bib/mybib.bib -o with_template.tex pandoc_sample.markdown</code>, I was able to generate a <span class="caps">PDF</span> with my template (note you can pass the <code>--template</code> argument to pandoc, too, but only if you use the <code>-s</code> flag for a standalone LaTeX file).</p>

<p><em>One thing worth noting here:</em> for some reason (perhaps through some fault of mine, I don’t know) <code>markdown2pdf</code> kept throwing errors on my original markdown source.  It thought I was missing an <code>\item</code> in my ordered list for some reason.  I ended up swapping out</p>

<pre><code>1. First reason.
2. Second reason.
3. Third reason.</code></pre>

<p>for</p>

<pre><code>#. First reason.
#. Second reason.
#. Third reason.</code></pre>

<p>It turns out that <code>#.</code> is a shorthand for a basic ordered list (the period keeps this from being a new section!), and for some reason this didn’t cause the same errors.</p>

<h3>Pandoc to <span class="caps">RTF</span>, <span class="caps">ODT</span>, or <span class="caps">DOCX</span></h3>

<p>Converting Pandoc to Rich Text Format or Open Document Format was easy enough via the command line, but I can’t tell you how it looked.  I don’t have Word installed on my Mac, and while Pages and TextEdit both opened the .rtf file, apparently neither shows footnotes in such a file.  I looked at the files in Vim and the footnotes were there, they just weren’t showing up in Pages.  So that is inconvenient.  Here’s what Kevin had to say about footnotes and these formats in his post:</p>

<blockquote>
<p>Because it can convert directly to OpenOffice (.odt) and Office Open <span class="caps">XML</span> (.docx) formats, it might serve as a useful tool for getting a LaTeX document into a Word Processing format for a stubborn editor. I personally don’t use either MS Word or Open Office, but for importing into AbiWord in general I preferred the .odt for mat it generates because LaTeX footnotes are preserved as footnotes, rather than converted to end notes (which was the result for .docx format). Unfortunately, the .odt files it generates could not be opened directly in Google Docs (though GDocs could open the .docx files it created).</p>
</blockquote>

<p>To be honest, I’m not sure if this is a deal breaker for me or not.  I think not.  I do have a system with LibreOffice on it that I could use to look at the footnotes.  I’m not planning on doing any actual editing in that file anyway, so this might not be a huge deal.  If the footnotes show up in that format and someone who demands an <span class="caps">RTF</span> or <span class="caps">DOC</span> file can read them, then that might be good enough for me.</p>

<p>But besides the issue with footnotes, the output looks passable:</p>

<p><img src="http://www.charlietanksley.net/images/pandoc/small-pandoc-rtf.png" alt="" /></p>

<h2>An Ebook?!</h2>

<p>If you go to <a href="http://www.amazon.com/gp/feature.html?ie=UTF8&amp;docId=1000234621">http://www.amazon.com/gp/feature.html?ie=UTF8&amp;docId=1000234621</a>, you can download KindleGen, a command line utility to turn .epub format books (also <span class="caps">HTML</span>, but I only tried epub) into Kindle formatted books.  To do this you have to specify the title of the document, so don’t forget to do that.  (See below for more on this.)</p>

<p>I didn’t specify a stylesheet, so the look isn’t as good as it could be, but here is a sample of the output:</p>

<p><img src="http://www.charlietanksley.net/images/pandoc/small-kindle.png" alt="" /></p>

<h2>Something I missed</h2>

<p>One thing that troubled me when I was creating my Kindle book was figuring out how to set the title and author.  I resorted to an epub-metadata file for that, but later learned that you can set this all in a title block.  To do that, you start the file like so:</p>

<pre><code>% title
% author(s) (separated by semicolons)
% date</code></pre>

<p>So this paper:</p>

<pre><code>% A Sample Title
% Charlie Tanksley</code>

<code># Title</code>

<code>Here is the first line.</code></pre>

<p>Will produce a <span class="caps">PDF</span> that looks like this when processed with the <code>-s</code> (standalone) flag:</p>

<p><img src="http://www.charlietanksley.net/images/pandoc/small-with-title.png" alt="" /></p>

<p>(Note that you don’t need said flag if using <code>markdown2pdf</code>, and that if you neglect that flag, the title block will just be ignored, so including it doesn’t hurt.</p>

<h2>A verdict</h2>

<p>I haven’t tried writing a paper in Pandoc/Markdown in a very long time.  I’m pretty comfortable using LaTeX and don’t mind the syntax I have to type (I rely on lots of SnipMate snippets in Vim to automate lots of that).  But Markdown <strong>is</strong> easy to write.  Very easy.  So that is kind of compelling.</p>

<p>I’m torn on the issue of having HTML versions to put on the web.  I’ve never read a philosophy paper in an HTML version (or if I did, I just printed it off), so my guess is that this isn’t terribly useful, at least for me.  So the main consideration is with the experience of writing.  If you’d rather write <code>*bold*</code> than <code>\textbf{bold}</code> and <code>[@lewis:on]</code> instead of <code>\citep{lewis:on}</code>, then it might be worth giving Markdown/Pandoc a spin.</p>

<p>I’m genuinely torn on the question of using Markdown for my next paper.  I might give it a shot; but I might be too stuck in my ways.  I’d love to hear what you think of the idea and/or what your experiences are with Markdown.</p>

<h3>Caveats</h3>

<p>I don’t write much math or logic.  Some people use LaTeX because they write lots of symbols.  If that is you, you’ll need to write all your math inside LaTeX markup.  Then you’ll have to figure out how to convert it to <span class="caps">HTML</span> and <span class="caps">RTF</span>.  I think it can be done (there are command line options for it), but I don’t know how well it works.  So try before you buy.</p>

<h2>Appendix: Installing Pandoc</h2>

<p>Pandoc is <a href="http://twitter.com/#!/hotdogsladies/status/15196536745">notoriously</a> <a href="http://twitter.com/#!/hotdogsladies/status/8036184935">difficult</a> to install.  The problem is that Pandoc is written in Haskell, so you have to install a ton of stuff just to install Pandoc.  And that is the kind of complicated part.  At least, it used to be complicated, but it isn’t so bad anymore. (If you are on a Mac; if you use Windows, I don’t know what to tell you; if you use a Linux distribution, you’ll do something similar to what I describe below, but you’ll use your package manager for everything.)</p>

<p>If you are using a Mac, you have to start out by installing Xcode.  This is easy.  If you have an install disc from Snow Leopard (or Leopard, I imagine), you can use that to install the ‘Developer Tools’.  That’ll install everything you need.  If you want to do things the easy way, go to the App Store and pay the $4 for Xcode.  You need it.</p>

<p>With Xcode installed, you need to install the <a href="http://hackage.haskell.org/platform/">Haskell Platform</a>.  Thanks to Homebrew, this is a simple <code>brew install haskell-platform</code> away.  If you don’t use Homebrew, see <a href="http://www.charlietanksley.net/philtex/homebrew-the-mac-package-manager/">my post on installing Homebrew</a>.  You need Xcode to install Homebrew, too.  Not only does Homebrew make lots of programs very easy to install, but it makes updating the Haskell-Platform a simple <code>brew install haskell-platform</code>, when the time comes.  This is a fairly huge download, so be prepared to wait.  (If I recall correctly (which I doubt), on Arch Linux this was a fairly simple <code>sudo pacman -S haskell-platform</code>.)</p>

<p>With the Haskell-Package installed, you’ll have a new installer called cabal installed.  That can be used to install any Haskell packages you like.  I’ve only ever installed Pandoc on my Mac, but you could install more if you like.  So <code>cabal install pandoc</code> to install pandoc.  (Note that you may need to put <code>~/.cabal/bin</code> in your path.)</p>
<img src="http://feeds.feedburner.com/~r/Philtex/~4/JCnLWjCGvoQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.charlietanksley.net/philtex/primarily-pandoc/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		<feedburner:origLink>http://www.charlietanksley.net/philtex/primarily-pandoc/</feedburner:origLink></item>
		<item>
		<title>Maintaining multiple versions of the same file</title>
		<link>http://feedproxy.google.com/~r/Philtex/~3/ANNBHViZVgo/</link>
		<comments>http://www.charlietanksley.net/philtex/maintaining-multiple-versions-of-the-same-file/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 13:11:18 +0000</pubDate>
		<dc:creator>Seamus Bradley</dc:creator>
				<category><![CDATA[formatting]]></category>
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://www.charlietanksley.net/philtex/?p=700</guid>
		<description><![CDATA[Sometimes, you want more than one version of the same file. There are several ways to do this and I outline a couple here. Sometimes this need can be covered by version control. For example, if you need to change how a paper looks for submitting it to a journal. I recently had to remove [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, you want more than one version of the same file. There are several ways to do this and I outline a couple here.</p>

<p><span id="more-700"></span>Sometimes this need can be covered by <a title="Using a Version Control System" href="http://www.charlietanksley.net/philtex/using-a-version-control-system/">version control</a>. For example, if you need to change how a paper looks for submitting it to a journal. I recently had to remove all my lovely BibLaTeX citations and use a <code>thebibliography</code> environment. (Oh I should write a post about how to do that too.) Now these sorts of changes you don’t want to propagate through all your versions, so VCS seems the reasonable way to do that.</p>

<p>But say you are writing a beamer presentation and you want a presentation version and a handout version. Merging all the content changes between each version every time you make a change seems like a big hassle. The actual functional differences will likely be very minimal. Obviously the handout version will have the <code>handout</code> option to the <code>documentclass</code> call, and you might have a couple of other minor changes (I use <code>pgfpages</code> to print 4 on 1 for my beamer notes).</p>

<p>Let’s consider another simpler problem. Let’s say you want two versions of an article: one normal and one two column and landscape, to save paper when printed. The content will be the same in each, the only thing different will be a couple of lines to get the right layout.</p>

<p>One way you could do this is to have several files. One file (say “<code>content.tex</code>”) would contain the content. Then there would be another file, the basic version that contains the preamble part for the basic file and then a line that says <code>\input{content}</code>. Then you’d need a third file which contains the relevant preamble for the two column landscape version with a similar <code>\input{content}</code>.</p>

<p>Now, I’ve used this system in the past and it works fine. However, what if you wanted to have different options passed to the hyperref package? This package likes to sit at the end of the preamble, so you can’t put it in each of the container files without including all of the preamble in each container file. But then you need to make sure that you keep the two preambles in sync otherwise. You could put the preamble in a different file and input it into each container before calling hyperref, but this is not ideal. Also what if you wanted to do more versions, say a 10pt version and a 12pt version? Now you’d need five or six files to sort all this out.</p>

<p>There is a better way, and it involves breaking rules that you might have been taught about LaTeX. The <a href="http://mirror.ox.ac.uk/sites/ctan.org/info/lshort/english/lshort.pdf">not so short introduction to LaTeX</a> contains the claim that “every input file should start with <code>\documentclass</code>”. This is a lie! You can put <em>some</em> sorts of things before the document class, and it’s very useful to do so sometimes.</p>

<p>We’re going to see how we can use LaTeX’s conditional statements to maintain several versions of the same file with just one file! Here’s a simple example of the start of a beamer presentation:</p>

<pre class="brush: latex;">\newif\ifhandout\handoutfalse
% \handouttrue % Uncomment this line to switch on the handout option
\ifhandout
\PassOptionsToClass{handout}{beamer}
\fi
\documentclass{beamer}
...</pre>

<p>What this does is define a conditional that can be true or false. We set it to false for now. We can then build our beamer slides as normal. Now let’s say we want to print a version of the slides, we don’t want to print every slide if we’re using lots of overlays. So we can pass the <code>handout</code> option to the document class by switching the conditional to true. This seems a complicated way of adding an option to beamer. Surely just adding the option by hand whenever you want a handout version is easy enough? True, but this way, you can easily make extra modifications for each version. For example, you could have a colourful presentation, but a greyscale colour theme for the printed handout:</p>

<pre class="brush: latex;">\newif\ifhandout\handoutfalse
% \handouttrue % Uncomment this line to switch on the handout option
\ifhandout
\PassOptionsToClass{handout}{beamer}
\fi
\documentclass{beamer}
\usetheme{Rochester}
\ifhandout
\usepackage{pgfpages}
\pgfpagesuselayout{4 on 1}[a4paper,landscape,border shrink=5mm]
\usecolortheme{seagull}
\else
\usecolortheme{beaver}
\fi
...</pre>

<p>Note the use of else to specify what to do if the conditional is false (that is, use a colourful theme.) We’ve also taken the opportunity to print the slides 4 on 1 page for the handout. Now you can begin to see that the conditional is saving you some work!</p>

<p>The awkward thing about this set up is that the handout version will be written to the same pdf file as your original presentation version. This means that you’ll have to copy the presentation version to a different file before compiling with handout turned on. You can get around this problem, but that’s a topic for another day. (<a title="passing parameters to the document" href="http://tex.stackexchange.com/q/1492/215">tex.stackexchange</a> has the answers, if you can’t wait…)</p>

<p>Another thing I use this sort of trickery for is adding comments to my documents. I define an <code>mnote</code> command which prints a comment in the margin if a particular switch is true:</p>

<pre class="brush: latex;">
\ifmarginnotes
\KOMAoptions{mpinclude=true}
\newcommand\mnote[1]{\marginpar{\footnotesize\raggedright #1}}
\recalctypearea
\else
\newcommand\mnote[1]{}
\fi
\setlength\marginparwidth{1.67\marginparwidth}
</pre>

<p>What this is doing is checking whether the <code>marginnotes</code> switch is on. If it is true then we define the <code>mnote</code> command to put a comment in the margin (and we mess about with KOMA script’s margins to allow the comment some room). If the switch is false, then we just define <code>mnote</code> to ignore its argument and thus the comment doesn’t appear in the final version. There are packages for handling notes like this, but really, all you need is some basic TeX conditionals…</p>

<p>I’m sure there are lots more sophisticated things you could do, but these few tricks alone have saved me some time…</p>
<img src="http://feeds.feedburner.com/~r/Philtex/~4/ANNBHViZVgo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.charlietanksley.net/philtex/maintaining-multiple-versions-of-the-same-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.charlietanksley.net/philtex/maintaining-multiple-versions-of-the-same-file/</feedburner:origLink></item>
		<item>
		<title>Pandoc 1.8</title>
		<link>http://feedproxy.google.com/~r/Philtex/~3/QR58_N0V_n8/</link>
		<comments>http://www.charlietanksley.net/philtex/pandoc/#comments</comments>
		<pubDate>Mon, 30 May 2011 17:26:17 +0000</pubDate>
		<dc:creator>Kevin Klement</dc:creator>
				<category><![CDATA[Conversion]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.charlietanksley.net/philtex/?p=703</guid>
		<description><![CDATA[In past blog entries on converting from LaTeX format and converting to LaTeX format, I mentioned the pandoc conversion software by John MacFarlane, which converts between a number of different mark-up formats. A newer version than the one I tested with there was released in January, and only now have I had the time to [...]]]></description>
			<content:encoded><![CDATA[<p>In past blog entries on <a href="http://www.charlietanksley.net/philtex/converting-from-latex/">converting from LaTeX format</a> and <a href="http://www.charlietanksley.net/philtex/converting-to-latex/">converting to LaTeX format</a>, I mentioned the <a href="http://johnmacfarlane.net/pandoc/">pandoc conversion software</a> by John MacFarlane, which converts between a number of different mark-up formats. A newer version than the one I tested with there was released in January, and only now have I had the time to test it out. I wanted to mention it again, since I think the new version (1.8) is much improved from the one I tested before (1.6).</p>

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

<p>Pandoc supports many different formats. Conversion input formats include:</p>

<ul>
<li>plain text</li>
<li>HTML</li>
<li>LaTeX</li>
<li>textile</li>
<li>reStructuredText (rst)</li>
<li>others such as native Haskell and, JSON</li>
</ul>

<p>And conversion output formats:</p>

<ul>
<li>plain text</li>
<li>HTML</li>
<li>LaTeX</li>
<li>ConTeXt</li>
<li>OpenOffice (.odt)</li>
<li>OpenDocument XML (e.g., MS Word .docx)</li>
<li>emacs Org-mode</li>
<li>ebook formats (ePub and DocBook)</li>
<li>slideshow formats (slidy or S5)</li>
<li>and others including native Haskell, JSON, MediaWiki, groff man page, </li>
</ul>

<p>Many features seem especially geared toward markdown aficionados (which, alas, don’t include me), including pandoc-specific markdown extensions for additional power.</p>

<p>I am myself most interested in its conversion to and from LaTeX format. The most important change for me personally is that the new version now processes user-defined LaTeX commands using the definitions given in the LaTeX document, rather than leaving all such commands as codes in the output. Since I am a custom-command junkie, this has made a world of difference. There is also limited support for using BibTeX bibliographies.</p>

<p>Because it can convert directly to OpenOffice (.odt) and Office Open XML (.docx) formats, it might serve as a useful tool for getting a LaTeX document into a Word Processing format for a stubborn editor. I personally don’t use either MS Word or Open Office, but for importing into AbiWord in general I preferred the .odt format it generates because LaTeX footnotes are preserved as footnotes, rather than converted to endnotes (which was the result for .docx format). Unfortunately, the .odt files it generates could not be opened directly in Google Docs (though GDocs could open the .docx files it created).</p>

<p>There are special modes for handling LaTeX math mode, including generating <a href="http://www.w3.org/Math/">MathML</a> or mark-up to use with <a href="http://www.math.union.edu/~dpvc/jsMath/">jsMath</a>, <a href="http://ans.hsh.no/home/mgg/gladtex/">gladTeX</a> and <a href="http://www.mathjax.org/">MathJax</a>. I experimented most with the MathML setting, but my expectations weren’t high, since I doubt anything can handle math typesetting as well as LaTeX itself, and so conversion is bound to result in a net loss. It sometimes did a good job, but there are certain math mode codes which I use often, such as <tt>\text</tt>, <tt>\mathrel</tt> and similar spacing commands, which it did not handle. Yet, I was not disappointed all in all, given my expectations.</p>

<p>Some other small gripes.</p>

<ul>
<li>(Most annoying:) Smart quotes and apostrophes were mishandled in converting from HTML to LaTeX: &amp;#146; or &amp;#148; for smart quotes in HTML are converted into character codes LaTeX does not know how to handle, even with the ucs package loaded. (On the other hand, smart quotes were handled well when converting in the other direction, yielding the appropriate UTF-8 characters.)</li>
<li>Simple LaTeX tables were not converted to HTML tables, though the program does support conventions for table mark-up when converting from MarkDown.</li>
<li>Sometimes LaTeX mark-up which it can partially but not fully handle leaves unwanted effects. Just to give one example, if you use the syntax <tt>\\[10pt]</tt> or similar to insert a linebreak of a nonstandard length in LaTeX, the “[10pt]” part is not removed in the output, even though the linebreak is processed.</li>
</ul>

<p>With the newer version, pandoc is something I plan on incorporating in my conversion tool kit, alongside my old stand-bys such as <A href="http://www.abisource.com/">AbiWord</a>, <a href="http://latex2rtf.sourceforge.net/">latex2rtf</a>, <a  href="http://sourceforge.net/projects/rtf2latex2e/">rtf2latex2e</a>, and <a href="http://www.tug.org/applications/tex4ht/mn.html">TeX4ht</a>. It is currently the program I use to convert my LaTeX documents to plain text, which I use to pass them to a text2speech program (I use <a href="http://www.cstr.ed.ac.uk/projects/festival/">festival</a>) to have the computer read them out loud, which I find useful when proofreading.</p>
<img src="http://feeds.feedburner.com/~r/Philtex/~4/QR58_N0V_n8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.charlietanksley.net/philtex/pandoc/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.charlietanksley.net/philtex/pandoc/</feedburner:origLink></item>
		<item>
		<title>An announcement I’m excited about</title>
		<link>http://feedproxy.google.com/~r/Philtex/~3/c38tBnt3_L8/</link>
		<comments>http://www.charlietanksley.net/philtex/an-exciting-announcement/#comments</comments>
		<pubDate>Wed, 11 May 2011 17:38:51 +0000</pubDate>
		<dc:creator>Charlie Tanksley</dc:creator>
				<category><![CDATA[philosophy]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.charlietanksley.net/philtex/?p=692</guid>
		<description><![CDATA[I’m really excited to announce a new project I’ve been working on: thephilosopher.me. The idea with ThePhilosopher.me is simple enough: it is an application that makes it as easy as possible for philosophers to create a page that lists all their publications (with links). I think I’ve done that. You can log in and add [...]]]></description>
			<content:encoded><![CDATA[<p>I’m really excited to announce a new project I’ve been working on: <a href='http://www.thephilosopher.me'>thephilosopher.me</a>.</p>

<p>The idea with ThePhilosopher.me is simple enough: it is an application that makes it as easy as possible for philosophers to create a page that lists all their publications (with links).  I think I’ve done that.  You can log in and add a biography, a photo, your email, etc., but the default is to create a page by simply entering your name (the exact name you published under) and clicking a button.  The site should do all the heavy lifting and give you what I think is an attractive page you can point people to if they want to know about your publications (this is a really simple way to make a professional webpage your department webmaster can link to).</p>

<p>You can see some example pages here:
<ul>
<li><a href="http://www.thephilosopher.me/charlietanksley">www.thephilosopher.me/charlietanksley</a></li>
<li><a href='http://www.thephilosopher.me/christophergrau'>www.thephilosopher.me/christophergrau</a></li>
<li><a href='http://www.thephilosopher.me/kevinklement'>www.thephilosopher.me/kevinklement</a></li>
</ul>
</p>

<p>This is the first web app I’ve created, and it still has some rough edges.  I’m announcing the site here as part of a slow rollout.  Since readers of this blog are (mostly) philosophers and are at least technologically inclined enough to care about LaTeX, I figured this was a good first place to announce the site.  <i>Please</i> let me know if you run into any problems as you poke around the site.  Your feedback is invaluable to me.  I’m planning on rolling the site out to a little bit wider audience on Monday of next week, so if you run into any problems, please let me know!</p>
<img src="http://feeds.feedburner.com/~r/Philtex/~4/c38tBnt3_L8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.charlietanksley.net/philtex/an-exciting-announcement/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.charlietanksley.net/philtex/an-exciting-announcement/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 1.799 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-02-04 16:10:43 --><!-- Compression = gzip -->

