[Problem] Bug in \uput* macro

Denis Girou Denis.Girou at idris.fr
Wed Mar 24 21:57:26 CET 1999


-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------

  Bob Howlett <bobh at maths.usyd.edu.au> recently report that the \uput* macro
doesn't work (in fact, it doesn't work since PSTricks 97, so seems not heavily 
used!). The code for \uput was completely rewritten in pst-beta.tex in 1994
and \uput* was broken in it. And obviously, it was this code that we used to
build PSTricks 97.

  * 99/03/24 pstricks.tex (97 patch 10): The * convention doesn't work
in the \uput* macro, due to a broken definition in the code of pst-beta.tex
used to build PSTricks 97.
(reported by Bob Howlett <bobh at maths.usyd.edu.au>)

  Correction is very easy:

\def\fileversion{97 patch 10}
\def\filedate{1999/03/24}

% DG/SR modification begin - Mar. 24, 1999 - Patch 10
%\def\uput{\def\pst at par{}\@ifnextchar[{\uput at ii}{\uput at i}}
\def\uput{\def\pst at par{}\pst at ifstar{\@ifnextchar[{\uput at ii}{\uput at i}}} 
% DG/SR modification end

  My test case is:

\documentclass{article}

\usepackage{pstricks}

\makeatletter
\def\uput{\def\pst at par{}\pst at ifstar{\@ifnextchar[{\uput at ii}{\uput at i}}} 
\makeatother

\pagestyle{empty}

\begin{document}

\begin{pspicture}(4,4)
  \psframe(4,4)
  \rput(0,0){Bottom right}
  \rput*(4,0){Bottom left}
  \uput[0](0,3.9){Top right}
  \uput*[0](3.5,4){Top left}
\end{pspicture}

\end{document}

D.G.

-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list