[pstricks] pst-tree

Poul Riis Poul.Riis at skolekom.dk
Thu Nov 21 15:19:23 CET 2013


With the solution below I can change the value of treesep without having
to manually adjust the positions of the texts.

Poul Riis


\documentclass[10pt,a4paper,landscape]{article}
\usepackage[x11names]{xcolor}
\usepackage{pst-tree}

\topmargin=-5cm
\textwidth=27cm
\textheight=20cm
\hoffset=-7cm

\begin{document}

\begin{pspicture}(0,0)(17,18)

\pnode(7,9.5){E2}

\def\psedge#1#2{\ncangle{#2}{#1}}
\psset{armB=3.0, angleB=0, angleA=180, arrows=-, nodesepA=3pt}%

\uput{0pt}[0]{0}(E2){\pstree[treemode=R, treesep=4.0,
levelsep=4.0]{\Tp[name=TA]}{\Tr[name=TB1]{declarative}\pstree[armB=4.0,treemode=R,
treesep=3,
levelsep=5.5]{\Tr[name=TB2]{modality}}{\Tr[name=TC1]{\color{Blue1}yes/no}\Tr[name=TC2]{\color{Blue1}wh-}}}}

\midAB(TC1)(TC2){TC12}
\midAB(TB2)(TC12){TBC12}
\uput{3pt}[90]{0}(TBC12){INTERROGATIVE}
\uput{3pt}[270]{0}(TBC12){TYPE}

\midAB(TB1)(TB2){TB12}
\midAB(TA)(TB12){TAB12}
\uput{3pt}[90]{0}(TAB12){declarative}
\uput{3pt}[270]{0}(TAB12){modality}

%\pscircle*[linecolor=Red2](TB2){1.5pt}
%\pscircle*[linecolor=Red2](TC1){1.5pt}
%\pscircle*[linecolor=Red2](TC2){1.5pt}
%\pscircle*[linecolor=Blue2](TBC12){1.5pt}

\end{pspicture}

\end{document}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20131121/6f5641ac/attachment.html>


More information about the PSTricks mailing list