![]() |
Functional operators | ![]() |
Functional operators are used for computational purposes during the typesetting phase, such as increasing counters, localizing strings like “theorem” and so on. A fundamental set of basic functional operators are built-in primitives. New functional operators can easily be added using the extern primitive. Functional operators operate on six main types of arguments: strings, numbers, lengths, booleans, tuples and colors. Some operators are overloaded, so that they can be used for several types. Their implementation can be found in
Typeset/Env/env_exec.cpp
(the methods edit_env_rep::exec_plus_minus, edit_env_rep::exec_merge, etc.).