At last... LaTeX inside Dot inside LaTeX
Feb. 5th, 2004 09:07 pmI 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.

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.