[pstricks] drawing ncbox* in background

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Sun Sep 28 08:12:55 CEST 2003


Christian Stork schrieb:

> \documentclass{article}
> \usepackage{pstcol,pst-tree}
> \pagestyle{empty}
> \begin{document}
> 
> \pstree{\Tp[name=a]}{\Tr[name=b]{B}\Tr[name=c]{C}}
> \ncbox[fillcolor=red,fillstyle=solid,linearc=.2,linecolor=red]{a}{b}
> 
> \end{document}
> 
> you won't see node a or b...

Define first the nodes with the same command.

Herbert


\documentclass[12pt]{article}
\usepackage{pstcol,pst-tree}
\pagestyle{empty}
\begin{document}

\rput(0,0){%
	\pstree[linestyle=none]%
		{\Tp[name=a]}{\Tr[name=b]{ }\Tr[name=c]{ }}%
}
\ncbox*[linearc=.2,linecolor=red,nodesep=0.5]{a}{b}
\rput(0,0){\pstree{\Tp}{\Tr{B}\Tr{C}}}

\end{document}



-- 
http://www.pstricks.de/




More information about the PSTricks mailing list