[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

xfig export pstex broken; layer bug



Hi!

Severe bug:

After a recent upgrade (ongoing sid release) my laptop won't export
pstex/pstex_t file pairs when the figure contains text.

I am using xfig 3.2.3.c4, transfig 3.2.3.c3, latex tetex base
1.0.2+20000 and tetex bin 1.0.7+20000

Running latex on exported pstex_t files included in a document causes
the following error (at end).  I have attached the faulty pstex_t file
(it's not big).  A previous version of xfig exported a different diagram
fine; this has started happening recently.  Only files with special text
are broken: the encapsulated postscript output works fine too.  This
looks like a real bug to me: not just a matter of waiting for some other
package upgrade.

Insignificant bug:

Try this: put something on the drawing.  Use edit to change its layer.
What happens to the layer list?  On the version I'm running, the new
layer isn't added, and things get difficult.  Workaround: never create a
new layer in this way.  Always set the drawing layer first.

Thought I should confirm other people experience these before submitting
a bug report (Brian Smith knows I'm quite bad at making duff reports 8-)

Nick/

LaTeX Warning: Slide 23 overfull by 3.8165pt on input line 331.


Overfull \vbox (2.98097pt too high) has occurred while \output is active

(adaptive.pstex_t <adaptive.pstex>

LaTeX Font Warning: Font shape `OT1/sf/$/h' undefined
(Font)              using `OT1/cmr/m/n' instead on input line 28.

! Missing $ inserted.
<inserted text>
                $
l.28 ...{\smash{\SetFigFont{8}{9.6}{sf}$h^n(z)$}}}

? x
Output written on adaptive-filters.dvi (13 pages, 20936 bytes).
Transcript written on adaptive-filters.log.

\begin{picture}(0,0)%
\includegraphics{adaptive.pstex}%
\end{picture}%
\setlength{\unitlength}{1243sp}%
%
\begingroup\makeatletter\ifx\SetFigFont\undefined
% 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
\fi\endgroup
\begin{picture}(10483,4090)(272,-3792)
\put(4186,-1231){\makebox(0,0)[b]{\smash{\SetFigFont{8}{9.6}{sf}$h^n(z)$}}}
\end{picture}

Reply to: