Friday, September 26, 2008

PGF and TikZ

I guess I'm just completely out of touch, but there's an excellent package that allows you to draw sophisticated graphics within LaTeX (using a graphics programming language) I hadn't heard of till recently.

It's called PGF, and the component you use in your LaTeX/TeX source code is called TikZ. You enter simple LaTeX-style commands to tell it what to draw, in an environment right in your (La)TeX code, and it does the job for you. The excellent user manual can be found here, including instructions for installing and a tutorial. (If you're a Ubuntu user, of course, there's already a package you can install with a few clicks.) Great examples can be found here. Wow! What a package.