GeneralPSTricks: ref-pt of \rput doesn't work for pstricks obj

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
yoyoimut
Posts: 120
Joined: Mon Oct 19, 2009 6:58 am

PSTricks: ref-pt of \rput doesn't work for pstricks obj

Post by yoyoimut »

I notice that

"When the enclosed object is a pstricks object, the reference point of \rput does NOT work."

Code: Select all

\documentclass{article}
\usepackage{pst-node}
\psset{%
unit=2cm,
gridcolor=green,
subgridcolor=lightgray,
gridlabels=5pt,
gridlabelcolor=red,
gridwidth=0.4pt,
subgridwidth=0.2pt
}

%\let\psgrid\relax
\begin{document}


\begin{pspicture}(-2,-2)(2,2)
\psgrid

%changing the ref point to tr, tl, br, etc does NOT affect the position of the enclosed pstricks object.
\rput[tr](0,0){\psframe[linecolor=blue](2,1)}
\end{pspicture}

\end{document}


Thank you in advance.


regards,

Yoyoimut
Last edited by yoyoimut on Tue Sep 07, 2010 12:42 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

PSTricks: ref-pt of \rput doesn't work for pstricks obj

Post by CrazyHorse »

yoyoimut wrote:I notice that

"When the enclosed object is a pstricks object, the reference point of \rput does NOT work."
Graphical objects are defined as a box of dimension zwero
in width and height. The reason why all reference points give
the same results for such objects. You can put it into a
pspicture environment, then they are valid.

Herbert
yoyoimut
Posts: 120
Joined: Mon Oct 19, 2009 6:58 am

PSTricks: ref-pt of \rput doesn't work for pstricks obj

Post by yoyoimut »

yoyoimut wrote:I notice that

"When the enclosed object is a pstricks object, the reference point of \rput does NOT work."
CrazyHorse wrote: Graphical objects are defined as a box of dimension zwero
in width and height. The reason why all reference points give
the same results for such objects. You can put it into a
pspicture environment, then they are valid.

Herbert
Very helpful information.

Thank you.


Yoyoimut
Post Reply