[Problem] pst-grad.tex and \psbezier inside \pscustom

Denis Girou Denis.Girou at idris.fr
Mon Apr 28 21:50:01 CEST 1997


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------


  Ralf Hetzel <R.Hetzel at physik.tu-dresden.de> transmit today two problems:

  1/ We obviously introduce a stupid bug in pst-grad.tex by suppression of
change of catcode category for @ (it was present in old gradient.tex from
0.93a). This prevent usage of pst-grad.tex for plain TeX users, but doesn't
affect LaTeX ones.

     Correction consist to re-establish these definitions:

......................................................................

\edef\TheAtCode{\the\catcode`\@}
\catcode`\@=11

\pstheader{pst-grad.pro}

......................................................................

\catcode`\@=\TheAtCode\relax
\endinput
%% END pst-grad.tex

     This can be propagated soon in CTAN distribution.


  2/ Ralf Hetzel detect a bug concerning usage of \psbezier inside \pscustom.
Simplifying his test case, we can see that with only:

\documentclass{article}

\usepackage{pstricks}

\begin{document}

\pscustom{%
  \psline(5,1)(12,1)
  \psbezier(12,-1)(2,-3)(1.8,-1)(0.9,2)}

\end{document}

     The code for Bezier curves was completely rewritten by Timothy for the
never released 0.94 version and it's a bug when using \psbezier inside
\pscustom. This doesn't affect usage of \psbezier outside \pscustom.

     I found the following correction (in pstricks.tex):

\def\psbezier at ii{%
\addto at pscode{%
% Modification DG/SR - 28 April 1997 (Pb. inside \pscustom)
%\pst at cp
% Modification DG/SR - end

     It correct the bug and in my tests doesn't seems to add new ones (!) but
I'll be happy if some of you can confirm for there codes (I also verify
http://www.tug.org/applications/PSTricks/Mathematics/Euler.tex from Philippe
Esperet).

     I think it's too earlier to propagate it in CTAN distribution.

D.G.

-----------------------------------------------------------------------------
To [un]subscribe to this list, send mail to pstricks-request at mail.tug.org
Leave the subject line blank and in the body put the line
[un]subscribe <email-address>
For help, put the word "help" in the message body.
To obtain current archive, put the words "get current" in the message body.
-----------------------------------------------------------------------------



More information about the PSTricks mailing list