Few Words on LaTex Fonts

LaTex documents have a very distinctive look. First of all, they do look very pretty in print since they actually use professional typesetting techniques to make the text flow nicely on the page which makes them stand out when juxtaposed against stuff generated by Microsoft Word. But there is another reason why it is easy to spot a LaTex document from a mile away. It’s the default font known as Computer Modern which was created by Yoda Donald Knuth himself. Explanation for the joke can be found here. It is very distinctive, and gives the documents that Tex look and feel:

Computer Modern

A lot of people I know, affectionately call this default look as “fucking ugly”. I do not share that sentiment. Personally I think the font has it’s own unique charm, but nevertheless it is not suited for everything. Sometimes you are required to use the ubiquitous Times New Roman font. How do you do that in LaTex? There is nothing simpler - just stick the following two lines in your preamble:

\usepackage[T1]{fontenc}
\usepackage{times}

The result is subtle, but the difference is clearly visible. Which font you prefer is really a matter of taste:

Times New Roman

Sometimes having your document standing out from the sea of papers written in Times. If you want that older book look, you could try to use something like the Bookman font:

\usepackage[T1]{fontenc}
\usepackage{bookman}

See how it compares to Computer Modern and Times above:

Bookman

Naturally, when I start talking about fonts, someone immediately starts asking me about Arial. You don’t. Why would I want to infect my pretty LaTex documents with Arial? Nevertheless they keep asking. Arial is the Times New Roman of Sans Serif fonts, despite the fact that it is merely a cheep knock-off of Helvetica. But yes, you can do it just as easily as any of the examples above:

\usepackage[T1]{fontenc}
\usepackage[scaled]{uarial}
\renewcommand*\familydefault{\sfdefault}

Here is the catch - by default LaTex renders your text in Serif fonts. You will need that last line to switch your whole document over to Sans Serif mode. Here is a sample:

Arial

Don’t use Arial though. Use Helvetica which is the de-facto king of Sans Serif world, and a far superior font. Syntax is the same as above:

\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\renewcommand*\familydefault{\sfdefault}

Quick note about the scaled parameter - you can use it to resize your font. For example using scaled=0.92 will give you size equivalent to 9pt.

Please compare the sample below with Arial, and decide for yourself:

Helvetica

The dirty little secret here is that when you do this, you might not be getting the true Helvetica but rather it’s very close cousin Nimbus Sans. That might depend on your system, and LaTex setup though. Nevertheless, Nimbus is still far better font type than Arial.

If you want to experiment with fonts, or you are simply searching for that unique look of your own, check out the LaTex Font Catalogue. It lists all the most popular supported packages, along with usage examples and sample images.

Update 05/08/2008 07:59:11 PM

By popular demand, I switched up the images a little bit to make them clearer and so that they don’t require you to click on them.

Related Posts:

  • The Microsoft Clear Type Fonts
  • LaTex Annoyances
  • Installing LaTex on Windows
  • LaTex: Fixing Wrong Figure Numbers
  • Latex: Rotate Inserted Images
  • Latex: Numbered Subsubsections
  • Code Segments in Latex
  • Latex: Squeezing the Vertical White Space
  • Convert JPG and PNG to EPS on Windows
  • LaTex: Making Floatng Text Boxes

  • 10 Responses to “Few Words on LaTex Fonts”

    1. Gravatar Adam Kahtava CANADA Says: Reply to this comment

      Don’t use Arial though. Use Helvetica which is the de-facto king of Sans Serif world, and a far superior font.

      LOL… Entertaining post…

      Posted using Mozilla Firefox Mozilla Firefox 3.0b5 on Windows Windows Vista
    2. Gravatar The Punisher DENMARK Says: Reply to this comment

      It’d help if you didn’t post your screenshots as badly compressed JPEGs, you twatmonkey.

      Posted using Mozilla Firefox Mozilla Firefox 3.0b5 on Linux Linux
    3. Gravatar Luke Maciak UNITED STATES Says: Reply to this comment

      @Punisher - Sigh… You can click on the images to see them in full size.

      …you twatbuttmonkey.. )

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.14 on Ubuntu Linux Ubuntu Linux
    4. Gravatar Michael S. UNITED KINGDOM Says: Reply to this comment

      You need to use Computer Modern if you need math symbols–none of the other fonts you mentioned come with math symbols.

      Posted using Safari Safari 3.1.1 on Mac OS Mac OS X
    5. Gravatar astine UNITED STATES Says: Reply to this comment

      “Sigh… You can click on the images to see them in full size.”

      It’s hard to compare them that way.

      Though, I didn’t need to compare Helvetica and Arial; there are plenty of good ones one the net and I seen them. I’ve alway felt that the difference between Arial and Helveltica was more subtle than really mattered. There are a lot of people who get all up in arms about how Arial stole Helvetica’s thunder and Microsoft is at fault (and necessarily evil.)

      But, really, the differences amount mostly to a few choice thicknesses and slants. The most noticibly difference is in the lowercase ‘t’. You can’t even tell the difference on the computer most of the time because the pixilation.

      Yet, *someone* must care because they made a movie about it. Whatever.

      Posted using Konqueror Konqueror 3.5 on Linux Linux
    6. Gravatar astine UNITED STATES Says: Reply to this comment

      BTW, you have your Helvetica and Arial transposed. Between the last two, the first is Heltvetica and the second is Arial. -)

      Posted using Konqueror Konqueror 3.5 on Linux Linux
    7. Gravatar Luke Maciak UNITED STATES Says: Reply to this comment

      You need to use Computer Modern if you need math symbols–none of the other fonts you mentioned come with math symbols.

      Not necessarily. To use math formulas in Times font simply add following package declaration:

      \usepackage{mathptmx}

      If you want to use bookman you will have to switch to it’s extension font Kerkis and then do:

      \usepackage{kmath,kerkis}

      If you want a Sans Serif math symbols, Helvetica might be a bad choice. You should go with Iwona instead:

      \usepackage[T1]{fontenc}
      \usepackage[math]{iwona}

      It’s hard to compare them that way.

      Well, I replaced them with more appropriately sized PNG files. Is that better?

      BTW, you have your Helvetica and Arial transposed. Between the last two, the first is Heltvetica and the second is Arial.

      Really? I thought I got them right. Either way, it should be fixed now.

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.14 on Windows Windows XP
    8. Gravatar Alphast NETHERLANDS Says: Reply to this comment

      Personally, my Serif font favourite is Garamond and Sans-Serif is Verdana, which I find rounder and more pleasant than both Helvetica and Arial.

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.14 on Ubuntu Linux Ubuntu Linux
    9. Gravatar astine UNITED STATES Says: Reply to this comment

      Well, I replaced them with more appropriately sized PNG files. Is that better?

      Much.

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.14 on Windows Windows XP
    10. Gravatar Luke Maciak UNITED STATES Says: Reply to this comment

      Alphast said:

      Personally, my Serif font favourite is Garamond and Sans-Serif is Verdana, which I find rounder and more pleasant than both Helvetica and Arial.

      Verdana seems to be bundled in the Winfonts package which may or may not be bundled with your LaTex distribution. )

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.14 on Ubuntu Linux Ubuntu Linux

    Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <pre lang=""> <em> <i> <strike> <strong>

    [Quote selected]