Monday, March 29, 2010

Affine root systems

Currently I'm working on my PhD thesis. It isn't finished yet, but I decided the following images were worth a sneak peak:


Besides looking nice, the pictures actually convey some information. They're so-called Hasse diagrams of the root systems of a few affine Lie algebras. From left to right we have the following affine algebras: (a) A1+, (b) C2+, (c) D4+, (d) A8+, (e) D7+, and (f) E7+. But luckily you don't need to fully understand the mathematical background, which is admittedly quite complicated, to enjoy their beauty.

Tuesday, February 16, 2010

Matching fonts in Keynote and LaTeX

LaTeX is great if you want to typeset documents with lots of mathematics in them, but what if you want to make presentations with lots of math? Sure, there are LaTeX packages like Beamer with which you can straightforwardly make decent looking presentations using nothing but LaTeX. But none of those packages lets you easily control where items end up on a page, make subtle changes to overall lay-out, or add some motion to your slides.

Keynote does all of those things, and a bit more. Here's for example a slide of presentation I gave some time ago:


The things in the image are all created within Keynote (not in a separate drawing program like Adobe Illustrator), and some of them are even animated. This is simply impossible to do solely with LaTeX, and that's why I've been using Keynote for quite some time now for all my presentations.

However, there was always something annoying me: the fonts in formulae I got from LaTeXiT (a small program that lets you insert LaTeX formula in Keynote) didn't match the font over the overall presentation. And if you're a typesetting nerd like me, that's pretty annoying. Luckily, I found a solution. Here's an example with both type of fonts:


The difference is subtle, but certainly noticable. The greek letters haven't changed, but the others are in the same font in the second equation. Here is how you change fonts:

  1. First, go to the LaTeXiT preferences, and change the default configuration to use xelatex instead of pdflatex:

  2. Next, add the following to the LaTeXiT preamble:

    \usepackage{mathspec}
    \usepackage{xunicode}
    \usepackage{xltxtra}
    \setmainfont{Gill Sans}
    \setmathsfont(Digits,Latin,Greek){Gill Sans}


    Be sure to change the "Gill Sans" to match whatever font you're using in Keynote.

And that's it! After restarting LaTeXiT, all new equations you'll typeset will be in the correct font. Enjoy!

Sunday, January 3, 2010

End of the year lists

2009 is behind us, which can only mean one thing: endless amounts of end-of-the-year-lists! Around this time of the year every respectable music website or blogger will produce his or her list of best albums, best singles, and whatnot. For example, have a look at the lists of  Pitchfork, Paste, and Kindamuzik (Dutch). Having compiled my list for the Vera poll, it's a small effort to also put it here. So here are my two cents for 2009:



10. Built To Spill - There is no enemy 
MP3: Hindsight

Myspace


9. Throw Me The Statue - Createresque
MP3: Ancestors

Myspace

8. Wake The President - You can't change that boy
Myspace


7. Jay Reatard - Watch me fall
MP3: Wounded

Myspace


6. The Pains Of Being Pure At Heat - s/t

Myspace

5. Sunset Rubdown - Dragonslayer

Myspace


4. Phoenix - Wolfgang Amadeus Phoenix
MP3: 1901

Myspace

3. The Maccabees - Wall of arms

Myspace

2. Dan Auerbach - Keep it hid

Myspace


1. Bill Callahan - Sometimes I wish we were an eagle

Myspace