Changes between Version 10 and Version 11 of TreeMagic


Ignore:
Timestamp:
Oct 30, 2011, 10:32:25 PM (6 years ago)
Author:
joerg
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TreeMagic

    v10 v11  
    2121 * To start Tree Magic, simply write
    2222{{{
    23 #!tex
    2423%!begin{tree}
    2524}}}
    2625   and press ('''alt+enter'''). This will automatically generate the following code:
    2726{{{
    28 #!tex
    2927%!begin{tree}{magic:023916255455191981}
    3028%
     
    3836 Then we have
    3937{{{
    40 #!tex
    4138%!begin{tree}{magic:023916255455191981}
    4239%f(g(a,b),h(c))
     
    4744   Then the corresponding Tikz code is generated and inserted in the document:
    4845{{{
    49 #!tex
    5046%!begin{tree}{magic:023916255455191981}
    5147%f(g(a,b),h(c))
     
    6965 * Here the whole Latex source code of this example:
    7066{{{
    71 #!tex
    7267\documentclass{article}
    7368
     
    106101 * We continue the previous example. To highlight a the nodes {g,a,b}, simply write '''highlight[paint=red](g, a, b)'''
    107102{{{
    108 #!tex
    109103%!begin{tree}{magic:023916255455191981}
    110104%f(g(a,b),h(c))
     
    119113 * Of course we can highlight multiple parts of the tree:
    120114{{{
    121 #!tex
    122115%!begin{tree}{magic:023916255455191981}
    123116%f(g(a,b),h(c))
     
    138131  * For example,
    139132{{{
    140 #!tex
    141133%{$f^2(x)$}({$g_h$}(a,b),{h+3}(c))
    142134%highlight[paint=red](g_h,a,b)
     
    161153    Then the code:
    162154{{{
    163 #!tex
    164155%{$f^2(x)$}:root({$g_h$}(a,b),{h+3}(c))
    165156%highlight[paint=red](g_h,a,b)
     
    172163    For example to add an arrow from 'c' to the root, add
    173164{{{
    174 #!tex
    175165\draw [->,very thick] (c) to[bend right=80] (root);
    176166}}}
     
    184174    For example:
    185175{{{
    186 #!tex
    187176%f[rectangle,fill=green!50,draw=green!50!black](g(a,b),h(c))
    188177%highlight[paint=red](g,a,b)
     
    194183  * We can provide more Tikz options as follows:
    195184{{{
    196 #!tex
    197185%f([options1] [options2] g [options3](a,b),h(c))
    198186}}}
    199187  which results in the following options being passed to child 'g':
    200188{{{
    201 #!tex
    202189... [options1] child [options2] { node [options3] (g) {g} ...
    203190}}}
    204191For example:
    205192{{{
    206 #!tex
    207193%f( [] [grow=180] g [rectangle,fill=green!50,draw=green!50!black] (a,b),h(c))
    208194}}}
    209195  results in the Tikz code:
    210196{{{
    211 #!tex
    212197\node (f) {f}
    213198    []child[grow=180] { node[rectangle,fill=green!50,draw=green!50!black] (g) {g}