[11814] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 7.6R: xfig,latex,PiCTeX

daemon@ATHENA.MIT.EDU (scasadei@MIT.EDU)
Tue Mar 8 10:56:22 1994

From: scasadei@MIT.EDU
To: bugs@MIT.EDU
Date: Tue, 08 Mar 94 10:56:13 EST

System name:		m37-312-33
Type and version:	SPARC/Classic 7.6R
Display type:		cgthree

What were you trying to do?

Hi, I have been trying to export an xfigure
to a PiCTeX file, but it is seems to be that
latex gets stuck when the figure contains text.

What's wrong:

The message produced by latex is as follows:

(unnamed.pictex
! Missing number, treated as zero.
<to be read again> 
                   @
...
l.37 \endpicture}


What should have happened:

No error messages !!

Please describe any relevant documentation references:


****************The file unnamed.fig:

#FIG 2.1
80 2
4 0 0 12 0 -1 0 0.00000 4 9 21 169 189 boia


****************The file unnamed.pictex:

\font\thinlinefont=cmr5
\mbox{\beginpicture
\setcoordinatesystem units < 1.000cm, 1.000cm>
\unitlength= 1.000cm
\linethickness=1pt
\setplotsymbol ({\makebox(0,0)[l]{\tencirc\symbol{'160}}})
\setshadesymbol ({\thinlinefont .})
\setlinear
%
% Fig TEXT object
%
%
\begingroup\makeatletter
% extract first six characters in \fmtname
\def\x#1#2#3#4#5#6#7\relax{\def\x{#1#2#3#4#5#6}}%
\expandafter\x\fmtname xxxxxx\relax \def\y{splain}%
\ifx\x\y   % LaTeX or SliTeX?
\gdef\SetFigFont#1#2#3{%
  \ifnum #1<17\tiny\else \ifnum #1<20\small\else
  \ifnum #1<24\normalsize\else \ifnum #1<29\large\else
  \ifnum #1<34\Large\else \ifnum #1<41\LARGE\else
     \huge\fi\fi\fi\fi\fi\fi
  \csname #3\endcsname}%
\else
\gdef\SetFigFont#1#2#3{\begingroup
  \count@#1\relax \ifnum 25<\count@\count@25\fi
  \def\x{\endgroup\@setsize\SetFigFont{#2pt}}%
  \expandafter\x
    \csname \romannumeral\the\count@ pt\expandafter\endcsname
    \csname @\romannumeral\the\count@ pt\endcsname
  \csname #3\endcsname}%
\fi
\endgroup
\put{\SetFigFont{12}{14.4}{rm}boia} [lB] at  5.366 20.669
\linethickness=0pt
\putrectangle corners at  5.366 20.955 and  5.366 20.669
\endpicture}



****************The relevant parts of the tex file:



\input{prepictex} 
\input{pictex}
\input{postpictex}

\begin{document}
\begin{figure}[tbh]
\begin{PiCTeX}
	\begin{center}
        \input{unnamed.pictex}  
	\end{center}
 \caption{ Terminology.}
%\label{templates}
\end{PiCTeX}
\end{figure}


****************The message produced by latex:

(unnamed.pictex
! Missing number, treated as zero.
<to be read again> 
                   @
...
l.37 \endpicture}


\end{document}



Thanks for your help,
Stefano



home help back first fref pref prev next nref lref last post