drawing diagrams in Latex?


by tgt
Tags: diagrams, drawing, latex
tgt
tgt is offline
#1
Aug18-08, 10:01 PM
P: 470
How to do that?
Phys.Org News Partner Science news on Phys.org
Going nuts? Turkey looks to pistachios to heat new eco-city
Space-tested fluid flow concept advances infectious disease diagnoses
SpaceX launches supplies to space station (Update)
Dr Transport
Dr Transport is offline
#2
Aug19-08, 07:59 PM
Sci Advisor
PF Gold
P: 1,457
what would you like to do?? an example would be helpful in answering the question.
tgt
tgt is offline
#3
Aug21-08, 05:47 AM
P: 470
Quote Quote by Dr Transport View Post
what would you like to do?? an example would be helpful in answering the question.
some arrow theoretic diagrams such as in category theory.

wildemar
wildemar is offline
#4
Aug21-08, 07:45 AM
P: 20

drawing diagrams in Latex?


OK, so you the most basic things you can do with the latex's own picture environment. But there are other, more advanced options. The most popular might be the the pstricks package, but I'm not sure it works with pdf output. I recomend the pgf package with the tikz drawing macros, because it definitely works with pdf output (and, well, I know it better than pstricks ...).

All of these let you basically draw pictures by describing them. tikz even has a pretty huge library for specific tasks.

I don't quite know what you mean by "arrow theoretic diagrams", but if you want to connect boxes with arrows, you might want to look at graphviz. This is a graph visualization tool. It does not use (La)TeX syntax at all, but it can produce eps or pdf output to include in your documents. Good thing about graphviz is that you only need to specify the logical relationships, then graphviz does the whole layout for you.

hope that helps,
/W
cshardin
cshardin is offline
#5
Sep12-08, 02:40 PM
P: 1
Quote Quote by tgt View Post
some arrow theoretic diagrams such as in category theory.
For typesetting diagrams as in category theory, the Xy-pic package is generally the way to go, and it is standard enough that most tex distributions include it (though you could of course download it yourself). The user's guide is well written, and you can usually find an example that does what you want and emulate that.

For other sorts of diagrams, I second the recommendation of pgf. However, while it is true that Graphviz is able to automate a lot of the work that goes into laying out a diagram (specifically, a graph), it usually is more trouble than it is worth unless you have a lot of nodes, or if you want to automatically generate a diagram from some program's output.


Register to reply

Related Discussions
Application for drawing Feynman diagrams Math & Science Software 5
Drawing circuit diagrams in a household Electrical Engineering 2
Drawing Feynman Diagrams with Feynmf High Energy, Nuclear, Particle Physics 3
Drawing Feynman diagrams with Feynmf High Energy, Nuclear, Particle Physics 16
Drawing Feynman diagrams Computing & Technology 1