Reference
It is recommended to always use the iMath menus to create or modify iFormulas. Nevertheless, sometimes it will be necessary to fine-tune equations by editing them directly.
All iMath commands start with the string %%ii
at the beginning of a line, which will be interpreted as a comment by Openoffice. When the document is recalculated, iMath parses the string and generates the formula that is displayed. The generated lines are marked by %%gg
at the end of the line. Editing such a line makes no sense because it will be deleted at the next recalculation! Always modify the %%ii
lines if you want to tweak an iFormula. Formulas may also have lines without either %%ii
or %%gg
, these will not be touched by iMath.
Commands
After the initial %%ii
, the following commands are possible:
READFILE { path/to/file }
Open the given file and parse the iMath commands in this file. This command can be used to put common formulas in a file to re-use them
FUNCTION { hints, expression, expression }
Declare a user-defined function.