1

This bit of code generates an undefined control sequence on the last curly brace. What am I doing wrong?

\psset{levelsep=1cm,treesep=.75cm,nodesep=4pt}
\begin{center}

\pstree{\Tr{$z$}}
{
    \pstree{\Tr{$y$}}
    {
        \pstree{\Tr{$w$}}
        {
            \Ttri{A}
            \pstree{\Tr{$x$}} 
            {
                \Ttri{B}
                \Ttri{C}
            }
        }
        \Ttri{D}
    }
    \Ttri{E}
}

\hspace*{0.5in}
into
\hspace*{0.5in}

\pstree{\Tr{$x$}}
{
    \pstree{\Tr{$w$}}%
        {
        \Ttri{A}
        \Ttri{B}
    }
    \pstree{\Tr{$y$}}
        {
            \Ttri{C}
            \pstree{\Tr{$z$}}
            {
                \Ttri{D}
                \Ttri{E}
            }
        }
}

\end{center}
2

Run the file with xetex or load the package auto-pst-pdf and then run it with pdflatex -shell-escape <file>. See also http://tug.org/PSTricks/main.cgi?file=pdf/pdfoutput

  • When I ran the file with XeLaTeX it built seamlessly. Thank you. – Mantas Vidutis Feb 9 '11 at 4:25
2
\usepackage{pst-tree}

If there is still errors, please upload the full (minimal) source file and log file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.