[categories] [index] [all (553)] [latest]
Avec le paquetage pst-all (pas besoin de charger color).
\definecolor{macouleur}{rgb}{0.75, 0.75, 1.0}
...
\newcommand{\B}[1]{\Tr{\psframebox{#1}}} % boite
\newcommand{\C}[1]{\Tcircle{#1}} % cercle
\newcommand{\N}[1]{\Tr{#1}} % normal
%\newcommand{\T}[1]{\Ttri{#1}} % triangle
% triangle qui s'accroche par le haut (sous-arbres...)
\newcommand{\T}[2][]{\Tr[ref=t]{\pstribox[#1]{#2}}}
% cercle coloré
\newcommand{\CC}[1]{\Tcircle[fillstyle=solid,fillcolor=macouleur]{#1}}
% syntaxe : \pstree{le père}{les fils}
\pstree{\C{titi}}
{
\B{toto}
\pstree[levelsep=1cm]{\CC{tata}}
{
\B{tutu}
\N{pipo}
\T{tonton}
}
}