Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!aplcen!haven!umbc3!umbc5.umbc.edu!rostamia From: rostamia@umbc5.umbc.edu (Rouben Rostamian) Newsgroups: comp.windows.x Subject: Re: how to put graphics into TeX under x Message-ID: <2554@umbc3.UMBC.EDU> Date: 27 Nov 89 05:38:25 GMT References: <3141@hub.UUCP> Sender: newspost@umbc3.UMBC.EDU Reply-To: rostamia@umbc5.umbc.edu.UUCP (Rouben Rostamian) Organization: University of Maryland, Baltimore County Lines: 36 In article <3141@hub.UUCP> hubert@spica.ucsb.edu (Hung-Hsien Hubert Chang) writes: >Well, I got one problem in putting graphics into TeX under >X window system. I have drown a rectangle in xfig and save the >file. The general step is to "fig2tex " the file and it is >O.K. The problem comes when I "tex" the converted file. >The message is undefined control sequence. I wonder why. >The following is the complete messaage: > >Using TeX2.93, old TeX is in /usr/local/bin (except on shamrock) >. >This is TeX, C Version 2.93 (no format preloaded) >(/test.tex >! Undefined control sequence. >l.1 \mbox > {\beginpicture >? > >How to solve this problem? > \mbox is a LaTeX command. I guess xfig generates a LaTeX, not a TeX, document. Try including the xfig output in a LaTeX document, as in: % This is myfile.tex \documentstyle{article} \begin{ducument} \input{figure.tex} % where figure.tex is the output of the xfig program \end{document} Then execute the command "latex myfile.tex" Rouben Rostamian Phone: 301 455-2458 Department of Mathematics e-mail: University of Maryland Baltimore County rostamian@umbc.bitnet Baltimore, MD 21228 rostamian@umbc3.umbc.edu