nmouawad@watmath.waterloo.edu (Naji Mouawad) (05/24/91)
Okay,
I drew a picture with xfig, while the latex option is was on.
I saved it in a file called fig.fig
Did fig2dev -L pio fig.fig > fig.pic
and
tpic fig.pic.
This gave me a fig.tex file.
I used the command \input{fig}\centerline{\box\graph}
in between a \begin{figure} \end{figure} environment.
Latex is giving me the following error message:
(fig1.tex
! Undefined control sequence.
<argument> ...2.063in\lower 1.510in\hbox to0pt{\s
11\fR 0\fP \hss }
\rlap #1->\hbox to\z@ {#1
\hss }
l.32 ...lower 1.510in\hbox to0pt{\s11\fR0\fP\hss}}
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Here is the file:
\catcode`@=11
\expandafter\ifx\csname graph\endcsname\relax \alloc@4\box\chardef\insc@unt\graph\fi
\catcode`@=12
\setbox\graph=\vtop{%
\baselineskip=0pt \lineskip=0pt \lineskiplimit=0pt
\vbox to0pt{\hbox{%
\special{pn 8}%
\special{pn 11}%
\special{ar 1875 1087 25 24 0.000 6.283}%
\special{ar 2000 1313 25 24 0.000 6.283}%
\special{ar 2000 563 25 24 0.000 6.283}%
\special{ar 1688 688 25 24 0.000 6.283}%
\special{ar 500 1313 25 24 0.000 6.283}%
\special{pa 0 0}%
\special{pa 3750 0}%
\special{pa 3750 2562}%
\special{pa 0 2562}%
\special{pa 0 0}%
\special{fp}%
\special{pa 1988 1288}%
\special{pa 1676 663}%
\special{fp}%
\special{pa 500 1313}%
\special{pa 2750 188}%
\special{fp}%
\special{pa 188 1313}%
\special{pa 3500 1313}%
\special{dt 0.037}%
\special{pa 2000 63}%
\special{pa 2000 2562}%
\special{dt 0.037}%
%The following line is line 32. Any ideas ?
\rlap{\kern 2.063in\lower 1.510in\hbox to0pt{\s11\fR0\fP\hss}}%
\rlap{\kern 1.563in\lower 1.198in\hbox to0pt{\s11\fRT(h)\fP\hss}}%
\rlap{\kern 2.313in\lower 0.573in\hbox to0pt{\s11\fRh:1/3x -1/6y = 1\fP\hss}}%
\kern 3.751in
}\vss}%
\kern 2.563in
}
--Naji.
--
-------------------------------------------------------------------
| Naji Mouawad | nmouawad@watmath.waterloo.edu |
| University |---------------------------------------------------|
| Of Waterloo | "The Stranger in us is our most familiar Self" |beck@CS.Cornell.EDU (Micah Beck) (05/25/91)
nmouawad@watmath.waterloo.edu (Naji Mouawad) writes: >Okay, >I drew a picture with xfig, while the latex option is was on. >I saved it in a file called fig.fig >Did fig2dev -L pio fig.fig > fig.pic >and >tpic fig.pic. >This gave me a fig.tex file. >I used the command \input{fig}\centerline{\box\graph} >in between a \begin{figure} \end{figure} environment. >Latex is giving me the following error message: >(fig1.tex >! Undefined control sequence. ><argument> ...2.063in\lower 1.510in\hbox to0pt{\s > 11\fR 0\fP \hss } The problem here is the use of the "-L pic" option to fig2dev, which includes troff-style font specifiers in text objects. To get tpic/LaTeX compatible output, use "-L tpic". Micah Beck Cornell CS Dept.