Because this is just a blob of LaTeX commands, and a relatively small blob at that, you should be able to seek help from anyone who knows about LaTeX if you can't get your issue dealt with. Have you tried asking at TeX Stack Exchange? http://tex.stackexchange.com/


On Fri, Feb 21, 2014 at 11:13 AM, Xiaomeng Ye <[log in to unmask]> wrote:
Thanks for the quick reply!

Have you tried to put text before and after the image? In my first screen shot, there is a huge gap between the tree graph and the texts. I wonder if the same thing will happen in your MacTex. I am using TexShop for windows. Thanks!

Ye Xiaomeng


On Fri, Feb 21, 2014 at 1:26 PM, Sean Luke <[log in to unmask]> wrote:
I took your code and embedded it in this document:

-------
\documentclass{article}

 \usepackage{epic}     % required by ecltree and fancybox packages
 \usepackage{ecltree}  % to draw the GP trees
 \usepackage{fancybox} % required by \Ovalbox

 % minimum distance between nodes on the same line
 \setlength{\GapWidth}{1em}

 % draw with a thick dashed line, very nice looking
 \thicklines \drawwith{\dottedline{2}}

 % draw an oval and center it with the rule.  You may want to fool with the
 % rule values, though these seem to work quite well for me.  If you make the
 % rule smaller than the text height, then the GP nodes may not line up with
 % each other horizontally quite right, so watch out.
 \newcommand{\gpbox}[1]{\Ovalbox{#1\rule[-.7ex]{0ex}{2.7ex}}}

\begin{document}

\begin{center}
\begin{minipage}[!ht]{1cm}
\begin{bundle}{\gpbox{L}}\chunk{\begin{bundle}{\gpbox{L}}\chunk{\begin{bundle}{\gpbox{L}}\chunk{\begin{bundle}{\gpbox{P}}\chunk{\gpbox{2}}\chunk{\gpbox{1}}\end{bundle}}\end{bundle}}\end{bundle}}\end{bundle}
\end{minipage}
\end{center}

\end{document}
--------


I have attached a PDF showing the result: as you can see, it looks fine.  If you don't get the same result, you may want to look into your latex system (I'm on the latest MacTeX version).

Sean