Changes between Version 2 and Version 3 of TreeMagic


Ignore:
Timestamp:
Oct 30, 2011, 3:48:21 PM (6 years ago)
Author:
joerg
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TreeMagic

    v2 v3  
    11== About ==
    22
    3 Tree Magic allows to draw beautiful (tikz) trees within a few seconds
    4 by providing a much simpler syntax than the original tikz library.
     3Tree Magic allows to draw beautiful (Tikz) trees within a few seconds
     4by providing a much simpler syntax than the original Tikz library.
    55
    66For example the tree
     
    1414}}}
    1515
    16 == A simple tree ==
    17  * T
     16== Getting started ==
     17 * To start Tree Magic, simply write
    1818{{{
    19 svn co https://jle.cc/svn/JLatexEditor/trunk JLatexEditor
     19%!begin{tree}
    2020}}}
    21  * build and run:
     21   and press ('''alt+enter'''). This will automatically generate the following code:
    2222{{{
    23 ant runJLatexEditor
     23%!begin{tree}{magic:023916255455191981}
     24%
     25%!end{tree}{magic:023916255455191981}
    2426}}}
     27
     28 * Trees now can simply be written as terms, for example 'f(g(a,b),h(c))'. Then we have
     29{{{
     30%!begin{tree}{magic:023916255455191981}
     31%f(g(a,b),h(c))
     32%!end{tree}{magic:023916255455191981}
     33}}}
     34
     35 * We again press ('''alt+enter''') to invoke Tree Magic,
     36   then the Tikz tree is automatically generated and inserted in the document as follows:
     37{{{
     38%!begin{tree}{magic:023916255455191981}
     39%f(g(a,b),h(c))
     40\node (f) {f}
     41    child { node (g) {g}
     42      child { node (a) {a}
     43    }
     44      child { node (b) {b}
     45    }
     46  }
     47    child { node (h) {h}
     48      child { node (c) {c}
     49    }
     50  };
     51\begin{pgfonlayer}{background}
     52\end{pgfonlayer}
     53
     54%!end{tree}{magic:023916255455191981}
     55}}}
     56
     57   [[Image(http://common.jle.cc/features/tree_simple.png)]]
     58
    2559 * [wiki:Development]