compilerbitch: That's me, that is! (f_working)
[personal profile] compilerbitch
I managed to get dot to draw a diagram where the boxes contained LaTeX formulae today:



A Haas diagram showing the lattice of values of my 15-value logic with respect to subset membership


The trick was to fire up LaTeX once for each bubble, with only the content of the bubble on the page (i.e. no headings/page numbers/etc.), then to use dvips -E to generate EPS with a tight bounding box. Getting dot to use these images was easy -- for each node, set the shape to epsf and specify the relevant EPS file. I then made dot export the whole diagram as an EPS, which allowed me to integrate it into a big LaTeX document. (As a slight aside, the whole document, diagrams and all is built by a single 500 line ML program).

I am such a geek. Someone slap me.

Re:

Date: 2004-02-06 03:44 am (UTC)
From: [identity profile] compilerbitch.livejournal.com
Cool, I'd not seen that tool before. I think in this case it's probably easiest the way I've done it (since the arrows line up with the edges of the boxes automagically), but in the future, especially for hand-illustrated diagrams, I can imagine that this would be incredibly useful. Thanks for the hint!

Profile

compilerbitch: That's me, that is! (Default)
compilerbitch

January 2016

S M T W T F S
     12
3 45 6789
10111213 141516
17181920212223
24 252627282930
31      
Page generated Mar. 23rd, 2026 09:36 am

Style Credit

Expand Cut Tags

No cut tags