Computational markup

In the menus SourceArithmetic, SourceText, SourceTuple and SourceCondition you will find different primitives for computing with integers, strings, tuples and boolean values. For instance, in the following code, the new-important tag defines a new “important tag” as well as a variant in red:

< assign | new-important | < macro | name | < quasi |

<\concat|

<\assign|

<unquote|name>

|

<macro|x|<with|font-series|bold|x>>

>

|

<\assign|

<unquote|<merge|name|-red>>

|

<macro|x|<with|font-series|bold|color|red|x>>

>

>

> > >

Here we use the merge primitive in order to concatenate two strings. The different computational primitives are described in more detail in the corresponding section on the TeXmacs primitives.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".