# PSTricks 97, Bug with origin and text?

Harald Kirsch (@home) kir at iitb.fhg.de
Tue Dec 30 12:33:52 CET 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.
-----------------------------------------------------------------------------

Hi there.

A few days ago I installed PST97 on my computer after reading about
it in The LaTeX Graphics Companion'. It works pretty well and I
really like that kind of creating technical drawings as compared
to mousing-around approaches.

For subobjects of a drawing I use the approach to shift the origin
with
\psset{origin={x,y}}
right before drawing the object. This way it is trivial to move the
object as a whole to another place later, if necessary.

However, today I discovered what seems to be a bug. Please try the
following simple file and find that the A' is not placed within
the circle.

-----------------------------------------------------------------
\documentclass{article}
\usepackage{pstricks}
\begin{document}

\begin{pspicture}(0,0)(6,6)
\psgrid[subgriddiv=0]

\psset{origin={-3,-3}}
\cput(0,0){A}            %% The A' will not be in the circle!!
\end{pspicture}

\end{document}
------------------------------------------------------------------

It would be nice to hear of a simple workaround (other than not
using origin=') or get a patch to correct the problem.

While we are at it. In a future release it would be great, if
moving the origin to (3,4) could be done with
\psset{origin={3,4}}
\psset{origin={-3,-4}}
For me it is surprising anyway that the given coordinates for origin
always refer to the original origin' and are not interpreted
relative to the last origin. I like it that way and reckon that a
multiplication with -1 can be included easily.

Thank you very much,
Harald Kirsch
---------------------+----------------------+--------------------------
Harald Kirsch (@home)|                      | Now I rebooted.
kir at iitb.fhg.de      |                      | --- Jerry Pournelle, BYTE

-----------------------------------------------------------------------------
`