![]() |
Computational markup | ![]() |
The following commands can be used for performing dynamic computations (see
progs/source/source-kbd.scm
for the complete list; the same primitives are also available from the menus Source\(\rightarrow\)Arithmetic, Source\(\rightarrow\)Text, Source\(\rightarrow\)Tuple and Source\(\rightarrow\)Condition):
sequential or of two conditions.
exclusive or of two conditions.
sequential and of two conditions.
negation of a condition.
add two numbers or lengths.
subtract two numbers or lengths.
multiply two numbers.
divide two numbers.
integer division and remainder.
concatenate two strings (or tuples).
length of a string or a tuple.
extract a range from a string or a tuple.
display a number in Arabic, roman, Roman, alpha or Alpha (used for instance in enumerations).
current date, possibly formatted.
translate a word from a source language into a destination language (see the dictionaries in $TEXMACS_PATH/langs/natural/dic).
test whether an expression is a tuple.
look up an element of a tuple.
test equality.
test inequality.
comparisons (less, greater, less or equal, greater or equal).
find a file.
insert an if statement with an optional else part.