Posted by: Dave Richeson | July 13, 2010

## Coffee stains and the Simpsons in your LaTeX document

A few weeks ago John D. Cook posted a tweet asking for suggestions for his @TeXtip Twitter feed.

Usually @TeXtip posts are useful tips or factual tidbits about the typesetting program. I decided to send him a humorous suggestion instead. He posted the tip on Twitter yesterday. I sent him a link to Hanno Rein’s coffee.sty package which adds a coffee stain to any LaTeX document.

Today I remembered another fun LaTeX package that I’d encountered years ago. The Simpsons package allows you to insert Bart, Homer, Maggie, Mr. Burns, Lisa, Marge, or the Springfield Nuclear Power Plant into your LaTeX document. (The screenshot below is from the Comprehensive LaTeX Symbol List.)

To use this on your own, go to this web page and download the simpsons.sty file. Put it somewhere that LaTeX can find it (putting it in the same directory as your tex file is fine) and put \usepackage{simpsons} at the start of your document. Then you can get your favorite character to appear using the commands \Bart, \Homer, etc. (no dollar signs needed, by the way). You can make the character turn to the left using \Left. Also, you can specify the location of the characters’ two pupils by using the \Goofy command (the coordinates for the normal pupil locations are (0,0) and (0,0)). For example, \Left\Goofy\Bart(1,1.6)(.85,1.6) produces an image of the left-facing Bart rolling his eyes at his sister Lisa (below).

## Responses

1. […] to a Latex doc Posted in Flows by Yi on 07/13/2010 Here are two fun .sty’s from the post at Division by Zero. One adds a coffee stain on any document, and one is for […]

2. […] Coffee stains and the Simpsons in your LaTeX document – I know nothing about typesetting, but it’s nice to know that if I ever learn about it, I can put Simpsons heads into things.  […]

3. […] this post by David Richeson for a probably better guide to install the two packages:) […]