Changes between Version 7 and Version 8 of TreeMagic


Ignore:
Timestamp:
Oct 30, 2011, 5:53:50 PM (6 years ago)
Author:
stefan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TreeMagic

    v7 v8  
    2121 * To start Tree Magic, simply write
    2222{{{
     23#!tex
    2324%!begin{tree}
    2425}}}
    2526   and press ('''alt+enter'''). This will automatically generate the following code:
    2627{{{
     28#!tex
    2729%!begin{tree}{magic:023916255455191981}
    2830%
     
    3638 Then we have
    3739{{{
     40#!tex
    3841%!begin{tree}{magic:023916255455191981}
    3942%f(g(a,b),h(c))
     
    4447   Then the corresponding Tikz code is generated and inserted in the document:
    4548{{{
     49#!tex
    4650%!begin{tree}{magic:023916255455191981}
    4751%f(g(a,b),h(c))
     
    6569 * Here the whole Latex source code of this example:
    6670{{{
     71#!tex
    6772\documentclass{article}
    6873
     
    101106 * We continue the previous example. To highlight a the nodes {g,a,b}, simply write '''highlight[paint=red](g, a, b)'''
    102107{{{
     108#!tex
    103109%!begin{tree}{magic:023916255455191981}
    104110%f(g(a,b),h(c))
     
    113119 * Of course we can highlight multiple parts of the tree:
    114120{{{
     121#!tex
    115122%!begin{tree}{magic:023916255455191981}
    116123%f(g(a,b),h(c))
     
    131138  * For example,
    132139{{{
     140#!tex
    133141%{$f^2(x)$}({$g_h$}(a,b),{h+3}(c))
    134142%highlight[paint=red](g_h,a,b)
     
    153161    Then the code:
    154162{{{
     163#!tex
    155164%{$f^2(x)$}:root({$g_h$}(a,b),{h+3}(c))
    156165%highlight[paint=red](g_h,a,b)
     
    163172    For example to add an arrow from 'c' to the root, add
    164173{{{
     174#!tex
    165175\draw [->,very thick] (c) to[bend right=80] (root);
    166176}}}
     
    212222
    213223
     224{{{
     225#!java
     226public class Abc {
     227}
     228}}}