Tux in TeX with TikZ

Today, Marco Daniel proudly showed his Tux cup in the TeX.SX chat, which is available at Lehmann’s bookshop:

Tux cup

I thought, how long would it take to draw the Tux image using TikZ? I browsed and took the Tux SVG image from Wikipedia, downloaded the SVG to TikZ converter which has been programmed by Kjell Magne Fauske, run it at the command prompt by

python tikz_export.py penguin.svg -o tux.tex

and voila, got the file tux.tex – just click this file name to download and compile.

Tux with TikZ

Is this useful? Well, once you converted an SVG image to TikZ, you got the full power of TikZ for annotating, manipulating, and integrating with LaTeX. Next time, it might be a technical drawing which is converted and worked on with TikZ.

A lot of color definitions and a lot of paths. No additional libraries needed.


 

Comments

#1 Moss the TeXie, May 8, 2012 at 12:31 a.m.
Hi, I’d like to put that TikZ-Tux 😉 along with at least a portion of it’s code on a poster for our TeX and DANTE booth at the LinuxTag Berlin, if I may. May I?

#2 Massinissa TINOUCHE, May 11, 2012 at 6:14 p.m.
Thank you, It’s a hard work!!!

#3 Stefan Kottwitz, May 13, 2012 at 3:56 p.m.
Hi Moss! Of course you may use it, as I wrote in my message earlier. Have fun at the LinuxTag!

#4 Mads, June 22, 2012 at 8:34 a.m.
That is officially awesome! 🙂

#5 John Stasko, June 23, 2012 at 12:18 a.m.
This is cool! Thanks!

#6 Bob Ornida, November 9, 2012 at 6:53 p.m.
Can you draw Beastie too?
Tux is nice, but it would be nice to get the BSD mascot too!

#7 Moss the TeXie, November 24, 2012 at 3:12 p.m.
@Bob: Should be no problem at all, if there is a SVG image of Beastie somewhere. If someone provides me with one, I could make another poster featuring Beastie as well …
@all: The poster I announced above was finally printed (a few months later 😉 and shown at FrOSCon 7 in Bonn/St. Augustin, earlier this year. The complete source code, being about 99.9% identical with Stefans tux.tex above, can be downloaded here, and there is the DIN-A0 PDF file.

#8 esso, May 14, 2013 at 5:02 p.m.
This is cool! Thanks!