computer science, math, programming and other stuff
a blog by Christopher Swenson

Some rules of typesetting

Often when reading articles or books, there are several problems that can be easily corrected that detract from the work's aesthetic appeal.

Don't use vertical rules. In typesetting, a rule is a line. The standard LaTeX tabular structure encourages us to use such monstrosities as \begin{tabular}{|c|c|}, putting vertical rules between every column. This is often an amateur mistake of typesetting: seldom do professionally typeset works contain vertical rules.

Use thicker rules, and vary the thickness in tables. The standard size for a rule should be 1pt. Lines that are too think just look weak. A nice thick, but not too thick, rule will give it a more professional, feeling. When doing tables, having even thicker rules for the top and bottom of the table, and medium thicknesses elsewhere add elegance to the table. The LaTeX package booktabs gives the appropriate commands \toprule, \midrule, and \bottomrule.

Use fixed-width fonts for code, email address, web address, and file names. In books, we should never see "Email address: a@b.com" or "Open the file readme.1st". It's infinitely better to use "Email address: a@b.com" and "Open the file readme.1st". And while you're at it, stop saying "e-mail". There is no hyphen. It's "email".

Either indent your paragraphs, or add a line space between them. But please, please, you cannot have no spacing between your paragraphs, and not indent.


Therere are plenty more rules that I could write. Once you develop an eye for this stuff, these patterns will just fall into place. If in doubt, consult a good style manual (The Chicago Manual of Style is always my preference), or even just read through a professionally-typeset book to see how they addressed that typesetting issue. Often, books written before digital typesetting are good for this, when professional typesetters were used to make the books. Avoid self-published books (vanity presses) like the plague though. I have seen these come out with the body text in Arial, and most of the diagrams drawn in MS Paint. Although I left it unspoken before, Arial is inappropriate to use for the body text of a book or article, and MS Paint is pretty much never acceptable as a tool for creating professional graphics.