gusl: (Default)
[personal profile] gusl
I would like to make graphs like this in LaTeX.



This took me ~10 painful minutes to make in MS Paint.

Any tips?

(no subject)

Date: 2007-11-17 08:21 am (UTC)
From: [identity profile] psifenix.livejournal.com
There's a pretty good guide in that link, but if you want example code I can send you some of my category theory hw. :P

(no subject)

Date: 2007-11-17 10:12 am (UTC)
tiedyedave: (Default)
From: [personal profile] tiedyedave
Back in the day, I used xfig and exported as postscript for latex import, but I hope there are better solutions available nowadays.

(no subject)

Date: 2007-11-17 10:37 am (UTC)

(no subject)

Date: 2007-11-17 02:42 pm (UTC)
From: (Anonymous)
Use dot, or one of the others from graphviz.org, to make a postscript (or PDF or JPG or ...) figure.

(no subject)

Date: 2007-11-17 03:18 pm (UTC)
From: [identity profile] xuande.livejournal.com
OpenOffice.org Draw, which is okay for drawing simple graphs, exports to LaTeX-friendly EPS. It doesn't keep any semantic representation of the graph, though, so small semantic changes can require you to redraw the whole thing. For that reason I keep meaning to acquire and learn Dia or Visio or the like at some point.

(no subject)

Date: 2007-11-17 03:37 pm (UTC)
From: [identity profile] bhudson.livejournal.com
xfig, IPE, inkscape

with xfig, use \psfrag when you \includegraphics in order to make the fonts work right (also, for equations). I know IPE, and maybe also inkscape, let you include latex in the figures they generate, so you get a more wysiwyg feel.

For graphs specifically, graphviz (dot, neato, dotty) does a good job sometimes.

Any drawing application on OS X will let you print to pdf (if it lets you print at all), and then you can pdf2ps | ps2epsi to get eps.

(no subject)

Date: 2007-11-18 03:40 am (UTC)
From: [identity profile] bhudson.livejournal.com
Oh, and if you like pain, there are standard packages for LaTeX for drawing diagrams (and some non-standard ones that are moderately less sadistic).

(no subject)

Date: 2007-11-17 05:07 pm (UTC)
From: [identity profile] trufflesniffer.livejournal.com
VUE or Cmaptools?
The new version of VUE allows network properties of graphs to be extracted: sometimes useful.
Not LaTeX, but still quicker than MS Paint!

(no subject)

Date: 2007-11-17 05:07 pm (UTC)
From: [identity profile] inferno0069.livejournal.com
I'm also a fan of xy-pic and, when that doesn't do the right thing, dia (it can export to LaTeX so you can get the same fonts). I don't think Inkscape existed when I was doing this a lot, but it looks like it would replace dia for me now. Both of them also have Windows binaries, I believe.

(no subject)

Date: 2007-11-17 05:36 pm (UTC)
From: [identity profile] bram.livejournal.com
I use OmniGraffle.

(no subject)

Date: 2007-11-17 05:53 pm (UTC)
From: [identity profile] ch.livejournal.com
dot will do this. dot2tex is a handy add-on.

(no subject)

Date: 2007-11-17 09:59 pm (UTC)
From: [identity profile] mcoletti.livejournal.com
I second graphviz/dot, though there's a certain sacrifice of control for node and edge placement. (Which isn't necessarily a bad thing.)

Please tell me more about dot2tex.

(no subject)

Date: 2007-11-17 10:22 pm (UTC)
From: [identity profile] ch.livejournal.com
dot2tex lets you use Latex for the labels, so equations and symbols work in a familiar way with consistent typesetting.

plus it has a few other tricks that make the output look more like it came directly from LaTeX.


(no subject)

Date: 2007-11-17 08:45 pm (UTC)
From: [identity profile] rdore.livejournal.com
I learned how to do stuff like this using xy-matrix a while back for the purpose of drawing automata. I'll look up the details, but if you know what you're doing this can be done in ~10 lines of LaTeX.

(no subject)

Date: 2007-11-17 09:57 pm (UTC)
From: [identity profile] wjl.livejournal.com
OmniGraffle is great, but you need a Mac. For really simple things, you might be able to get away with Paul Taylor's Commutative Diagrams package: http://www.ctan.org/tex-archive/macros/generic/diagrams/taylor/ . There's also pstricks, but i've never been able to figure it out...

(no subject)

Date: 2007-11-18 07:39 am (UTC)
From: [identity profile] roseandsigil.livejournal.com
I'll put in a third for xypic.

February 2020

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags