Reference: Difference between revisions

From iMath
Jump to navigation Jump to search
(Page deleted)
 
(114 intermediate revisions by the same user not shown)
Line 1: Line 1:
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 <code>%%ii</code> 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 <code>%%gg</code> 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 <code>%%ii</code> lines if you want to tweak an iFormula. Formulas may also have lines without either <code>%%ii</code> or <code>%%gg</code>, these will not be touched by iMath.
== Commands ==
After the initial <code>%%ii</code>, the following commands are possible:
* <code>READFILE { path/to/file }</code>
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
* <code>FUNCTION { hints, expression, expression }
Declare a user-defined function.

Latest revision as of 18:01, 9 July 2017