[pstricks] vertically centering table in \psframebox
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Tue Jan 20 23:32:37 CET 2004
Patrick Drechsler wrote:
> The text isn't centered vertically. I've already tried playing
> with \vfill(*), \vspace(*) but to no avail. Any ideas?
>
> BTW: The \ncline is a tick to close to the node aa1. Is there a
> way of cutting the arrowlength just a bit?
-> documentation!
Herbert
\documentclass[12pt]{article}
\usepackage{pstcol,pstricks,pst-node}
\newcommand*{\XY}[3][white]{%
\rnode{#2}{%
\psframebox[framearc=.5,fillstyle=solid,fillcolor=#1]{%
\begin{tabular}{c}#3\end{tabular}%
}%
}%
}
\begin{document}
\begin{pspicture}(0,0)(14,10)
\rput(7,9){\XY{A2}{\textbf{fooooooooooo} \\
\rnode{aa1}{barr} \\[2ex] \rnode{aa2}{foooooo}}%
}
\ncline[nodesepA=3pt]{->}{aa1}{aa2}%
\end{pspicture}
\end{document}
More information about the PSTricks
mailing list