Graphics, Figures & Tablespstricks - problems with \uput

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
aal
Posts: 4
Joined: Tue Sep 08, 2009 12:05 am

pstricks - problems with \uput

Post by aal »

Hi,

I'm absolutely new to pstricks and have some trouble with the \uput. I played around with it a little bit, but I just can't figure it out. Here is a little bit of the code I wrote:

Code: Select all

\documentclass[12pt,a4paper]{article}
\usepackage{pstricks}

\begin{document}
  \begin{pspicture}(-5,-5)(5,5)
    %\SpecialCoor
    \qdisk(1,1){2pt}
    \uput[ur](1,1){$P_1$}
  \end{pspicture}
\end{document}
Compiling this yields exactly what I expected, but as soon as I take the % in front of \SpecialCoor away, the label "P1" moves to the origin. This will also happen, if I use \usepackage{pstricks-add} instead of \usepackage{pstricks}.
Another thing is that using [45] instead of [ur] doesn't work at all.
Can anyone explain me that?

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: pstricks - problems with \uput

Post by localghost »

The code works fine for me as is. Note that you have to look at the final PS (or PDF) output and not at the DVI file.


Best regards
Thorsten
aal
Posts: 4
Joined: Tue Sep 08, 2009 12:05 am

pstricks - problems with \uput

Post by aal »

Damn! I took for ever to find a solution and it's that simple. Even worse it's one of the first things they have on /PSTricks/main.

Thanks a lot Thorsten!
Post Reply