## Tutorial: Commutative Diagrams using TikZ

In previous posts I’ve shown some examples how the TikZ graphics package could be used to draw mathematical diagrams like exact sequences and commutative diagrams. Felix Lenders has written a tutorial called Commutative Diagrams using TikZ dealing with this subject and has published it today. In that paper he’s describing basic syntax, styles, arrows, curves, positioning issues and more. The tutorial contains several examples with the corresponding source code.

To read related blog posts have a look at the TikZ category.

A beautiful and useful tutorial Felix! Thank you for sharing.

Hello Stefan,

I am a newbie to LaTeX; I have been trying to use graphviz for creating simple graphs that I want to include in my text. However, I have had a lot of trouble using it and never figured out how to include math formulas as node names.

I have never used TikZ… Would you recommend TikZ instead?

Thanks,

Aleksandar

Hi Aleksandar,

TikZ is a great graphics package, I can recommend it really. Learning it is not easy, but there are many examples you could start with. Just take a complete example (for instance from texample.net) and modify it until it suits. There’s an extensive documentation. Just try it, have a look at the graphs examples and into the manual, perhaps also into the TikZ category of this blog.

Stefan

Hello,

Thanks for showing this neat system. I’ve been really struggling with doing diagrams (especially commuting diagrams for category theory papers) in LaTeX, and this looks like it works pretty well. I just downloaded the file, with a .tar.gz extension. I’m using MikTeX and Texmaker, and I’m not sure where I should put the file, any hints?

Thanks!

-Jon Beardsley

Hi Jon,

better use the MiKTeX package manager for the installation of pgf/TikZ. Click on Start/ MiKTeX/ Browse packages and install the pgf package.

Stefan

I am having trouble with tikz from mikTex. On my mac the file renders as expected using TexShop but I need to use my windows box (this has windows 8) I have loaded TexnicCenter and MikTex – all packages are uptodate as of 7-12-2012. But the file fails to render the tikz fifures. Any ideas?

thanks in advance