[pstricks] strange behaviour
Ulrich Bongartz
u.bongartz at freenet.de
Thu Apr 1 19:41:20 CEST 2010
Hi,
I want to put the Text horizontally and vertically centered in the drawn
boxes (Boxes of fixed dimensions - until now my solution). Strangely the
first box in the source (the second highest in output) is correctly centered
the others not. Changing the order, changes the centered line.
If I delete the \begin{center} this line also misplaced. So this is somehow
related to the problem.
I know I could \put any text anywhere, but I would like to know, what is
happening here.
thx in advance
Ulrich
PS: I learned from PSTricks 4te Auflage page 104 that I can set the height
of a parbox, but this is not mentioned in "latex eine Einführung" H Kopka
\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{pstricks-add}
\begin{document}
\begin{center}
\begin{pspicture}(10,6)
\rput(3.5,4.6){\psframebox[framearc=0.25, framesep=5pt]{
\parbox[c][1cm][c]{7cm}{\center{ \small{zentriert}}}}}
\rput(3.5,6){\psframebox[framearc=0.25, framesep=5pt]{
\parbox[c][1cm][c]{7cm}{\center{nicht zentriert}}}}
\rput(3.5,3.2){\psframebox[framearc=0.25, framesep=5pt]{
\parbox[c][1cm][c]{7cm}{\center{auch nicht zentriert}}}}
\rput(3.5,1.8){\psframebox[framearc=0.25, framesep=5pt]{
\parbox[c][1cm][c]{7cm}{\center {erst recht nicht}}}}
\rput(3.5,.4){\psframebox[framearc=0.25, framesep=5pt]{
\parbox[c][1cm][c]{7cm}{\center{siehe 1 3 4 5}}}}
\rput(9,6){\psframebox[framearc=0.25, framesep=5pt]{
\parbox[c][.6cm][c]{3cm}{\tiny{Professor(inn)en\\Post--Docs}}}}
\rput(9,4.6){\psframebox[framearc=0.25, framesep=5pt]{
\parbox[c][.6cm][c]{3cm}{\tiny{Doktorant(inn)en}}}}
\rput(9,3.2){\psframebox[framearc=0.25, framesep=5pt]{
\parbox[c][.6cm][c]{3cm}{\tiny{Studierende}}}}
\rput(9,1.8){\psframebox[framearc=0.25, framesep=5pt]{
\parbox[c][.6cm][c]{3cm}{\tiny{Schüler(innen)}}}}
\rput(9,.4){\psframebox[framearc=0.25, framesep=5pt]{
\parbox[c][.6cm][c]{3cm}{\tiny{Kinder}}}}
\end{pspicture}
\end{center}
\end{document}
More information about the PSTricks
mailing list