Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

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

share|improve this answer
    
When I ran the file with XeLaTeX it built seamlessly. Thank you. –  mvid Feb 9 '11 at 4:25
add comment
\usepackage{pst-tree}

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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