Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uwm.edu!psuvax1!rutgers!ub.d.umn.edu!cs.umn.edu!andrew From: andrew@umn-cs.cs.umn.edu (Andrew Lim) Newsgroups: comp.text.tex Subject: Questions regarding drawing in TeX/LateX Message-ID: <1990Sep19.234520.13224@cs.umn.edu> Date: 19 Sep 90 23:45:20 GMT Sender: andrew@cs.umn.edu (Andrew Lim) Organization: University of Minnesota, Minneapolis - CSCI Dept. Lines: 46 I was trying to draw a geometric graphs using latex, unfortunately, latex is very limited for drawing graphs. So, I used pictex. Unfortunately, I always get the "out of memory" error. In the end I resort to using postscript to draw my graphs. My postscript routine is given below -------------------------------------------------------------------- %!PS-Adobe-2.0 /aline { 4 copy newpath moveto lineto stroke 2 0 360 arc fill 2 0 360 arc fill } def 50.045784 369.496047 97.380558 325.045434 aline 50.045784 369.496047 58.263259 330.594227 aline 420.072773 413.100371 433.140388 440.506324 aline . . . showpage end ------------------------------------------------------------------- I have several questions ... 1. How can I include this postscript file in my Latex file as a figure? 2. Is there any written macro for drawing graphs (nodes and edges)? 3. How can I graph a straight length between any 2 points in TeX? Thanks. Andrew Lim