next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc :: tutorial

tutorial -- convert documentation from tutorial format

Synopsis

Description

Some of the Macaulay2 documentation is written in this format.

i1 : ///-- We can compute $(x+y)^3$ as follows.
     R = QQ[x,y]
     (x+y)^3
     ///

o1 = -- We can compute $(x+y)^3$ as follows.
     R = QQ[x,y]
     (x+y)^3
i2 : tutorial oo

                                            +-----------+
o2 = {We can compute $(x+y)^3$ as follows., |R = QQ[x,y]|}
                                            +-----------+
                                            |(x+y)^3    |
                                            +-----------+

o2 : List
i3 : peek oo

o3 = {PARA{TEX{"We can compute $(x+y)^3$ as follows."}}, TABLE{class =>
     ------------------------------------------------------------------------
     examples, TR{TD{ExampleItem{"R = QQ[x,y]"}}},
     ------------------------------------------------------------------------
     TR{TD{ExampleItem{"(x+y)^3"}}}}}

For the programmer

The object tutorial is a function closure.