[comp.text.tex] xfig and Latex

nmouawad@water.waterloo.edu (Naji Mouawad) (10/29/90)

Greetings,

   I am trying to get a picture drawn using xfig into latex.
I drawn the picture and saved it as figure.fig. I then used 
fig2dev -L pic figure.fig > figure.pic and did "tpic figure.pic"
to obtain figure.tex.

   Question 1: I need the PicTeX macros in order for the figure 
to be processed by Latex.

   Question 2: Is there a better way of doing this ?

Any comment would be welcomed.

--Naji.
-- 
         ---------------+-------------------------------------------
        | Naji Mouawad  |       nmouawad@water.waterloo.edu         |
        |  University   |-------------------------------------------|
        | Of Waterloo   | "Thanks God, we cannot prove He Exists."  |

beck@bongo.cs.cornell.edu (Micah Beck) (10/29/90)

nmouawad@water.waterloo.edu (Naji Mouawad) writes:

>   I am trying to get a picture drawn using xfig into latex.
>I drawn the picture and saved it as figure.fig. I then used 
>fig2dev -L pic figure.fig > figure.pic and did "tpic figure.pic"
>to obtain figure.tex.
>
>   Question 1: I need the PicTeX macros in order for the figure 
>to be processed by Latex.

No, PicTeX has nothing to do with PIC.  You need a DVI driver which supports
tpic specials.

>   Question 2: Is there a better way of doing this ?

Depends on your operating environment.  Fig code can be translated into
LaTeX picture environment, (E)EPIC, PostScript, or TeXtyl, in addition
to PIC or PicTeX.  I suggest you read the TransFig manual, which is available
via anonymous FTP from svax.cs.cornell.edu in ~ftp/pub/fig/transfig-man.dvi,
and is also included in the TransFig software distribution.

Micah Beck
Cornell CS
beck@cs.cornell.edu