Creating TeXmacs documents

TeXmacs documents can be created from the C++ level by using basix/document.hpp.

From the Mathemagix language the interface is provided in basix/texmacs.mmx, and can be used as follows:

Mmx]  
include "basix/texmacs.mmx"
Mmx]  
$color ("blue", $text "Hello")

Hello

Mmx]  
$tm ('block, $tm ('tformat, $tm ('table,
    $tm ('row, $tm ('cell, $text ("x")), $tm ('cell, $text ("y"))),
    $tm ('row, $tm ('cell, $math (1)), $tm ('cell, $math (2))))))

x y

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License. If you don't have this file, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.