Script: formulas-element
The formulas-element must be contained in a definitions-element
This element loads formulas from an XML-file. The formulas may be in one of three forms:
- image (png,gif,jpg)
- mathml
- latex
All this formulas is available by the PI Formula and they will apear in formulalists, see PI Formula List .
image and latex formulas will be presented as img.
The present version of WXT displays mathml formulas as MathML.
See Formulas for a full description.
<formulas location=""/>
location(mandatory) | The location of the document containg the formulas, absolute or relative to the script (anchor). |
Examples:
<formulas location="myformulas.xml"/>
Example file:
<?xml version="1.0" encoding="UTF-8"?> <formulas> <formula id="f1" type="latex"> <value>\sqrt[3]{x^3 + y^3 \over 2}</value> </formula> <formula id="f21" type="image"> <subtext>Vector length</subtext> <value>vektor1.gif</value> </formula> <formula id="f31" type="mathml"> <subtext>Simple sum</subtext> <value><![CDATA[<math xmlns="http://www.w3.org/1998/Math/MathML"> <semantics> <mrow> <mrow> <mo stretchy="false">∑</mo> <mi>f</mi> </mrow> <mrow> <mo stretchy="false">(</mo> <mi>x</mi> <mo stretchy="false">)</mo> </mrow> </mrow> </semantics> </math>]]> </value> </formula> </formulas>