[pstricks] Problem with pst-tree and beamer
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Wed Apr 23 18:25:30 CEST 2008
Alan Ristow schrieb:
> When I run the minimal example below I get the following error:
>
> ! Illegal parameter number in definition of \test.
> <to be read again>
> 1
> l.10 \end{frame}
>
> The PSTricks part of the code is copied straight from pst-user.pdf and
> works fine outside of the frame environment -- it is only when I place
> it between \begin{frame} and \end{frame} that the error comes up.
>
> Any ideas?
\documentclass{beamer}
\usepackage{pst-tree}
\begin{document}
\def\psedge#1#2{\ncangle{#2}{#1}}
\begin{frame}
\psset{armB=1cm, levelsep=3cm, treesep=1cm,
angleB=-90, angleA=90, arrows=<-, nodesepA=3pt}
\pstree[radius=2pt]{\Ttri{root}}{\TC* \TC* \TC* \TC*}
\end{frame}
\end{document}
works
Herbert
More information about the PSTricks
mailing list