Writing with LaTeX (1/5): Advantages

— by

Why is LaTeX better than word processors?  Experience of a dissertation-writing (synthetic) chemist.

\LaTeX is the tool-of-choice for writing in math, physics, and engineering.  Chemists (particularly synthetic chemists) tend to use word processors (e.g., Word) for their manuscripts, out of habit and not consciously choosing among alteratives.  Over the past 4 months I’ve transitioned to writing in \LaTeX, and others’ experience helped tremendously.  This series of posts charts the toe-holds I found; hopefully they will be of help in you scaling the learning curve.

Why \LaTeX?  People choose \LaTeX over a word processor for different reasons.  For me, the single reason for converting is that scales well for large works.   Here are several unpleasantries common to the MSc theses I’ve edited, and how writing in \LaTeX helps avoid them at first place:

  • 200+Mb documents, grainy images.  Scientific writing are full of graphics — figures, schemes, spectra\cdots and the most common way of handling this to embed our best resolution .tiff.  This results in a gigantic document that is slow to open, sluggish to save, and madly crash-prone.  On the other hand, a \LaTeX document can be thought of as a control structure (more on this later when we talk about how \LaTeX works).  The workflow enforces linking with external images, and encourages using resolution-independent .eps and .pdf.  The outcome is happy writing and crisp, beautiful prints.
  • Illogical, ugly layout.  In manuscripts generated by word processors, I often see tables that are split across pages, or a lonely section heading placed at the bottom of the page, stranded from the main text on the next.  \LaTeX‘s typeset algorithm heavily penalize these “badness”, and I have yet to see them occur even when I try to push the boundaries.
  • Poor support for multiple documents.  Word processors generally allow for master document that links in child documents (e.g., chapters).  In all the manuscripts I’ve seen that use this (often to combat the large file-size mentioned above), they fall apart at the seams in subtle ways.  Many of them are related to automatic numbering (of pages, figures, schemes, equations) and cross-referencing (by master document, or between child documents).  Some of them have to do with incompatible styles of text.  Almost all failing are mysterious and unique,with haphazard hacks to make it “look right for now”.  \LaTeX supports usage of multiple documents very well – it just works!
  • Static documents. Word processed documents are static pieces of work.  They don’t “change” (they can’t change), and neither do their embedded content.  \LaTeX is extensible, and it can be extended to process content “on the fly”.  For example, \LaTeX can be instructed to open up the linked images, search for a piece of text, replace it, and use that new tag for cross-referencing in the text (I use this feature for automatic number of compounds – a tremendous boon in a review paper with >130 compounds).  It can also look up information from an external database and create fresh tables and content in your manuscript every time you typeset the document.  It’s magical.

That said, \LaTeX is not all fun and joy: it gives a great amount of transparency and control to the user, and this can feel overwhelming at the beginning.  In part 2, we’ll talk about how \LaTeX work, and that should give you a sense of whether it is for you or not.  Part 3 talks about installing \LaTeX on your machine, and useful resources on the internet.  In part 4, we’ll start with your first \LaTeX document, and build up to an interlinked document.  Part 5 is a specialized part for extended features.


Leave a Reply