Path: utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!agate!shelby!csli!isozaki From: isozaki@csli.Stanford.EDU (Hideki Isozaki) Newsgroups: comp.text.tex Subject: Re: Hierarchical trees (request) Message-ID: <17143@csli.Stanford.EDU> Date: 11 Jan 91 16:41:25 GMT References: Distribution: comp Organization: Center for the Study of Language and Information, Stanford U. Lines: 49 >I'm looking for a macro that will let me draw hierarchical trees in the >style of genealogical, organizational, or parse charts. >I'd like to get You can get my style file by anonymous ftp in sun.soe.clarkson.edu:pub/tex/latex-style/nodeedge.shar. > A > | > -------------------------------- > | | | > B J K It draws direct slanted lines using epic/eepic commands by default, but I think you can draw such a tree with an additional macro definition for \crank as below. Ex. \documentstyle[epic,ecltree]{article} \makeatletter \newdimen\@midY \def\crank#1(#2,#3)(#4,#5){% \@midY=#3\p@\advance\@midY by #5\p@\divide\@midY by 2\relax \edef\@MidY{\expandafter\@RemoveDim\the\@midY}% #1(#2,#3)(#2,\@MidY)(#4,\@MidY)(#4,#5)} \makeatother \begin{document} \drawwith{\crank\drawline} \begin{bundle}{A} \chunk{\begin{bundle}{B} \chunk{C} \chunk{D} \chunk{E} \chunk{I} \end{bundle}} \chunk{J} \chunk{K} \end{bundle} \end{document} Hideki ISOZAKI Stanford Univ. & NTT