I am great fan of pgf and tikz in general to produce great looking figures. But I don't like the amount of time I have to put in to draw a complicated picture, because I have to provide all the coordinates of the points lines etc. Is there any wrapper which makes this simpler? Like in some cases, eg when you have to put text over or around arrows, there are ways to give relative position instead of exact coordinates. Are there any similar ways to draw other shapes with relative coordinates? Is there any external program that can convert figures with lines and shapes into coordinates?
|
Complete LaTeX documents used to generate the figures in this answer are available as a Gist on GitHub. One way to solve the "putting text over arrows" question is to use inline nodes and relative positioning:
You can also use named nodes and coordinates combined with relative positioning. A
See Tutorial 2 "A Petri-Net for Hagen" in the TikZ manual for an excellent step-by-step walkthrough of named nodes and relative positioning. I prefer constructing figures using relative positioning as opposed to using a GUI program because I can change the look of the figure by adjusting the locations of a few "base coordinates". In this case, I could draw a completely different triangle by moving the locations of coordinates A, B and C and for most adjustments the rest of the figure would just fall into place. Learning to set up figures like this takes practice but once you get the it down it can save a bunch of time when it comes to fine-tuning the image when compared to a GUI program. Finally, as to your question about GUI programs, I would recommend Inkscape- it is a very robust, open source editor for vector graphics that is similar to Adobe Illustrator. There is even a plugin available that generates TikZ code from Inkscape graphics. |
||||
|
|
I think you need to be more specific in what you want to do. There are numerous ways to make relative coordinates in TikZ. Here are some Examples:
Check out http://www.texample.net/tikz/ for a lot of excellent examples of how to draw with TikZ. |
|||
|
|
jpgfdraw is a tool for freehand drawing and exporting to pgf. Perhaps see this jpgfdraw example, exported to pgf/tex and used with
Perhaps you could combine a freehand drawing with additional TikZ drawings. |
|||||||
|
|
There is a plugin for Inkscape, inkscape2tikz, that allows you to export TikZ code from Inkscape. It's been mentioned a few times already on other questions on this site. |
|||
|
|
|
I realize when I read these answers that I made the last diagram with TikZ :
|
|||||||
|



