#FIG 3.2 Produced by xfig version 3.2.6
Landscape
Center
Inches
Letter
100.00
Single
-2
1200 2
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
600 900 2700 900 2700 5400 600 5400 600 900
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
600 2400 2700 2400
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
600 3000 2700 3000
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
600 3600 2700 3600
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
0 0 2.00 210.00 255.00
3300 2400 3300 4200
4 0 0 50 -1 0 12 0.0000 4 150 540 900 1500 Buffer\001
4 0 0 50 -1 0 12 0.0000 0 195 1215 900 2700 Frame pointer\001
4 0 0 50 -1 0 12 0.0000 0 150 1305 900 3300 Return address\001
\ifx\XFigwidth\undefined\dimen1=0pt\else\dimen1\XFigwidth\fi
\divide\dimen1 by 2829
\ifx\XFigheight\undefined\dimen3=0pt\else\dimen3\XFigheight\fi
\divide\dimen3 by 4524
\ifdim\dimen1=0pt\ifdim\dimen3=0pt\dimen1=3946sp\dimen3\dimen1
\else\dimen1\dimen3\fi\else\ifdim\dimen3=0pt\dimen3\dimen1\fi\fi
\tikzpicture[x=+\dimen1, y=+\dimen3]
{\ifx\XFigu\undefined\catcode`\@11
\def\temp{\alloc@1\dimen\dimendef\insc@unt}\temp\XFigu\catcode`\@12\fi}
\XFigu3946sp
% Uncomment to scale line thicknesses with the same
% factor as width of the drawing.
%\pgfextractx\XFigu{\pgfqpointxy{1}{1}}
\ifdim\XFigu<0pt\XFigu-\XFigu\fi
\pgfdeclarearrow{
name = xfiga0,
parameters = {
\the\pgfarrowlinewidth \the\pgfarrowlength \the\pgfarrowwidth},
defaults = {
line width=+7.5\XFigu, length=+120\XFigu, width=+60\XFigu},
setup code = {
% miter protrusion = thk * sqrt(wd^2 + (tipmv*len)^2) / (2 * wd)
\dimen7 2.15\pgfarrowlength\pgfmathveclen{\the\dimen7}{\the\pgfarrowwidth}
\dimen7 2\pgfarrowwidth\pgfmathdivide{\pgfmathresult}{\the\dimen7}
\dimen7 \pgfmathresult\pgfarrowlinewidth
\pgfarrowssettipend{+\dimen7}
\pgfarrowssetbackend{+-\pgfarrowlength}
\dimen9 -0.5\pgfarrowlinewidth
\pgfarrowssetvisualbackend{+\dimen9}
\pgfarrowssetlineend{+-0.5\pgfarrowlinewidth}
\pgfarrowshullpoint{+\dimen7}{+0pt}
\pgfarrowsupperhullpoint{+-\pgfarrowlength}{+0.5\pgfarrowwidth}
\pgfarrowssavethe\pgfarrowlinewidth
\pgfarrowssavethe\pgfarrowlength
\pgfarrowssavethe\pgfarrowwidth
},
drawing code = {\pgfsetdash{}{+0pt}
\ifdim\pgfarrowlinewidth=\pgflinewidth\else\pgfsetlinewidth{+\pgfarrowlinewidth}\fi
\pgfpathmoveto{\pgfqpoint{-\pgfarrowlength}{0.5\pgfarrowwidth}}
\pgfpathlineto{\pgfqpoint{0pt}{0pt}}
\pgfpathlineto{\pgfqpoint{-\pgfarrowlength}{-0.5\pgfarrowwidth}}
\pgfusepathqstroke
}
}
\clip(588,-5412) rectangle (3417,-888);
\tikzset{inner sep=+0pt, outer sep=+0pt}
\pgftext[base,left,at=\pgfqpointxy{900}{-3300}] {\fontsize{12}{14.4}\normalfont Return address}
\pgfsetlinewidth{+7.5\XFigu}
\draw (600,-2400)--(2700,-2400);
\draw (600,-3000)--(2700,-3000);
\draw (600,-3600)--(2700,-3600);
\pgfsetarrows{[line width=15\XFigu, width=210\XFigu, length=255\XFigu]}
\pgfsetarrowsend{xfiga0}
\draw (3300,-2400)--(3300,-4200);
\pgftext[base,left,at=\pgfqpointxy{900}{-1500}] {\fontsize{12}{14.4}\usefont{T1}{ptm}{m}{n}Buffer}
\pgftext[base,left,at=\pgfqpointxy{900}{-2700}] {\fontsize{12}{14.4}\normalfont Frame pointer}
\draw (600,-900) rectangle (2700,-5400);
\endtikzpicture%
On Sat, Apr 28, 2018 at 05:07:27PM +0200, Antoine Jacoutot wrote:
> On Sat, Apr 28, 2018 at 04:20:15PM +0200, Solene Rapenne wrote:
> > Following diff updates print/transfig, so the port get synced with the
> > newer version of xfig
>
> Looks fine portwise.
> OK aja
>
For the record, unfortunately, there's a bug in there... either that or
our texlive's tikz is too old.
In any case, I've got some rather simple .pics that don't convert correctly
where they converted correctly before.
It seems the preamble code got broken.
Minimal example that worked perfectly fine with fig2dev 3.2.6:
fig2dev -L tikz fig1.fig fig1.tikz
pdflatex t
(./fig1.tikz
! No room for a new \dimen .
\ch@ck ...\else \errmessage {No room for a new #3}
\fi
l.9 ...alloc@1\dimen\dimendef\insc@unt}\temp\XFigu
\catcode`\@12\fi}
? x
work-around is to use -W, which means it's the dimension-setting code that
changed in incompatible ways.
It does NOT happen for every picture, no idea why this one is special :(
(I'll have a closer look later, but it's not okay to update as-is)
No comments:
Post a Comment