Margin Icons in LaTeX

Recently I was working in LaTeX and needed to put some icons in the margins next to certain headings, to distinguish them from the others. You often see this in books that want to highlight certain paragraphs which contain safety information and the like.

 

Some solutions were already outlined in this thread on the LaTeX forums, one of which was to use the package textpos which allows you to place textboxes in absolute and relative positions on the page, very useful.  The documentation for textpos can be found here. After installing the package (make sure you get the latest version, installing an old version gave me some package conflicts), I was able to produce the result with the following code:

December 4, 2012 LaTeX

#293 The earth is a cube from geometry.tumblr.com

Today Steam saw the release of the minimalist action game Super Hexagon, created by Terry Cavanagh (the author of VVVVVV). Instead of providing a description about the game, Terry includes some important facts about hexagons. One of which says:

Hexagons are first order permutohedrons: The vertices of a hexagon can be formed by permuting the coordinates of the vector (1, 2, 3).

So what on earth is he talking about?

November 28, 2012 Math