# LaTeX and OSX

The vast majority of us use word-processors to fulfill all of our document-preparation needs. It has become the standard in writing our letters, resumes, novels, reports and theses, and most of us have not seen the need to explore alternatives. Indeed, many of us are not even aware that there are alternatives (other than the typewriter!) to the word-processor.

Enter LaTeX: not a word-processor, but a typesetting system designed to produce beautiful, professional documents that are superior to word-processor documents in many ways. (Technically, a program called TeX is actually the typesetting system; LaTeX is a macro package that makes TeX a bit easier to use. For the purposes of this article, I’ll be using these terms rather interchangeably.) Many of you have probably not heard of it, but it isn’t a new piece of software — it has been around since 1984, but has thus far been relegated to mostly mathematicians and other academics making use of its powerful ability to typeset complex formulas.

In this article I’d like to provide a brief introduction to what LaTeX is, its advantages over word-processors, and how to get started using LaTeX on OSX.

But what the heck is LaTeX, and how is it different from word-processors? LaTeX software essentially takes a raw text-file and compiles it into a typeset document. The text-file is comprised of the content of the document structured by a markup language that specifies information about the document: what kind of document it is (e.g., article, book), what is a header, footer, title, bibliography citation, what text is italicized, bolded, etc. (If you are familiar with HTML you’ll note that a LaTeX file looks much like an HTML file.) LaTeX takes all of this information and spits out a lovely, elegant document (as, e.g., a pdf file), structured exactly as you specify.

The philosophy of LaTeX is essentially the following: the system itself handles the presentation of the document (the look of the fonts, margins, section headers, etc.) , allowing the writer to concentrate on the content and structure of the document. The writer does what she does best — writes — and LaTeX handles the rest.

So, what are the advantages and disadvantages of using LaTeX over word-processors? Let’s briefly list its pros and cons:

Pros:

• The primary advantage of LaTeX is that it allows the writer to concentrate on the content of his document, rather than messing with fonts, title pages, bibliography pages, headers and other nonsense that detracts from her writing. Word-processors, with all of their bells and whistles, still make us do all of the work. While some word-processors can automate some of these tasks (e.g., the creation of tables of contents), these features aren’t oft-used by the ordinary user, and are not as deeply integrated into the software as they are in LaTeX.
• LaTeX files, unlike word-processor files are truly portable. You don’t need expensive word-processing programs to view a LaTeX-produced document, and you don’t need to worry about backwards-compatibility for older versions your software. Raw LaTeX documents are simple text files: any computer can read and edit a text file, and they are much smaller than .rtf or .doc files (Although, with gigabytes of hard drive space, this may be less of a concern nowadays). Compiled LaTeX documents are pdf files (or dvi files, depending on how you compile your document), which, of course, any free pdf-viewer can open. The additional advantage of pdf files is that any viewer will see the document exactly as you intended it to look — its appearance is not vulnerable to the whim of a viewer’s particular word-processing program.
• Finally, LaTeX produces beautiful, professional-looking documents — much nicer than the average user will create on a word-processor. (Note: You may want to check out this article for an even more impassioned rant on the virtues of LaTeX vs. the evils of Word Processors. Many of these points are distilled from this article.)

Cons:

• Despite it’s advantages, I don’t think that LaTeX will be appealing to many (if not most) users. Why? There is a learning curve. While the average user can probably open up a word-processor they’ve never used before and manage to produce a basic document in very little time, the same user will need to sit down for a good hour or so to learn the basics of LaTeX. You basically have to learn a markup language — much like HTML — in order to create LaTeX documents. This is either much too intimidating, or simply too much of a bother to be appealing to most people. And, even when a user dedicates the couple of hours to get the basics of LaTeX down, he can easily get frustrated trying to do what is quite simple to do in a word-processor (e.g., it took me several hours of tearing my hair out to figure out how insert a bit of vertical space into a document — which I could have done in a few seconds with the ENTER key in Word).
• It’s not appropriate for some types of documents. While LaTeX is ideal for reports, books, letters and articles, it is a bit too robust of a program to want to, for example, make up a simple note or grocery list (although I would argue that a simple text-editor — rather than a word-processor — would be better for such a task). And documents with a complicated layout (e.g., a magazine), probably would be better suited to programs made specifically for that purpose.

So, should I use LaTeX? There will be many die-hard LaTeX fans answer with an emphatic “Yes!”, and others who will just as vehemently eschew all things LaTeX. I think, ultimately, that it is much a matter of preference. If you are an academic or other serious writer, I wholeheartedly suggest at least giving LaTeX a try (LaTeX simply has so many advantages when creating long, complex, or reference-laden documents). For the rest of us average joes, who only need to create the occasional letter, resume, or report, I say check it out if it intrigues you (otherwise, it probably won’t be worth the bother).

How does one get started using LaTeX? As far as software goes, you only need to two things to produce LaTeX documents:

1. The LaTeX typesetting software itself, and
2. A text-editor

Instead of a text-editor, you may opt to get a complete LaTeX front-end: a piece of software that includes an editor specifically designed for LaTeX (including many LaTeX templates and commands, as well as compiling options, available from a convenient menu). Such a front-end can make LaTeX much easier to use for a newbie.

Below I’ve listed some software to get you started. There is a lot of software out there, so I’m only listing applications that I myself have used and have had success with. All applications listed below are free unless otherwise noted.

LaTeX and LaTeX-Related Applications

 i-Installer:This doesn’t actually include the software itself, but provides a way to easily download the TeX and LaTeX typesetting system. (Alternatively, if you use Fink, downloading the tetex package is even easier.)
 Vim: A great open-source editor that, nonetheless, take a bit of time to learn. I suggest it because, along with the Vim LaTeX Suite package, it becomes a powerful LaTeX-making machine. Textmate: A lovely Mac-only text-editor that also comes with powerful LaTeX tools. Highly recommended, but a bit pricey.
 TexShop: A simple LaTeX front-end complete with editor, previewer, and more. iTexMac: Another LaTeX front-end, similar to TeXShop, but more feature-rich. I used to use this pretty much exclusively, but it’s newest version is a bit too complicated for my tastes.
 BibDesk: A graphical bibliography manager for LaTeX. A must if you use a lot of external references in your documents. Excalibur: LaTeX spell-checker

All-in-One

I recently discovered MacTeX, which is an all-inclusive package that installs pretty much all of the software you’ll need to get started, including TeX, LaTeX, TexShop, Excalibur and BibDesk. If you’re just starting out with LaTeX, this would be a great choice.

Further Resources:

This article has only scratched the surface of LaTeX and LaTeX in OSX, but I hope it has piqued your curiosity enough to check it out further on your own. Happy TeXing!

Comments have been disabled for this post