![]() |
Computational markup | ![]() |
In the menus Source\(\rightarrow\)Arithmetic, Source\(\rightarrow\)Text, Source\(\rightarrow\)Tuple and Source\(\rightarrow\)Condition 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.