I’m more than forty thousand words into my current novel, and nearly 90% of those words have been written on my iBook. So, how are things going?
First, the good: The combination of MultiMarkdown and Textmate has been an absolute godsend from a productivity standpoint. I tried both NeoOffice and AbiWord on the new system, but my text-based workflow runs circles around both of them, both from a productivity and a distraction management standpoint.
One thing that’s aided in this regard has been the installation of SIMBL and MegaZoomer, both by Ian Henderson. To make a long story short, once these two handy little (free) utilities are installed, you can press a keystroke or pick a menu item to “zoom” Textmate to full-screen, hiding the menu bar, dock, and just about everything else. Since WriteRoom version 2 doesn’t run on OS X 10.3, and since Hogs Bay seems to have pulled the older version from their Web site, this combination is a reasonable facsimile.
Now, the bad. Well, not bad, really. Just fiddly. It turned out that my vision for converting Markdown to something printable wasn’t as easy as I’d have liked. Pandoc doesn’t run on OS X 10.3, which means I had to pull the files over to my Windows machine to print them. Less than ideal, especially when I’m sharing my chapters with my technical advisor on a fairly regular basis.
The MultiMarkdown to Word (via ODT) conversion via Pandoc will still be fine if I ever have to end up with an editable Word file (for example, if an editor wants to work using Track Changes.) But most of the time, I just want to print a full or partial formatted manuscript, or e-mail one. So, with the help of the MultiMarkdown XSLT stylesheets, a little bit of Perl hackery, and XeLaTeX, I’ve hacked up a one-command conversion from my individual MultiMarkdown files to a PDF in the proper manuscript format.
I’ll document the process in more detail later, but basically, I have a single shell script (which I’ve named mmpdf) that deos the following:
- Combines all of my individual .markdown files into a single file, prepending a pre-defined header with author name/title/etc.
- Converts the combined Markdown file into XHTML using MultiMarkdown
- Converts the XHTML file into LaTeX using xsltproc and the XSLT files that come with MultiMarkdown
- Applies a number of “fixups” to the LaTeX file, including things like resetting the chapter numbering so my “front matter” chapters (dedication, acknowledgements, etc.) get numbered correctly, changing the document font to Dark Courier, and adding a word count to the title page. (I could probably hack up the XSLT files to do these things, but I know Perl a whole lot better than XSLT).
- Converts the resulting LaTeX file to PDF with XeLaTeX.
Perhaps not the cleanest process, but it works. The conversion isn’t fast, but it’s a whole lot faster than walking into the other room, synching the files over to my Windows machine, converting them to ODT, and reformatting them into manuscript format each time I want to print.