Moreover, you can use TeX commands inside the picture, so you can use Greek letters and subscripts with great ease, and maintain consistent look throughout the document. Setting it up There are a couple of things you have to do to get started. I recommend that you put the symbolic link in your home directory and add your home directory to your search path. This simple example draws a path of length 2, as shown. The next two, A and B , are defined relative to the current position of the point O .
Semicolons separates commands.
Note also that the end of line acts as a command separator. This draws a 4-cycle with labels. The 4 points are defined as A , B , C , and D , starting from the top clockwise. Due to the way the macros are written, you can label only up to 3 vertices at a time. This one does not need a number specification, since there's only one.