Skip to content

The graphtheoryinlatex blog moves here

February 18, 2010

As of today, I will start posting here further drawings similar to those in my previous blog on graph theory, made with the excellent tkz-berge and tkz-graph LaTeX packages by Alain Matthes.

The reason for the move is that I have found a much more convenient way to post the examples. Starting with this post at his Curious Reasoning blog, Eric Finster explained a way of posting code and images to WordPress. For example, for the first post I used the following procedure:

First, I produced the code using the method described in my post in the previous blog. Note that the script tikz2pdf leaves a .pdf file of the picture in the folder, called tikz2pdf_temp.pdf. I used then the convert command from imagemagick as follows:

convert -density 300 tikz2pdf_temp.pdf coloringpeteresen.png

to obtain a .png file from the .pdf. Then I edited a LaTeX file 01petersencoloring.tex:



\title{A coloring of the Petersen graph}






then I ran the command:

wplpost -u rvf0068 -b graphtheoryinlatex 01petersencoloring.tex

Finally, I just edited manually in WordPress the part where it says the code language is Python (changed to LaTeX), and resized and centered the picture. Done!

2 Comments leave one →
  1. Fidel permalink
    February 26, 2010 3:54 pm

    I’ve downloaded tikz.el and tkz-berge.el. How can I use these files πŸ˜•

    I have placed them in ~/elisp and added

    (add-to-list ‘load-path (expand-file-name “~/elisp”))

    to my .emacs file. This does not seem to work 😦


    • rvf0068 permalink*
      February 26, 2010 7:05 pm

      Hi Fidel,

      They are AucTeX style files, so you should use AucTeX and add

      (setq TeX-style-private “~/elisp”)

      to .emacs. If for some reason that does not work, the quick and dirty way would be to
      put those files together with the other style files.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: