Re: Possible Bug

"George N. White III" <[email protected]>
Newsgroups gmane.comp.tex.tetex.general
Message-ID <[email protected]>
On Sat, 16 Apr 2005, Benoit Vinsonneau wrote:

> Hi,
>
> I just upgraded from tetex2.0.2 to tetex3.0 on Gentoo Linux system (from
> ebuild packages of Gentoo) and now, all my figure in `.tex' are messed
> up. These figures have been generated through the export function of
> DIA0.94.
>
> I tried to create a simplified test case.
>
> Here I see the two circles to mismatch, while they have the exact same
> coordinate. Is this a bug from tetex? a problem specific of my system,
> etc... Thanks for your help.

It isn't just your system.

> Note: Nothing else has been upgraded, only tetex since the problems
> appeared.
>
> Best Regards,
>
> Ben
>
> Reduced test case:
>
> \documentclass[a4paper]{report}
> \usepackage{float,graphicx,amsmath,amsfonts,epsfig,multicol,times,longtable,pstricks,fancybox}
> \usepackage[dvips]{rotating}
>
> \begin{document}
> \thispagestyle{empty}
>
> \begin{figure}[H]
> \centering \resizebox{9cm}{!}{
> \ifx\setlinejoinmode\undefined
>  \newcommand{\setlinejoinmode}[1]{}
> \fi
> \ifx\setlinecaps\undefined
>  \newcommand{\setlinecaps}[1]{}
> \fi
> \ifx\setfont\undefined
>  \newcommand{\setfont}[2]{}
> \fi
> \pspicture(-4.095110,-9.229423)(19.153761,-4.108040)
> \scalebox{1}[-1] {
> \psset{linewidth=0.07}
> \newrgbcolor{dialinecolor}{1.000000 0.000000 1.000000}
> \psset{linecolor=dialinecolor}
> \psellipse*(-0.467225cm,7.106585cm)(0.627885cm,0.627295cm)
> \newrgbcolor{dialinecolor}{0.000000 1.000000 0.000000}
> \psset{linecolor=dialinecolor}
> \psellipse(-0.467225cm,7.106585cm)(0.627885cm,0.627295cm)
> }\endpspicture}
> \end{figure}
>
> \end{document}

Use 'dvitype' to compare the two .dvi files.

>From tetex-2.02:

432: xxx '" tx@Dict begin STP newpath 0.0 SLW 1.000000 0.000000 1.000000 
setrgbcolor  0 360 17.86502 17.84808 .5 CLW mul dup 4 -1 roll sub neg 3 1 
roll sub -13.29381 202.20186 Ellipse closepath gsave 1.000000 0.000000 
1.000000 setrgbcolor fill grestore end'
680: xxx '" tx@Dict begin STP newpath 1.9919 SLW 0.000000 1.000000 
0.000000 setrgbcolor  0 360 17.86502 17.84808 .5 CLW mul dup 4 -1 roll sub 
neg 3 1 roll sub -13.29381 202.20186 Ellipse closepath gsave 1.9919 SLW 
0.000000 1.000000 0.000000 setrgbcolor 0 setlinecap stroke  grestore end'
9

while tetex-3.00 gives:

754: xxx '" tx@Dict begin STP newpath 0.0 SLW 1 0 1  setrgbcolor  0 360 
17.86502 17.84808 .5 CLW mul dup 4 -1 roll sub neg 3 1 roll sub -13.29381 
202.20186 Ellipse closepath gsave 1 0 1  setrgbcolor fill grestore end'
962: right3 163840 h:=15170072+163840=15333912, hh:=971
[ ]
966: xxx 'color push rgb 0 1 0'
988: xxx 'color pop'
999: xxx '" tx@Dict begin STP newpath 1.9919 SLW 0 1 0  setrgbcolor  0 360 
17.86502 17.84808 .5 CLW mul dup 4 -1 roll sub neg 3 1 roll sub -13.29381 
202.20186 Ellipse closepath gsave 1.9919 SLW 0 1 0  setrgbcolor 0 
setlinecap stroke  grestore end'

Note the extra 'right3' at byte 962.  This seems to come from
the '\newrgbcolor'.  For teTeX 3, \newcolor is defined using \color in
     .../texmf-dist/tex/latex/pstricks/pstricks.sty

but for teTeX 2.02 was defined using \pst@color in
     .../texmf/tex/generic/pstricks/pstricks.tex


-- 
George N. White III  <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.