mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-19725 latest dragmath 0.7.8.1 imported
This commit is contained in:
parent
8f2fab88b9
commit
aef0bc4830
@ -1,30 +1,30 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - License</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<span style=" color: #000099; font-size: x-large; font-family: Arial;"><strong>DragMath copyright information</strong></span>
|
||||
|
||||
<span style=" font-size: small; font-family: Arial;">
|
||||
|
||||
<p>DragMath is licensed under the GNU General Public License (GPL) (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)
|
||||
</p><p>
|
||||
All source code in this package is written by <a href="http://www.abillingsley.co.uk">Alex Billingsley</a> except the libraries used. The copyright information for the libaries is included below:</p>
|
||||
<br>
|
||||
<p>
|
||||
<h4>JDOM<br> <a href="http://www.jdom.org">http://www.jdom.org</a></h4>
|
||||
JDOM is available under an Apache-style open source license, with the acknowledgment clause removed. This license is among the least restrictive license available, enabling developers to use JDOM in creating new products without requiring them to release their own products as open source. This is the license model used by the Apache Project, which created the Apache server. The license is available at the top of every source file and in LICENSE.txt in the root of the distribution.
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h4>JEP<br><a href="https://sourceforge.net/projects/jep/">https://sourceforge.net/projects/jep/</a></h4>
|
||||
JEP is licensed under the GNU General Public License (GPL) (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)</p>
|
||||
<p>
|
||||
<br>
|
||||
<h4>glyFX Common Toolbar Set Icons<br> <a href="http://www.glyfx.com">http://www.glyfx.com</a></h4>
|
||||
Icons used in software, license found at; <a href="http://www.glyfx.com/license-toolbar.html">http://www.glyfx.com/license-toolbar.html</a></p>
|
||||
</span>
|
||||
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - License</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<span style=" color: #000099; font-size: x-large; font-family: Arial;"><strong>DragMath copyright information</strong></span>
|
||||
|
||||
<span style=" font-size: small; font-family: Arial;">
|
||||
|
||||
<p>DragMath is licensed under the GNU General Public License (GPL) (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)
|
||||
</p><p>
|
||||
All source code in this package is written by <a href="http://www.alexbillingsley.co.uk">Alex Billingsley</a> except the libraries used. The copyright information for the libaries is included below:</p>
|
||||
<br>
|
||||
<p>
|
||||
<h4>JDOM<br> <a href="http://www.jdom.org">http://www.jdom.org</a></h4>
|
||||
JDOM is available under an Apache-style open source license, with the acknowledgment clause removed. This license is among the least restrictive license available, enabling developers to use JDOM in creating new products without requiring them to release their own products as open source. This is the license model used by the Apache Project, which created the Apache server. The license is available at the top of every source file and in LICENSE.txt in the root of the distribution.
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h4>JEP<br><a href="https://sourceforge.net/projects/jep/">https://sourceforge.net/projects/jep/</a></h4>
|
||||
JEP is licensed under the GNU General Public License (GPL) (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)</p>
|
||||
<p>
|
||||
<br>
|
||||
<h4>glyFX Common Toolbar Set Icons<br> <a href="http://www.glyfx.com">http://www.glyfx.com</a></h4>
|
||||
Icons used in software, license found at; <a href="http://www.glyfx.com/license-toolbar.html">http://www.glyfx.com/license-toolbar.html</a></p>
|
||||
</span>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -57,7 +57,7 @@ SoureForge.net Project:<a href="http://sourceforge.net/projects/dragmath">http:/
|
||||
</dt>
|
||||
<br>
|
||||
<br>
|
||||
<dt><b>applet/classes/</b>
|
||||
<dt><b>applet/</b>
|
||||
<dl>
|
||||
<dt><b>formats/</b>
|
||||
<dd>Export formats</dd>
|
||||
|
@ -12,6 +12,16 @@ DragMath - Version History
|
||||
<font size=3>
|
||||
<br>
|
||||
|
||||
<b>DragMath 0.7.8.1 released 06/07/2009</b>
|
||||
<p>
|
||||
Bugs fixed:
|
||||
</p>
|
||||
<ol>
|
||||
<li>Error with library file locations (not fixed in 0.7.8)</li>
|
||||
<li>Error with XML Parser</li>
|
||||
</ol>
|
||||
<br>
|
||||
|
||||
<b>DragMath 0.7.8 released 06/06/2009</b>
|
||||
<p>
|
||||
New Languages:
|
||||
|
Binary file not shown.
BIN
lib/dragmath/applet/DragMath.jar
Normal file
BIN
lib/dragmath/applet/DragMath.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,20 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - About DragMath</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<p><h2><span style=" color: #000099;"><strong>About DragMath</strong></span></h2></p>
|
||||
|
||||
<p>
|
||||
DragMath is a simple "drag and drop" equation editor for mathematics. Accepting certain traditional mathematical conventions, the user can build a mathematical expression. This expression can be exported in a number of different formats. DragMath is a simple Java applet, and could be incorporated into web-based applications or other Java applications.
|
||||
</p>
|
||||
<p>
|
||||
DragMath started as a final-year University project at the <a href ="http://www.bham.ac.uk/">University of Birmingham<a/> by <a href="http://www.abillingsley.co.uk">Alex Billingsley</a> under the supervision of <a href ="http://web.mat.bham.ac.uk/C.J.Sangwin/">Chris Sangwin</a>. It's main application is therefore directed toward an educational one.
|
||||
</p>
|
||||
|
||||
</font>
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - About DragMath</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<p><h2><span style=" color: #000099;"><strong>About DragMath</strong></span></h2></p>
|
||||
|
||||
<p>
|
||||
DragMath is a simple "drag and drop" equation editor for mathematics. Accepting certain traditional mathematical conventions, the user can build a mathematical expression. This expression can be exported in a number of different formats. DragMath is a simple Java applet, and could be incorporated into web-based applications or other Java applications.
|
||||
</p>
|
||||
<p>
|
||||
DragMath started as a final-year University project at the <a href ="http://www.bham.ac.uk/">University of Birmingham<a/> by <a href="http://www.abillingsley.co.uk">Alex Billingsley</a> under the supervision of <a href ="http://web.mat.bham.ac.uk/C.J.Sangwin/">Chris Sangwin</a>. It's main application is therefore directed toward an educational one.
|
||||
</p>
|
||||
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
@ -1,32 +1,32 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - License</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style="color: #000099;"><strong>DragMath copyright information</strong></span></h2>
|
||||
|
||||
<p>DragMath is licensed under the GNU General Public License (GPL) (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)
|
||||
</p><p>
|
||||
All source code in this package is written by <a href="http://www.abillingsley.co.uk">Alex Billingsley</a> except the libraries used. The copyright information for the libaries is included below:</p>
|
||||
<br>
|
||||
<p>
|
||||
<h4>JDOM<br> <a href="http://www.jdom.org">http://www.jdom.org</a></h4>
|
||||
JDOM is available under an Apache-style open source license, with the acknowledgment clause removed. This license is among the least restrictive license available, enabling developers to use JDOM in creating new products without requiring them to release their own products as open source. This is the license model used by the Apache Project, which created the Apache server. The license is available at the top of every source file and in LICENSE.txt in the root of the distribution.
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h4>JEP<br><a href="https://sourceforge.net/projects/jep/">https://sourceforge.net/projects/jep/</a></h4>
|
||||
JEP is licensed under the GNU General Public License (GPL) (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)</p>
|
||||
<p>
|
||||
<br>
|
||||
<h4>glyFX Common Toolbar Set Icons<br> <a href="http://www.glyfx.com">http://www.glyfx.com</a></h4>
|
||||
Icons used in software, license found at; <a href="http://www.glyfx.com/license-toolbar.html">http://www.glyfx.com/license-toolbar.html</a></p>
|
||||
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - License</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style="color: #000099;"><strong>DragMath copyright information</strong></span></h2>
|
||||
|
||||
<p>DragMath is licensed under the GNU General Public License (GPL) (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)
|
||||
</p><p>
|
||||
All source code in this package is written by <a href="http://www.abillingsley.co.uk">Alex Billingsley</a> except the libraries used. The copyright information for the libaries is included below:</p>
|
||||
<br>
|
||||
<p>
|
||||
<h4>JDOM<br> <a href="http://www.jdom.org">http://www.jdom.org</a></h4>
|
||||
JDOM is available under an Apache-style open source license, with the acknowledgment clause removed. This license is among the least restrictive license available, enabling developers to use JDOM in creating new products without requiring them to release their own products as open source. This is the license model used by the Apache Project, which created the Apache server. The license is available at the top of every source file and in LICENSE.txt in the root of the distribution.
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h4>JEP<br><a href="https://sourceforge.net/projects/jep/">https://sourceforge.net/projects/jep/</a></h4>
|
||||
JEP is licensed under the GNU General Public License (GPL) (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)</p>
|
||||
<p>
|
||||
<br>
|
||||
<h4>glyFX Common Toolbar Set Icons<br> <a href="http://www.glyfx.com">http://www.glyfx.com</a></h4>
|
||||
Icons used in software, license found at; <a href="http://www.glyfx.com/license-toolbar.html">http://www.glyfx.com/license-toolbar.html</a></p>
|
||||
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,85 +1,91 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Running applet in web browser</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Running applet in web browser</strong></span></h2>
|
||||
|
||||
<p>
|
||||
Details are given on the file structure of the required files, and <APPLET> tag to enable the applet to run in a web browser.
|
||||
</p><p>
|
||||
The applet currently requires Java Runtime Environment (JRE) 1.4 or higher to run, which can be obtained from <A href="http://www.java.com">www.java.com</A>
|
||||
</p><p>
|
||||
The recommended file structure is:
|
||||
</p>
|
||||
|
||||
<dl>
|
||||
<dd>applet.html</dd>
|
||||
<br>
|
||||
<dd>\dragmath</dd>
|
||||
<br>
|
||||
<dl>
|
||||
<dd>\Display</dd>
|
||||
<dl>
|
||||
<dd>MainApplet.class</dd>
|
||||
</dl>
|
||||
<br>
|
||||
<dd>\lang</dd>
|
||||
<dl>
|
||||
<dd>en.xml</dd>
|
||||
</dl>
|
||||
<br>
|
||||
<dd>\formats</dd>
|
||||
<dl>
|
||||
<dd>Maple.xml</dd>
|
||||
<dd>Latex.xml</dd>
|
||||
<dd>MathML.xml</dd>
|
||||
<dd>Maxima.xml</dd>
|
||||
</dl>
|
||||
<br>
|
||||
<dd>AbsoluteLayout.jar</dd>
|
||||
<dd>swing-layouts-1.0.jar</dd>
|
||||
<dd>jdom.jar</dd>
|
||||
<dd>jep.jar</dd>
|
||||
<dd>Project.jar</dd>
|
||||
</dl>
|
||||
</dl>
|
||||
<br>
|
||||
Using this structure the following <APPLET> tag should be used:
|
||||
</p>
|
||||
<p>
|
||||
<STRONG>
|
||||
<FONT color=#800080><applet</FONT>
|
||||
name=</STRONG>
|
||||
<FONT color=#0000ff>"dragmath"</FONT>
|
||||
<STRONG>codebase=</STRONG><FONT
|
||||
color=#0000ff>"classes"</FONT>
|
||||
<STRONG>code=</STRONG>
|
||||
<FONT color=#0000ff>"Display.MainApplet.class"</FONT>
|
||||
<STRONG>archive=</STRONG>
|
||||
<FONT color=#0000ff>"Project.jar,AbsoluteLayout.jar,swing-layout-1.0.jar,,jdom.jar,,jep.jar"</FONT>
|
||||
<STRONG> width=</STRONG>
|
||||
<FONT color=#0000ff>540</FONT>
|
||||
<STRONG> height=</STRONG>
|
||||
<FONT color=#0000ff>300</FONT>
|
||||
<STRONG>><BR>
|
||||
<FONT color=#800080><param</FONT>
|
||||
name=</STRONG>
|
||||
<FONT color=#0000ff>language </FONT>
|
||||
<STRONG>value=</STRONG>
|
||||
<FONT color=#0000ff>"en"</FONT>
|
||||
<STRONG> ><BR>
|
||||
<FONT color=#800080></applet ></FONT>
|
||||
</STRONG>
|
||||
</p>
|
||||
|
||||
All of the .jar files in the \dragmath directory require digitally signing. A tutorial on how to do this can be viewed at,<br>
|
||||
<A href="http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html#example">http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html#example</A>
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Running applet in web browser</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Running applet in web browser</strong></span></h2>
|
||||
|
||||
<p>
|
||||
Details are given on the file structure of the required files, and <APPLET> tag to enable the applet to run in a web browser.
|
||||
</p><p>
|
||||
The applet currently requires Java Runtime Environment (JRE) 1.4 or higher to run, which can be obtained from <A href="http://www.java.com">www.java.com</A>
|
||||
</p><p>
|
||||
The recommended file structure is:
|
||||
</p>
|
||||
|
||||
<dl>
|
||||
<dd>applet.html</dd>
|
||||
<br>
|
||||
<dd>\dragmath</dd>
|
||||
<br>
|
||||
<dl>
|
||||
<dd>\Display</dd>
|
||||
<dl>
|
||||
<dd>MainApplet.class</dd>
|
||||
</dl>
|
||||
<br>
|
||||
<dd>\lang</dd>
|
||||
<dl>
|
||||
<dd>en.xml</dd>
|
||||
</dl>
|
||||
<br>
|
||||
<dd>\formats</dd>
|
||||
<dl>
|
||||
<dd>Maple.xml</dd>
|
||||
<dd>Latex.xml</dd>
|
||||
<dd>MathML.xml</dd>
|
||||
<dd>Maxima.xml</dd>
|
||||
</dl>
|
||||
<br>
|
||||
<dd>\lib</dd>
|
||||
<dl>
|
||||
<dd>AbsoluteLayout.jar</dd>
|
||||
<dd>swing-layouts-1.0.jar</dd>
|
||||
<dd>jdom.jar</dd>
|
||||
<dd>jep.jar</dd>
|
||||
<dd>Project.jar</dd>
|
||||
</dl>
|
||||
<br>
|
||||
<dd>Config.xml</dd>
|
||||
<dd>DragMath.jar</dd>
|
||||
</dl>
|
||||
</dl>
|
||||
<br>
|
||||
Using this structure the following <APPLET> tag should be used:
|
||||
</p>
|
||||
<p>
|
||||
<STRONG>
|
||||
<FONT color=#800080><applet</FONT>
|
||||
name=</STRONG>
|
||||
<FONT color=#0000ff>"dragmath"</FONT>
|
||||
<STRONG>codebase=</STRONG><FONT
|
||||
color=#0000ff>"dragmath"</FONT>
|
||||
<STRONG>code=</STRONG>
|
||||
<FONT color=#0000ff>"Display.MainApplet.class"</FONT>
|
||||
<STRONG>archive=</STRONG>
|
||||
<FONT color=#0000ff>"DragMath.jar"</FONT>
|
||||
<STRONG> width=</STRONG>
|
||||
<FONT color=#0000ff>540</FONT>
|
||||
<STRONG> height=</STRONG>
|
||||
<FONT color=#0000ff>300</FONT>
|
||||
<STRONG>><BR>
|
||||
<FONT color=#800080><param</FONT>
|
||||
name=</STRONG>
|
||||
<FONT color=#0000ff>language </FONT>
|
||||
<STRONG>value=</STRONG>
|
||||
<FONT color=#0000ff>"en"</FONT>
|
||||
<STRONG> ><BR>
|
||||
<FONT color=#800080></applet ></FONT>
|
||||
</STRONG>
|
||||
</p>
|
||||
|
||||
All of the .jar files in the \dragmath directory require digitally signing. A tutorial on how to do this can be viewed at,<br>
|
||||
<A href="http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html#example">http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html#example</A>
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,209 +1,209 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Creating complex expressions</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Creating complex expressions</strong></span></h2>
|
||||
|
||||
<p>
|
||||
To apply an object to multiple objects, you will need to select the multiple objects and then click on the object to apply in the toolbar. Selection is performed as it is in any program, by using the mouse to highlight the desired area.
|
||||
</p>
|
||||
<p>
|
||||
Operators and functions can be entered into text boxes using the keyboard with the following syntax:
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<table border="1">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Syntax</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Addition</td>
|
||||
<td>+</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Multiplication</td>
|
||||
<td>*</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Division</td>
|
||||
<td>/</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Greater than</td>
|
||||
<td>></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Less than</td>
|
||||
<td><</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Equal</td>
|
||||
<td>=<br>==</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Less than or Equal</td>
|
||||
<td><=</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Greater than or Equal</td>
|
||||
<td>>=</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Power</td>
|
||||
<td>^</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sine</td>
|
||||
<td>sin(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cosine</td>
|
||||
<td>cos(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tangent</td>
|
||||
<td>tan(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Arc Sine</td>
|
||||
<td>asin(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Arc Cosine</td>
|
||||
<td>acos(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Arc Tangent</td>
|
||||
<td>atan(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Hyperbolic Sine</td>
|
||||
<td>sinh(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Hyperbolic Cosine</td>
|
||||
<td>cosh(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Hyperbolic Tangent</td>
|
||||
<td>tanh(x)</td>
|
||||
</tr>
|
||||
<td>Inverse Hyperbolic Sine</td>
|
||||
<td>asinh(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Inverse Hyperbolic Cosine</td>
|
||||
<td>acosh(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Inverse Hyperbolic Tangent</td>
|
||||
<td>atanh(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Natural Logarithm</td>
|
||||
<td>ln(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Logarithm</td>
|
||||
<td>log(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Exponential</td>
|
||||
<td>exp(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Absolute Value</td>
|
||||
<td>abs(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Square Root</td>
|
||||
<td>sqrt(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Union</td>
|
||||
<td>union(a,b)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Intersection</td>
|
||||
<td>intersection(a,b)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Determinant</td>
|
||||
<td>det(a)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Trace</td>
|
||||
<td>trace(a)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Subset</td>
|
||||
<td>subset(a,b)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Integral</td>
|
||||
<td>integrate(f,x)<br>
|
||||
int(f,x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Definite Integral</td>
|
||||
<td>integrate(f,x,a,b)<br>
|
||||
int(f,x,a,b)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Differential</td>
|
||||
<td>diff(f,x)</td>
|
||||
</tr>
|
||||
<td>Sum</td>
|
||||
<td>sum(n^2,n,1,10)</td>
|
||||
</tr>
|
||||
<td>Product</td>
|
||||
<td>product(n^2,n,1,10)</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>
|
||||
Once the box that you have been typing in has been left then the text is turned into templates automatically for you.
|
||||
</p>
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>How to use layout templates</b>
|
||||
</font>
|
||||
|
||||
<p>
|
||||
There are special templates called layout templates, beause they each take a unique layout. These are:<br>
|
||||
Fraction<br>
|
||||
Square Root<br>
|
||||
N-th Root<br>
|
||||
Subscript<br>
|
||||
Superscript<br>
|
||||
Matrix<br>
|
||||
Integral<br>
|
||||
Differential<br>
|
||||
Product<br>
|
||||
Sum<br>
|
||||
Limit<br>
|
||||
Evaluate at a point<br>
|
||||
Grouping (round brackets, curly brackets, square brackets, modulus)<br>
|
||||
</p>
|
||||
<p>
|
||||
These layout templates can be used in exactly the same way as the other math templates.
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>How to add symbols</b>
|
||||
</font>
|
||||
<p>
|
||||
Symbols such as greek letters are added by clicking in the box you wish to insert the symbol, and then clicking on the symbol in the toolbar.
|
||||
</p>
|
||||
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Creating complex expressions</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Creating complex expressions</strong></span></h2>
|
||||
|
||||
<p>
|
||||
To apply an object to multiple objects, you will need to select the multiple objects and then click on the object to apply in the toolbar. Selection is performed as it is in any program, by using the mouse to highlight the desired area.
|
||||
</p>
|
||||
<p>
|
||||
Operators and functions can be entered into text boxes using the keyboard with the following syntax:
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<table border="1">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Syntax</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Addition</td>
|
||||
<td>+</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Multiplication</td>
|
||||
<td>*</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Division</td>
|
||||
<td>/</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Greater than</td>
|
||||
<td>></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Less than</td>
|
||||
<td><</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Equal</td>
|
||||
<td>=<br>==</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Less than or Equal</td>
|
||||
<td><=</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Greater than or Equal</td>
|
||||
<td>>=</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Power</td>
|
||||
<td>^</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sine</td>
|
||||
<td>sin(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cosine</td>
|
||||
<td>cos(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tangent</td>
|
||||
<td>tan(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Arc Sine</td>
|
||||
<td>asin(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Arc Cosine</td>
|
||||
<td>acos(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Arc Tangent</td>
|
||||
<td>atan(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Hyperbolic Sine</td>
|
||||
<td>sinh(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Hyperbolic Cosine</td>
|
||||
<td>cosh(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Hyperbolic Tangent</td>
|
||||
<td>tanh(x)</td>
|
||||
</tr>
|
||||
<td>Inverse Hyperbolic Sine</td>
|
||||
<td>asinh(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Inverse Hyperbolic Cosine</td>
|
||||
<td>acosh(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Inverse Hyperbolic Tangent</td>
|
||||
<td>atanh(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Natural Logarithm</td>
|
||||
<td>ln(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Logarithm</td>
|
||||
<td>log(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Exponential</td>
|
||||
<td>exp(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Absolute Value</td>
|
||||
<td>abs(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Square Root</td>
|
||||
<td>sqrt(x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Union</td>
|
||||
<td>union(a,b)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Intersection</td>
|
||||
<td>intersection(a,b)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Determinant</td>
|
||||
<td>det(a)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Trace</td>
|
||||
<td>trace(a)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Subset</td>
|
||||
<td>subset(a,b)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Integral</td>
|
||||
<td>integrate(f,x)<br>
|
||||
int(f,x)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Definite Integral</td>
|
||||
<td>integrate(f,x,a,b)<br>
|
||||
int(f,x,a,b)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Differential</td>
|
||||
<td>diff(f,x)</td>
|
||||
</tr>
|
||||
<td>Sum</td>
|
||||
<td>sum(n^2,n,1,10)</td>
|
||||
</tr>
|
||||
<td>Product</td>
|
||||
<td>product(n^2,n,1,10)</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>
|
||||
Once the box that you have been typing in has been left then the text is turned into templates automatically for you.
|
||||
</p>
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>How to use layout templates</b>
|
||||
</font>
|
||||
|
||||
<p>
|
||||
There are special templates called layout templates, beause they each take a unique layout. These are:<br>
|
||||
Fraction<br>
|
||||
Square Root<br>
|
||||
N-th Root<br>
|
||||
Subscript<br>
|
||||
Superscript<br>
|
||||
Matrix<br>
|
||||
Integral<br>
|
||||
Differential<br>
|
||||
Product<br>
|
||||
Sum<br>
|
||||
Limit<br>
|
||||
Evaluate at a point<br>
|
||||
Grouping (round brackets, curly brackets, square brackets, modulus)<br>
|
||||
</p>
|
||||
<p>
|
||||
These layout templates can be used in exactly the same way as the other math templates.
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>How to add symbols</b>
|
||||
</font>
|
||||
<p>
|
||||
Symbols such as greek letters are added by clicking in the box you wish to insert the symbol, and then clicking on the symbol in the toolbar.
|
||||
</p>
|
||||
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,73 +1,73 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Setting up DragMath CVS in NetBeans</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Setting up DragMath CVS in NetBeans</strong></span></h2>
|
||||
|
||||
<p>
|
||||
Below are the instructions on how to get active as a developer of DragMath and set up NetBeans with the DragMath code versioning system (CVS).</p>
|
||||
<p>
|
||||
1. Install NetBeans<br>
|
||||
2. Get source code from DragMath CVS repository<br>
|
||||
3. Update and Commiting your local source code copy
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3><b>
|
||||
1. Install NetBeans
|
||||
</b></font>
|
||||
<br>
|
||||
<p>
|
||||
NetBeans is the integrated development environment (IDE) used for DragMath.
|
||||
It is open source and can be downloaded from http://www.netbeans.org.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3><b>
|
||||
2. Get source code from DragMath CVS repository
|
||||
</b></font>
|
||||
<p>
|
||||
Start NetBeans and do the following to get the DragMath source code:<br>
|
||||
<p>
|
||||
1. File -> New Project
|
||||
</p><p>
|
||||
2. Choose the 'General' category, and then 'Java Application' under Projects, then click Next.
|
||||
</p><p>
|
||||
3. Set the Project Name as "ddma". Click Browse to choose the location where you would like the code stored. Then click Next.
|
||||
</p><p>
|
||||
4. CVS -> Checkout. The click Edit.
|
||||
</p><p>
|
||||
5. Fill in the location information identifying the DragMath CVS repository and click OK.<br>
|
||||
<b>Access Method:</b> pserver for anonymous, ext for developer accounts<br>
|
||||
<b>User:</b> "anonymous" or your DragMath developer account at SourceForge<br>
|
||||
<b>Host:</b> dragmath.cvs.sourceforge.net<br>
|
||||
<b>Repository Path:</b> /cvsroot/dragmath
|
||||
</p><p>
|
||||
6. Enter your password, none for anonymous login, then click Next
|
||||
</p><p>
|
||||
7. Set the Module as "ddma", and the Local Folder to the same location the Project was created. Then click Finish.
|
||||
</p><p>
|
||||
8. Once the source code has been downloaded, click Close to the popup message about opening the project.
|
||||
</p><p>
|
||||
9. The different packages containing the source code can now be seen in the projects window. The package 'ddma' containing the Main.java class can be deleted, as it was created for the new Project and is not part of the DragMath source code.
|
||||
</p><p>
|
||||
10. The libraries used by DragMath must now be added to the Project. Right click on Libraries in the Project window, and go to 'Add JAR/Folder...'. Navigate to the ddma -> lib folder and add all the .jar files from this folder.
|
||||
</p><p>
|
||||
11. The code is now ready to work on.
|
||||
</p>
|
||||
<br>
|
||||
<font size=3><b>
|
||||
3. Update and Commiting your local source code copy
|
||||
</b></font>
|
||||
<p>
|
||||
The code can be updated and commited using the Update and Commit options under the CVS menu in NetBeans.
|
||||
</p>
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Setting up DragMath CVS in NetBeans</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Setting up DragMath CVS in NetBeans</strong></span></h2>
|
||||
|
||||
<p>
|
||||
Below are the instructions on how to get active as a developer of DragMath and set up NetBeans with the DragMath code versioning system (CVS).</p>
|
||||
<p>
|
||||
1. Install NetBeans<br>
|
||||
2. Get source code from DragMath CVS repository<br>
|
||||
3. Update and Commiting your local source code copy
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3><b>
|
||||
1. Install NetBeans
|
||||
</b></font>
|
||||
<br>
|
||||
<p>
|
||||
NetBeans is the integrated development environment (IDE) used for DragMath.
|
||||
It is open source and can be downloaded from http://www.netbeans.org.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3><b>
|
||||
2. Get source code from DragMath CVS repository
|
||||
</b></font>
|
||||
<p>
|
||||
Start NetBeans and do the following to get the DragMath source code:<br>
|
||||
<p>
|
||||
1. File -> New Project
|
||||
</p><p>
|
||||
2. Choose the 'General' category, and then 'Java Application' under Projects, then click Next.
|
||||
</p><p>
|
||||
3. Set the Project Name as "ddma". Click Browse to choose the location where you would like the code stored. Then click Next.
|
||||
</p><p>
|
||||
4. CVS -> Checkout. The click Edit.
|
||||
</p><p>
|
||||
5. Fill in the location information identifying the DragMath CVS repository and click OK.<br>
|
||||
<b>Access Method:</b> pserver for anonymous, ext for developer accounts<br>
|
||||
<b>User:</b> "anonymous" or your DragMath developer account at SourceForge<br>
|
||||
<b>Host:</b> dragmath.cvs.sourceforge.net<br>
|
||||
<b>Repository Path:</b> /cvsroot/dragmath
|
||||
</p><p>
|
||||
6. Enter your password, none for anonymous login, then click Next
|
||||
</p><p>
|
||||
7. Set the Module as "ddma", and the Local Folder to the same location the Project was created. Then click Finish.
|
||||
</p><p>
|
||||
8. Once the source code has been downloaded, click Close to the popup message about opening the project.
|
||||
</p><p>
|
||||
9. The different packages containing the source code can now be seen in the projects window. The package 'ddma' containing the Main.java class can be deleted, as it was created for the new Project and is not part of the DragMath source code.
|
||||
</p><p>
|
||||
10. The libraries used by DragMath must now be added to the Project. Right click on Libraries in the Project window, and go to 'Add JAR/Folder...'. Navigate to the ddma -> lib folder and add all the .jar files from this folder.
|
||||
</p><p>
|
||||
11. The code is now ready to work on.
|
||||
</p>
|
||||
<br>
|
||||
<font size=3><b>
|
||||
3. Update and Commiting your local source code copy
|
||||
</b></font>
|
||||
<p>
|
||||
The code can be updated and commited using the Update and Commit options under the CVS menu in NetBeans.
|
||||
</p>
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,47 +1,47 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Editing an expression</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Editing an expression</strong></span></h2>
|
||||
|
||||
<p>
|
||||
Basic editing options are supplied to edit the expression:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><p>
|
||||
Select - Selection is performed similar to any program, by dragging the mouse to highlight the desired area. Objects can also be selected by double clicking on them. You can select all the objects on the workspace by using Select All on the menu, or Ctrl+A on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Cut – Select the desired area to cut, then either click the Cut button or use Ctrl+X on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Copy – Select the desired area to copy, then either click the Copy button or use Ctrl+C on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Paste – Once a selection has been copied, it can be pasted into any box, by clicking on the box to select it, and then either clicking the Paste button or using Ctrl+V on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Delete – Delete is performed by selecting the area to delete and pressing delete on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Undo – You can perform an undo by clicking the Undo button
|
||||
</p>
|
||||
<li><p>
|
||||
Redo – You can perform a redo by clicking the Redo button
|
||||
</p>
|
||||
<li><p>
|
||||
Open – Saved expressions can be opened from a file using the Open button
|
||||
</p>
|
||||
<li><p>
|
||||
Save – Expressions can be saved to a file using the Save button
|
||||
</p>
|
||||
</ul>
|
||||
</font>
|
||||
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Editing an expression</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Editing an expression</strong></span></h2>
|
||||
|
||||
<p>
|
||||
Basic editing options are supplied to edit the expression:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><p>
|
||||
Select - Selection is performed similar to any program, by dragging the mouse to highlight the desired area. Objects can also be selected by double clicking on them. You can select all the objects on the workspace by using Select All on the menu, or Ctrl+A on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Cut – Select the desired area to cut, then either click the Cut button or use Ctrl+X on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Copy – Select the desired area to copy, then either click the Copy button or use Ctrl+C on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Paste – Once a selection has been copied, it can be pasted into any box, by clicking on the box to select it, and then either clicking the Paste button or using Ctrl+V on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Delete – Delete is performed by selecting the area to delete and pressing delete on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Undo – You can perform an undo by clicking the Undo button
|
||||
</p>
|
||||
<li><p>
|
||||
Redo – You can perform a redo by clicking the Redo button
|
||||
</p>
|
||||
<li><p>
|
||||
Open – Saved expressions can be opened from a file using the Open button
|
||||
</p>
|
||||
<li><p>
|
||||
Save – Expressions can be saved to a file using the Save button
|
||||
</p>
|
||||
</ul>
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,16 +1,16 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation</title>
|
||||
</head>
|
||||
|
||||
|
||||
<frameset cols="330,*">
|
||||
|
||||
<frame src="navframe.html">
|
||||
<frame src="simple.html"
|
||||
name="showframe">
|
||||
|
||||
</frameset>
|
||||
|
||||
|
||||
</html>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation</title>
|
||||
</head>
|
||||
|
||||
|
||||
<frameset cols="330,*">
|
||||
|
||||
<frame src="navframe.html">
|
||||
<frame src="simple.html"
|
||||
name="showframe">
|
||||
|
||||
</frameset>
|
||||
|
||||
|
||||
</html>
|
||||
|
@ -1,49 +1,49 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Integrations</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Integrations</strong></span></h2>
|
||||
|
||||
<p>
|
||||
DragMath has been successfully integrated with a number of different systems. The main method used for extracting the expression in the desired format is by using the getMathExpression() method called from JavaScript within a web page. This method returns the expression in the format specified.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3>
|
||||
<b><a href ="http://www.moodle.org/">Moodle</a></b>
|
||||
</font>
|
||||
<p>
|
||||
Moodle is a free, open source course management system (CMS). Also know as a Learning Managment System (LMS) or Virtual Learning Environment (VLE). For further details please see the specific Moodle <a href ="http://docs.moodle.org/en/DragMath_equation_editor">installation instructions</a>.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3>
|
||||
<b><a href ="http://stack.bham.ac.uk/">STACK</a></b>
|
||||
</font>
|
||||
<p>
|
||||
STACK is a computer aided assessment (CAA) package for mathematics. It was mainly developed by <a href ="http://web.mat.bham.ac.uk/C.J.Sangwin/">Chris Sangwin</a> (a developer of DragMath).
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3>
|
||||
<b><a href ="http://www.yourmathstutor.info/">YourMathsTutor Website</a></b>
|
||||
</font>
|
||||
<p>
|
||||
YourMathsTutor is a website created primarily to help students studying the for the UK's Key Stage 3, GCSE, AS and A Level mathematics and physics exams. DragMath has been integrated into the forum on this website. The forum is a <a href ="http://www.simplemachines.org/">Simple Machines Forum</a> (SMF), which is a powerful open source forum. More information on how it was <a href ="http://yourmathstutor.blogspot.com/2007/08/dragmath.html">integrated</a> and how it is <a href ="http://www.yourmathstutor.info/forum/index.php?topic=4.0">used</a> in the forum.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3>
|
||||
<b><a href ="http://www.diambars.org/">http://www.diambars.org/</a></b>
|
||||
</font>
|
||||
<p>
|
||||
The Diambars institute is a training structure embracing sports and education located in Saly, Senegal.
|
||||
</p>
|
||||
</font>
|
||||
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Integrations</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Integrations</strong></span></h2>
|
||||
|
||||
<p>
|
||||
DragMath has been successfully integrated with a number of different systems. The main method used for extracting the expression in the desired format is by using the getMathExpression() method called from JavaScript within a web page. This method returns the expression in the format specified.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3>
|
||||
<b><a href ="http://www.moodle.org/">Moodle</a></b>
|
||||
</font>
|
||||
<p>
|
||||
Moodle is a free, open source course management system (CMS). Also know as a Learning Managment System (LMS) or Virtual Learning Environment (VLE). For further details please see the specific Moodle <a href ="http://docs.moodle.org/en/DragMath_equation_editor">installation instructions</a>.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3>
|
||||
<b><a href ="http://stack.bham.ac.uk/">STACK</a></b>
|
||||
</font>
|
||||
<p>
|
||||
STACK is a computer aided assessment (CAA) package for mathematics. It was mainly developed by <a href ="http://web.mat.bham.ac.uk/C.J.Sangwin/">Chris Sangwin</a> (a developer of DragMath).
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3>
|
||||
<b><a href ="http://www.yourmathstutor.info/">YourMathsTutor Website</a></b>
|
||||
</font>
|
||||
<p>
|
||||
YourMathsTutor is a website created primarily to help students studying the for the UK's Key Stage 3, GCSE, AS and A Level mathematics and physics exams. DragMath has been integrated into the forum on this website. The forum is a <a href ="http://www.simplemachines.org/">Simple Machines Forum</a> (SMF), which is a powerful open source forum. More information on how it was <a href ="http://yourmathstutor.blogspot.com/2007/08/dragmath.html">integrated</a> and how it is <a href ="http://www.yourmathstutor.info/forum/index.php?topic=4.0">used</a> in the forum.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3>
|
||||
<b><a href ="http://www.diambars.org/">http://www.diambars.org/</a></b>
|
||||
</font>
|
||||
<p>
|
||||
The Diambars institute is a training structure embracing sports and education located in Saly, Senegal.
|
||||
</p>
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,31 +1,31 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Adding a language</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Adding a language</strong></span></h2>
|
||||
|
||||
<p>
|
||||
The software is supplied with an English language file, ‘en.xml’. This can be used as a template for creating other language files. To change the language data simply change the text within the tags in XML file.
|
||||
</p>
|
||||
<p>
|
||||
For example consider the error message when a file cannot be read,
|
||||
</p><p>
|
||||
<strong>
|
||||
<font color=#800080><ReadingFile></font>
|
||||
Error reading format file: Check file is valid
|
||||
<font color=#800080></ReadingFile></font>
|
||||
</strong>
|
||||
</p><p>
|
||||
To change the language of this message, simply change the message between the tags (the bold text). The tags should not be changed, otherwise the language file will not work.
|
||||
</p><p>
|
||||
Once a new language file has been created it should be placed in the \lang folder where the English file was found, and then an entry corresponding to that file entered in the Config.xml file. To change which language file the software uses see the <A href="options.html">Options</A> section or the <A href="parameters.html">Changing applet parameters</A> section.
|
||||
</p>
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Adding a language</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Adding a language</strong></span></h2>
|
||||
|
||||
<p>
|
||||
The software is supplied with an English language file, ‘en.xml’. This can be used as a template for creating other language files. To change the language data simply change the text within the tags in XML file.
|
||||
</p>
|
||||
<p>
|
||||
For example consider the error message when a file cannot be read,
|
||||
</p><p>
|
||||
<strong>
|
||||
<font color=#800080><ReadingFile></font>
|
||||
Error reading format file: Check file is valid
|
||||
<font color=#800080></ReadingFile></font>
|
||||
</strong>
|
||||
</p><p>
|
||||
To change the language of this message, simply change the message between the tags (the bold text). The tags should not be changed, otherwise the language file will not work.
|
||||
</p><p>
|
||||
Once a new language file has been created it should be placed in the \lang folder where the English file was found, and then an entry corresponding to that file entered in the Config.xml file. To change which language file the software uses see the <A href="options.html">Options</A> section or the <A href="parameters.html">Changing applet parameters</A> section.
|
||||
</p>
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,34 +1,34 @@
|
||||
<html>
|
||||
<body>
|
||||
<br>
|
||||
<DIV><FONT face=Arial color=#000080
|
||||
size=5><STRONG>DragMath</STRONG></FONT></DIV>
|
||||
<br>
|
||||
<FONT face=Arial>
|
||||
<dl>
|
||||
<dt><b>Basic Usage</b><br></dt>
|
||||
<dd><a href ="simple.html" target ="showframe">Creating simple expressions</a><br></dd>
|
||||
<dd><a href ="complex.html" target ="showframe">Creating complex expressions</a><br></dd>
|
||||
<dd><a href ="editing.html" target ="showframe">Editing an expression</a><br></dd>
|
||||
<dd><a href ="options.html" target ="showframe">Options</a><br></dd>
|
||||
<br>
|
||||
<dt><b>Advanced Usage</b><br></dt>
|
||||
<dd><a href ="language.html" target ="showframe">Adding a language</a><br></dd>
|
||||
<dd><a href ="newformat.html" target ="showframe">Adding an output format</a><br></dd>
|
||||
<dd><a href ="parameters.html" target ="showframe">Changing applet parameters</a></dd>
|
||||
<dd><a href ="integrations.html" target ="showframe">Integrations</a><br></dd>
|
||||
<br>
|
||||
<dt><b>Developer Usage</b><br></dt>
|
||||
<dd><a href ="cvs.html" target ="showframe">Setting up DragMath CVS in NetBeans</a><br></dd>
|
||||
<dd><a href ="browser.html" target ="showframe">Running applet in web browser</a><br></dd>
|
||||
<dd><a href ="newobject.html" target ="showframe">Adding a function/operator</a><br></dd>
|
||||
<br>
|
||||
<dt><b>About</b><br></dt>
|
||||
<dd><a href ="acknowledgments.html" target ="showframe">License</a><br></dd>
|
||||
<dd><a href ="about.html" target ="showframe">About DragMath</a><br></dd>
|
||||
</dl>
|
||||
<br><br/>
|
||||
<b><center><a href ="http://www.dragmath.bham.ac.uk" target ="_top">www.dragmath.bham.ac.uk</a></center></b>
|
||||
</FONT>
|
||||
</body>
|
||||
<html>
|
||||
<body>
|
||||
<br>
|
||||
<DIV><FONT face=Arial color=#000080
|
||||
size=5><STRONG>DragMath</STRONG></FONT></DIV>
|
||||
<br>
|
||||
<FONT face=Arial>
|
||||
<dl>
|
||||
<dt><b>Basic Usage</b><br></dt>
|
||||
<dd><a href ="simple.html" target ="showframe">Creating simple expressions</a><br></dd>
|
||||
<dd><a href ="complex.html" target ="showframe">Creating complex expressions</a><br></dd>
|
||||
<dd><a href ="editing.html" target ="showframe">Editing an expression</a><br></dd>
|
||||
<dd><a href ="options.html" target ="showframe">Options</a><br></dd>
|
||||
<br>
|
||||
<dt><b>Advanced Usage</b><br></dt>
|
||||
<dd><a href ="language.html" target ="showframe">Adding a language</a><br></dd>
|
||||
<dd><a href ="newformat.html" target ="showframe">Adding an output format</a><br></dd>
|
||||
<dd><a href ="parameters.html" target ="showframe">Changing applet parameters</a></dd>
|
||||
<dd><a href ="integrations.html" target ="showframe">Integrations</a><br></dd>
|
||||
<br>
|
||||
<dt><b>Developer Usage</b><br></dt>
|
||||
<dd><a href ="cvs.html" target ="showframe">Setting up DragMath CVS in NetBeans</a><br></dd>
|
||||
<dd><a href ="browser.html" target ="showframe">Running applet in web browser</a><br></dd>
|
||||
<dd><a href ="newobject.html" target ="showframe">Adding a function/operator</a><br></dd>
|
||||
<br>
|
||||
<dt><b>About</b><br></dt>
|
||||
<dd><a href ="acknowledgments.html" target ="showframe">License</a><br></dd>
|
||||
<dd><a href ="about.html" target ="showframe">About DragMath</a><br></dd>
|
||||
</dl>
|
||||
<br><br/>
|
||||
<b><center><a href ="http://www.dragmath.bham.ac.uk" target ="_top">www.dragmath.bham.ac.uk</a></center></b>
|
||||
</FONT>
|
||||
</body>
|
||||
</html>
|
@ -1,227 +1,227 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML><HEAD><TITLE>DragMath Documentation - Adding an output format</TITLE>
|
||||
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
|
||||
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
|
||||
<BODY>
|
||||
<DIV><FONT face=Arial color=#000080 size=5><STRONG>Adding an output format</STRONG></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2>
|
||||
<p>
|
||||
The formats supplied
|
||||
are Maple, Latex, MathML and Maxima, with the corresponding files found in
|
||||
the \formats folder. These files can be edited to reflect the syntax you prefer. These
|
||||
files can also be used as templates for creating files for different formats.
|
||||
There are a number of rules and options that you need to be aware of to
|
||||
successfully create an XML file for a new format.</p>Each math object has
|
||||
its own element in the XML document, with a familiar name describing it, for
|
||||
example “Add”. Within this element there are a number of sub-elements depending
|
||||
upon how many arguments the object has.</FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><BR>N-ary operators
|
||||
have a single ‘output’ element e.g. for addition this
|
||||
is <BR> <STRONG><FONT
|
||||
color=#800080><Add></FONT><BR>
|
||||
<FONT color=#800080><output></FONT>+<FONT
|
||||
color=#800080></output><BR></FONT> <FONT
|
||||
color=#800080></Add><BR></FONT></STRONG><BR>Binary Operators have 3
|
||||
‘output’ elements e.g. for fraction in Latex this is<BR> <FONT
|
||||
color=#800080><STRONG><Divide</STRONG> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>></STRONG></FONT><BR>
|
||||
<STRONG><FONT color=#800080><output1></FONT>\frac<FONT color=#800080><FONT
|
||||
color=#000000>{</FONT></output1></FONT><BR>
|
||||
<FONT color=#800080><output2></FONT>}{<FONT
|
||||
color=#800080></output2><BR></FONT>
|
||||
<FONT color=#800080><output3></FONT>}<FONT
|
||||
color=#800080></output3><BR></FONT> <FONT
|
||||
color=#800080></Divide></FONT><BR></STRONG><BR>Functions have 2 ‘output’
|
||||
elements e.g. for square root in Latex this is<BR> <STRONG>
|
||||
</STRONG><FONT color=#800080><STRONG><SquareRoot</STRONG> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><BR>
|
||||
<output1><FONT
|
||||
color=#000000>\sqrt{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}</FONT></output2><BR>
|
||||
</SquareRoot></STRONG></FONT><BR><BR></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2>N-ary functions have 'n' output elements
|
||||
e.g. for definite integral in Latex it has
|
||||
5</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2>
|
||||
<FONT color=#800080><STRONG><DefiniteIntegral</STRONG> <FONT
|
||||
color=#000000>reverse=</FONT><FONT
|
||||
color=#0000ff>"true"</FONT><STRONG>><BR>
|
||||
<output1> <FONT
|
||||
color=#000000>\int_{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}^{</FONT></output2><BR>
|
||||
<output3><FONT
|
||||
color=#000000>}</FONT></output3><BR>
|
||||
<output4><FONT
|
||||
color=#000000>\,\mathrm{d</FONT></output4><BR>
|
||||
<output5><FONT
|
||||
color=#000000>}</FONT></output5><BR>
|
||||
</DefiniteIntegral></STRONG></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2></FONT></FONT></FONT></FONT></FONT></FONT> </DIV></DIV>
|
||||
<DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2>Symbols have 1 ‘output’ element e.g. for
|
||||
Infinity in Latex this is<BR> <STRONG> <FONT color=#800080>
|
||||
<Infinity><BR>
|
||||
<output><FONT
|
||||
color=#000000>\infty</FONT></output><BR>
|
||||
</Infinity></FONT></STRONG><BR><BR>Groupings have 2 ‘output’ elements e.g.
|
||||
for square brackets in Latex this is<BR> <FONT
|
||||
color=#800080><STRONG><BracketsSq><BR>
|
||||
<output1><FONT
|
||||
color=#000000>\left[</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>\right]</FONT></output2><BR>
|
||||
</BracketsSq></STRONG><BR></FONT><BR>Matrix in Latex is as
|
||||
follows:<BR> <STRONG><FONT
|
||||
color=#800080><Matrix><BR>
|
||||
<matrixStart><FONT color=#000000>\left(
|
||||
\begin{array}{ccc}</FONT></matrixStart><BR>
|
||||
<rowStart /><BR>
|
||||
<elementStart /><BR>
|
||||
<elementEnd /><BR>
|
||||
<elementSeparator><FONT color=#808000><![CDATA[ &
|
||||
]]></FONT></elementSeparator><BR>
|
||||
<rowEnd> <FONT
|
||||
color=#000000>\\</FONT> </rowEnd><BR>
|
||||
<rowSeparator /><BR>
|
||||
<matrixEnd><FONT color=#000000>\end{array}
|
||||
\right)</FONT></matrixEnd><BR>
|
||||
</Matrix></FONT></STRONG><BR><BR><BR>The syntax within these tags is used
|
||||
when converting an expression to that particular format. The actual arguments of
|
||||
the objects appear in the syntax between each pair of tags. For example consider
|
||||
½ in Latex format. It has 3 ‘output’ elements. So the first part will be
|
||||
‘\frac{‘, then the first argument will be appended to the string giving us,
|
||||
‘\frac{1’, then the 2nd output will be appended, ‘\frac{1}{‘, then the 2nd
|
||||
argment, \frac{1}{2’ and then the final output, ‘\frac{1}{2}’. A similar process
|
||||
takes place with all the object types of objects, with the argument being
|
||||
appended between each pair of output elements.<BR><BR>There are various options
|
||||
that can be set to allow more control over the
|
||||
output.</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>Reverse</U><BR>If you find the arguments
|
||||
of a binary operator being output in the wrong order for a format, you can
|
||||
reverse the order of them by setting, reverse=”true”. An example of this is with
|
||||
the N-th root in Latex,<BR> <FONT
|
||||
color=#800080><STRONG><NthRoot</STRONG> <FONT
|
||||
color=#000000>reverse=</FONT><FONT color=#0000ff>"true"</FONT> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><BR>
|
||||
<output1><FONT color=#000000>\sqrt[</FONT>
|
||||
</output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>]{</FONT></output2><BR>
|
||||
<output3><FONT
|
||||
color=#000000>}</FONT></output3><BR>
|
||||
</NthRoot></STRONG></FONT><BR><U></U></FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2><U></U></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><U>Argument Order</U></DIV>
|
||||
<DIV>If you find the arguments of an N-ary Function being output in the wrong
|
||||
order for a format, you can re-arrange the order of them by setting,
|
||||
order=”#1,#2,#3,...,#n”. An example of this is with the Sum in Latex.
|
||||
Obviously, the default order for this is 0,1,2,3, and it is being
|
||||
changed to 1,2,3,0.<BR> <FONT
|
||||
color=#800080><STRONG><Sum</STRONG> <FONT color=#000000>order=</FONT><FONT
|
||||
color=#0000ff>"1,2,3,0"</FONT><STRONG>><BR>
|
||||
<output1> <FONT
|
||||
color=#000000>\sum_{{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}={</FONT></output2><BR>
|
||||
<output3><FONT
|
||||
color=#000000>}}^{</FONT></output3><BR>
|
||||
<output4><FONT
|
||||
color=#000000>}</FONT></output4><BR>
|
||||
<output5></output5><BR>
|
||||
</Sum></STRONG></FONT><BR></DIV><br>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>AutoBrackets</U><BR>By default, round
|
||||
brackets are placed around n-ary operators and binary operators where necessary
|
||||
to ensure operator precedence is preserved. For presentational formats, such as
|
||||
Latex this is often unnecessary, so there is the option to turn automatic
|
||||
placing of brackets on/off. This is set in the element that specifies the name
|
||||
of the format. An example of this is shown for
|
||||
Latex,</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2> <FONT
|
||||
color=#800080><STRONG><name</STRONG> <FONT
|
||||
color=#000000>AutoBrackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><FONT
|
||||
color=#000000>Latex</FONT></name></STRONG></FONT><BR><U></U></FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2><U></U></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>Brackets on Functions<BR></U>Brackets
|
||||
are added by default around the argument of a function. For example Sine in
|
||||
Latex is,<BR> <STRONG><FONT
|
||||
color=#800080><Sine><BR>
|
||||
<output1><FONT color=#000000>\sin</FONT>
|
||||
</output1><BR> <output2
|
||||
/><BR> </Sine></FONT></STRONG><BR><BR>Brackets are
|
||||
automatically added after the ‘\sin’ and after the 2nd output, resulting in
|
||||
"\sin(arg)". This is often the desired result but if you need to turn the
|
||||
brackets off, they can be set for each individual function. An example of
|
||||
turning them off is shown here for Square root in
|
||||
Latex,<BR> <STRONG> </STRONG><FONT
|
||||
color=#800080><STRONG><SquareRoot</STRONG> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><BR>
|
||||
<output1><FONT
|
||||
color=#000000>\sqrt{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}</FONT></output2><BR>
|
||||
</SquareRoot></STRONG></FONT><BR><U></U></FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2><U></U></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>Initial</U><BR>As well as the structured
|
||||
number of output elements for each type of object, there is the option of having
|
||||
an ‘initial’ element. The data in this element is added to the string before any
|
||||
other output element is. An example of its use for describing multiplication in
|
||||
MathML Content is shown below.<BR> <STRONG><FONT
|
||||
color=#800080><Add> <BR>
|
||||
<initial><FONT
|
||||
color=#000000><times/></FONT></initial><BR>
|
||||
<output</output> <BR>
|
||||
</Add><BR></FONT></STRONG><BR> ‘a x b x c’ would then be converted
|
||||
to,<BR>
|
||||
<times/><BR>
|
||||
<ci>a</ci><BR>
|
||||
<ci>b</ci><BR>
|
||||
<ci>c</ci> </FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><U><FONT face=Arial
|
||||
size=2></FONT></U></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><U><FONT face=Arial
|
||||
size=2>Final</FONT></U></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial size=2>N-ary operators can also have an optional 'final'
|
||||
element for adding data after everything else. An example of this is with Union
|
||||
in Maxima.</FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2> <STRONG><FONT
|
||||
color=#800080><Union><BR>
|
||||
<initial><FONT
|
||||
color=#000000>union(</FONT></initial><BR>
|
||||
<output><FONT
|
||||
color=#000000>,</FONT></output><BR>
|
||||
<final><FONT color=#000000>)</FONT></final><BR>
|
||||
</Union></FONT></STRONG></FONT></FONT></FONT></FONT></DIV></DIV></FONT></FONT></DIV></FONT></DIV></FONT></DIV></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><FONT face=Arial size=2><SPAN
|
||||
class=875382513-08082007> </DIV></SPAN></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></BODY></HTML>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML><HEAD><TITLE>DragMath Documentation - Adding an output format</TITLE>
|
||||
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
|
||||
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
|
||||
<BODY>
|
||||
<DIV><FONT face=Arial color=#000080 size=5><STRONG>Adding an output format</STRONG></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2>
|
||||
<p>
|
||||
The formats supplied
|
||||
are Maple, Latex, MathML and Maxima, with the corresponding files found in
|
||||
the \formats folder. These files can be edited to reflect the syntax you prefer. These
|
||||
files can also be used as templates for creating files for different formats.
|
||||
There are a number of rules and options that you need to be aware of to
|
||||
successfully create an XML file for a new format.</p>Each math object has
|
||||
its own element in the XML document, with a familiar name describing it, for
|
||||
example “Add”. Within this element there are a number of sub-elements depending
|
||||
upon how many arguments the object has.</FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><BR>N-ary operators
|
||||
have a single ‘output’ element e.g. for addition this
|
||||
is <BR> <STRONG><FONT
|
||||
color=#800080><Add></FONT><BR>
|
||||
<FONT color=#800080><output></FONT>+<FONT
|
||||
color=#800080></output><BR></FONT> <FONT
|
||||
color=#800080></Add><BR></FONT></STRONG><BR>Binary Operators have 3
|
||||
‘output’ elements e.g. for fraction in Latex this is<BR> <FONT
|
||||
color=#800080><STRONG><Divide</STRONG> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>></STRONG></FONT><BR>
|
||||
<STRONG><FONT color=#800080><output1></FONT>\frac<FONT color=#800080><FONT
|
||||
color=#000000>{</FONT></output1></FONT><BR>
|
||||
<FONT color=#800080><output2></FONT>}{<FONT
|
||||
color=#800080></output2><BR></FONT>
|
||||
<FONT color=#800080><output3></FONT>}<FONT
|
||||
color=#800080></output3><BR></FONT> <FONT
|
||||
color=#800080></Divide></FONT><BR></STRONG><BR>Functions have 2 ‘output’
|
||||
elements e.g. for square root in Latex this is<BR> <STRONG>
|
||||
</STRONG><FONT color=#800080><STRONG><SquareRoot</STRONG> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><BR>
|
||||
<output1><FONT
|
||||
color=#000000>\sqrt{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}</FONT></output2><BR>
|
||||
</SquareRoot></STRONG></FONT><BR><BR></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2>N-ary functions have 'n' output elements
|
||||
e.g. for definite integral in Latex it has
|
||||
5</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2>
|
||||
<FONT color=#800080><STRONG><DefiniteIntegral</STRONG> <FONT
|
||||
color=#000000>reverse=</FONT><FONT
|
||||
color=#0000ff>"true"</FONT><STRONG>><BR>
|
||||
<output1> <FONT
|
||||
color=#000000>\int_{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}^{</FONT></output2><BR>
|
||||
<output3><FONT
|
||||
color=#000000>}</FONT></output3><BR>
|
||||
<output4><FONT
|
||||
color=#000000>\,\mathrm{d</FONT></output4><BR>
|
||||
<output5><FONT
|
||||
color=#000000>}</FONT></output5><BR>
|
||||
</DefiniteIntegral></STRONG></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2></FONT></FONT></FONT></FONT></FONT></FONT> </DIV></DIV>
|
||||
<DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2>Symbols have 1 ‘output’ element e.g. for
|
||||
Infinity in Latex this is<BR> <STRONG> <FONT color=#800080>
|
||||
<Infinity><BR>
|
||||
<output><FONT
|
||||
color=#000000>\infty</FONT></output><BR>
|
||||
</Infinity></FONT></STRONG><BR><BR>Groupings have 2 ‘output’ elements e.g.
|
||||
for square brackets in Latex this is<BR> <FONT
|
||||
color=#800080><STRONG><BracketsSq><BR>
|
||||
<output1><FONT
|
||||
color=#000000>\left[</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>\right]</FONT></output2><BR>
|
||||
</BracketsSq></STRONG><BR></FONT><BR>Matrix in Latex is as
|
||||
follows:<BR> <STRONG><FONT
|
||||
color=#800080><Matrix><BR>
|
||||
<matrixStart><FONT color=#000000>\left(
|
||||
\begin{array}{ccc}</FONT></matrixStart><BR>
|
||||
<rowStart /><BR>
|
||||
<elementStart /><BR>
|
||||
<elementEnd /><BR>
|
||||
<elementSeparator><FONT color=#808000><![CDATA[ &
|
||||
]]></FONT></elementSeparator><BR>
|
||||
<rowEnd> <FONT
|
||||
color=#000000>\\</FONT> </rowEnd><BR>
|
||||
<rowSeparator /><BR>
|
||||
<matrixEnd><FONT color=#000000>\end{array}
|
||||
\right)</FONT></matrixEnd><BR>
|
||||
</Matrix></FONT></STRONG><BR><BR><BR>The syntax within these tags is used
|
||||
when converting an expression to that particular format. The actual arguments of
|
||||
the objects appear in the syntax between each pair of tags. For example consider
|
||||
½ in Latex format. It has 3 ‘output’ elements. So the first part will be
|
||||
‘\frac{‘, then the first argument will be appended to the string giving us,
|
||||
‘\frac{1’, then the 2nd output will be appended, ‘\frac{1}{‘, then the 2nd
|
||||
argment, \frac{1}{2’ and then the final output, ‘\frac{1}{2}’. A similar process
|
||||
takes place with all the object types of objects, with the argument being
|
||||
appended between each pair of output elements.<BR><BR>There are various options
|
||||
that can be set to allow more control over the
|
||||
output.</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>Reverse</U><BR>If you find the arguments
|
||||
of a binary operator being output in the wrong order for a format, you can
|
||||
reverse the order of them by setting, reverse=”true”. An example of this is with
|
||||
the N-th root in Latex,<BR> <FONT
|
||||
color=#800080><STRONG><NthRoot</STRONG> <FONT
|
||||
color=#000000>reverse=</FONT><FONT color=#0000ff>"true"</FONT> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><BR>
|
||||
<output1><FONT color=#000000>\sqrt[</FONT>
|
||||
</output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>]{</FONT></output2><BR>
|
||||
<output3><FONT
|
||||
color=#000000>}</FONT></output3><BR>
|
||||
</NthRoot></STRONG></FONT><BR><U></U></FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2><U></U></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><U>Argument Order</U></DIV>
|
||||
<DIV>If you find the arguments of an N-ary Function being output in the wrong
|
||||
order for a format, you can re-arrange the order of them by setting,
|
||||
order=”#1,#2,#3,...,#n”. An example of this is with the Sum in Latex.
|
||||
Obviously, the default order for this is 0,1,2,3, and it is being
|
||||
changed to 1,2,3,0.<BR> <FONT
|
||||
color=#800080><STRONG><Sum</STRONG> <FONT color=#000000>order=</FONT><FONT
|
||||
color=#0000ff>"1,2,3,0"</FONT><STRONG>><BR>
|
||||
<output1> <FONT
|
||||
color=#000000>\sum_{{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}={</FONT></output2><BR>
|
||||
<output3><FONT
|
||||
color=#000000>}}^{</FONT></output3><BR>
|
||||
<output4><FONT
|
||||
color=#000000>}</FONT></output4><BR>
|
||||
<output5></output5><BR>
|
||||
</Sum></STRONG></FONT><BR></DIV><br>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>AutoBrackets</U><BR>By default, round
|
||||
brackets are placed around n-ary operators and binary operators where necessary
|
||||
to ensure operator precedence is preserved. For presentational formats, such as
|
||||
Latex this is often unnecessary, so there is the option to turn automatic
|
||||
placing of brackets on/off. This is set in the element that specifies the name
|
||||
of the format. An example of this is shown for
|
||||
Latex,</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2> <FONT
|
||||
color=#800080><STRONG><name</STRONG> <FONT
|
||||
color=#000000>AutoBrackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><FONT
|
||||
color=#000000>Latex</FONT></name></STRONG></FONT><BR><U></U></FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2><U></U></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>Brackets on Functions<BR></U>Brackets
|
||||
are added by default around the argument of a function. For example Sine in
|
||||
Latex is,<BR> <STRONG><FONT
|
||||
color=#800080><Sine><BR>
|
||||
<output1><FONT color=#000000>\sin</FONT>
|
||||
</output1><BR> <output2
|
||||
/><BR> </Sine></FONT></STRONG><BR><BR>Brackets are
|
||||
automatically added after the ‘\sin’ and after the 2nd output, resulting in
|
||||
"\sin(arg)". This is often the desired result but if you need to turn the
|
||||
brackets off, they can be set for each individual function. An example of
|
||||
turning them off is shown here for Square root in
|
||||
Latex,<BR> <STRONG> </STRONG><FONT
|
||||
color=#800080><STRONG><SquareRoot</STRONG> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><BR>
|
||||
<output1><FONT
|
||||
color=#000000>\sqrt{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}</FONT></output2><BR>
|
||||
</SquareRoot></STRONG></FONT><BR><U></U></FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2><U></U></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>Initial</U><BR>As well as the structured
|
||||
number of output elements for each type of object, there is the option of having
|
||||
an ‘initial’ element. The data in this element is added to the string before any
|
||||
other output element is. An example of its use for describing multiplication in
|
||||
MathML Content is shown below.<BR> <STRONG><FONT
|
||||
color=#800080><Add> <BR>
|
||||
<initial><FONT
|
||||
color=#000000><times/></FONT></initial><BR>
|
||||
<output</output> <BR>
|
||||
</Add><BR></FONT></STRONG><BR> ‘a x b x c’ would then be converted
|
||||
to,<BR>
|
||||
<times/><BR>
|
||||
<ci>a</ci><BR>
|
||||
<ci>b</ci><BR>
|
||||
<ci>c</ci> </FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><U><FONT face=Arial
|
||||
size=2></FONT></U></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><U><FONT face=Arial
|
||||
size=2>Final</FONT></U></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial size=2>N-ary operators can also have an optional 'final'
|
||||
element for adding data after everything else. An example of this is with Union
|
||||
in Maxima.</FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2> <STRONG><FONT
|
||||
color=#800080><Union><BR>
|
||||
<initial><FONT
|
||||
color=#000000>union(</FONT></initial><BR>
|
||||
<output><FONT
|
||||
color=#000000>,</FONT></output><BR>
|
||||
<final><FONT color=#000000>)</FONT></final><BR>
|
||||
</Union></FONT></STRONG></FONT></FONT></FONT></FONT></DIV></DIV></FONT></FONT></DIV></FONT></DIV></FONT></DIV></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><FONT face=Arial size=2><SPAN
|
||||
class=875382513-08082007> </DIV></SPAN></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></BODY></HTML>
|
||||
|
@ -1,43 +1,43 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Adding a function/operator</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Adding a function/operator</strong></span></h2>
|
||||
|
||||
<p>
|
||||
The code can be easily modified and recompiled to add additional operators and functions.
|
||||
</p><p>
|
||||
However, they must adhere to the standard display layout shown below:
|
||||
</p><p>
|
||||
Operator:
|
||||
<br>
|
||||
<IMG alt="" hspace=0 src="img/plus.jpg" align=bottom border=0>
|
||||
</p><p>
|
||||
Function:
|
||||
<br>
|
||||
<IMG alt="" hspace=0 src="img/sin.jpg" align=bottom border=0>
|
||||
</p><p>
|
||||
The steps to adding one:
|
||||
</p>
|
||||
<ol>
|
||||
|
||||
<LI>A new element in the CompConfig.xml, which is located in the Display package. The element must be given a unique name as the name of the object. A unique ID number, by simply choosing the next available ID number. A group number as follows:
|
||||
<br> N-ary operator - 1
|
||||
<br> Binary Operator - 2
|
||||
<br> Function - 3
|
||||
<br> The name of the GIF file that holds a transparent image of the object, of size 16x16, 24x24 or 32x32 pixels.<BR> The text of the element should hold the
|
||||
characters that represent the object.
|
||||
<LI>A new JButton placed on one of the tabs, in the MainApplet.java file. This button can have Text or an Icon to inform the user what it is. The JButton must have the name field set to 'ID-Name' e.g. for Addition this is '2-Add'.
|
||||
<LI>A new element in the language file you intend to use, with the same element name as in the CompConfig.xml file. The text of the element should be a description of the object for use in the status bar of the program.
|
||||
<LI>The array ‘inputComponents’ should be initialised to the size of the highest ID number now in CompConfig.xml. This line of code is found near the start of the init() method in the MainApplet.java file, in the Display package.
|
||||
<LI>The Precedence.java file in the Tree package should be adjusted, so the ‘value’ array is initialised to the size of the highest ID number now in CompConfig.xml, and the precedence of the new object should be set if required.
|
||||
<LI>An entry in each format XML file will be required for the new object. For details on how to do this see <A href="newformat.html">here</A>.
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Adding a function/operator</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Adding a function/operator</strong></span></h2>
|
||||
|
||||
<p>
|
||||
The code can be easily modified and recompiled to add additional operators and functions.
|
||||
</p><p>
|
||||
However, they must adhere to the standard display layout shown below:
|
||||
</p><p>
|
||||
Operator:
|
||||
<br>
|
||||
<IMG alt="" hspace=0 src="img/plus.jpg" align=bottom border=0>
|
||||
</p><p>
|
||||
Function:
|
||||
<br>
|
||||
<IMG alt="" hspace=0 src="img/sin.jpg" align=bottom border=0>
|
||||
</p><p>
|
||||
The steps to adding one:
|
||||
</p>
|
||||
<ol>
|
||||
|
||||
<LI>A new element in the CompConfig.xml, which is located in the Display package. The element must be given a unique name as the name of the object. A unique ID number, by simply choosing the next available ID number. A group number as follows:
|
||||
<br> N-ary operator - 1
|
||||
<br> Binary Operator - 2
|
||||
<br> Function - 3
|
||||
<br> The name of the GIF file that holds a transparent image of the object, of size 16x16, 24x24 or 32x32 pixels.<BR> The text of the element should hold the
|
||||
characters that represent the object.
|
||||
<LI>A new JButton placed on one of the tabs, in the MainApplet.java file. This button can have Text or an Icon to inform the user what it is. The JButton must have the name field set to 'ID-Name' e.g. for Addition this is '2-Add'.
|
||||
<LI>A new element in the language file you intend to use, with the same element name as in the CompConfig.xml file. The text of the element should be a description of the object for use in the status bar of the program.
|
||||
<LI>The array ‘inputComponents’ should be initialised to the size of the highest ID number now in CompConfig.xml. This line of code is found near the start of the init() method in the MainApplet.java file, in the Display package.
|
||||
<LI>The Precedence.java file in the Tree package should be adjusted, so the ‘value’ array is initialised to the size of the highest ID number now in CompConfig.xml, and the precedence of the new object should be set if required.
|
||||
<LI>An entry in each format XML file will be required for the new object. For details on how to do this see <A href="newformat.html">here</A>.
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,46 +1,46 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Options</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Options</strong></span></h2>
|
||||
|
||||
<p>
|
||||
<font size=3>
|
||||
<b>Exporting an expression</b>
|
||||
</font>
|
||||
</p>
|
||||
<p>
|
||||
To choose which format to export to click 'Set export format' under the Options menu, and select a file from the list. The files available will be those in the \formats folder. If no format is specified in an applet paramater the default is LaTeX.
|
||||
To export an expression click the Export button. Once exported the syntax will be copied to the clipboard, so you can simply paste it into any other program you desire.
|
||||
</p>
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>Changing the language</b>
|
||||
</font>
|
||||
<p>
|
||||
The language can be changed by clicking 'Set language' under the Options menu, and selected a file from the list. The files available will be those in the \lang folder. If no language is specified in an applet parameter the default is English.
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>Help</b>
|
||||
</font>
|
||||
<p>
|
||||
If there appears to be a problem with the way the software is behaving it can be useful to use the two tools under the Debug menu, which is under the Help menu. These can show the current expression as a tree, and outline the borders of all the objects on the workspace.
|
||||
Under the Help menu there is also a link to the Online Documentation.
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>Implicit Multiplication</b>
|
||||
</font>
|
||||
<p>
|
||||
Under the Options menu, there is a check box for turning implicit multiplication on/off. By default it is set to off, if you wish to set the default to on, see the 'Changing applet parameters' page. With implicit multiplication on the 'dot' notation is not displayed in the DragMath display in any expressions which are exported.
|
||||
</p>
|
||||
</font>
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Options</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Options</strong></span></h2>
|
||||
|
||||
<p>
|
||||
<font size=3>
|
||||
<b>Exporting an expression</b>
|
||||
</font>
|
||||
</p>
|
||||
<p>
|
||||
To choose which format to export to click 'Set export format' under the Options menu, and select a file from the list. The files available will be those in the \formats folder. If no format is specified in an applet paramater the default is LaTeX.
|
||||
To export an expression click the Export button. Once exported the syntax will be copied to the clipboard, so you can simply paste it into any other program you desire.
|
||||
</p>
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>Changing the language</b>
|
||||
</font>
|
||||
<p>
|
||||
The language can be changed by clicking 'Set language' under the Options menu, and selected a file from the list. The files available will be those in the \lang folder. If no language is specified in an applet parameter the default is English.
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>Help</b>
|
||||
</font>
|
||||
<p>
|
||||
If there appears to be a problem with the way the software is behaving it can be useful to use the two tools under the Debug menu, which is under the Help menu. These can show the current expression as a tree, and outline the borders of all the objects on the workspace.
|
||||
Under the Help menu there is also a link to the Online Documentation.
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>Implicit Multiplication</b>
|
||||
</font>
|
||||
<p>
|
||||
Under the Options menu, there is a check box for turning implicit multiplication on/off. By default it is set to off, if you wish to set the default to on, see the 'Changing applet parameters' page. With implicit multiplication on the 'dot' notation is not displayed in the DragMath display in any expressions which are exported.
|
||||
</p>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
@ -1,190 +1,190 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Changing applet parameters</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Changing Applet parameters</strong></span></h2>
|
||||
|
||||
<p>
|
||||
There are various parameters that can be set inside the <APPLET> tag, to change particular options of the applet.
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Language</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>language</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"en"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
The value is the name of the XML file, so this example refers to language file en.xml in the \lang folder. If the parameter is not used the default value is "en".
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Output Format</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>outputFormat</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"MathML"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
The value is the name of the XML file, so this example refers to output format file MathML.xml in the \formats folder. The purpose of setting this is to have the default format to use automatically set when the software loads.
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Open applet with an expression</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>openWithExpression</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"sin(1+x)"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
The value can be any expression you would like the applet to be opened with. The Maxima example on the DragMath website gives an example of this being used.
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Hide the menu</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>hideMenu</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"true"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
By default the drop-down menus are shown. To hide them set the value of the parameter to "True" or "true".
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Hide the toolbar</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>hideToolbar</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"true"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
By default the toolbar is shown. To hide it set the value of the parameter to "True" or "true".
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Implicit multiplication</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>implicitMultiplication</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"true"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
By default implicit multiplication is set to off. To turn it on set the value of the parameter to "True" or "true".
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Decimal Numbers</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>displayDecimalNumbers</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"true"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
By default decimal numbers which can be expressed as integers are converted. e.g. 1.0 becomes 1, and 1.5 remains as 1.5. If you wish all numbers to be displayed as decimal numbers set the value of the parameter to "True" or "true". Therefore, 1 becomes 1.0, and 1.5 remains as 1.5.
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Customise toolbar</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>customToolbar</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"0 1 2 | 3 4 | 5 6 7 | 8"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
This parameter can be used to customise which buttons are shown and they order they are shown in. Each button has a numeric value as shown below
|
||||
<p>
|
||||
0 = Clear workspace <br>
|
||||
1 = Load Expression from file <br>
|
||||
2 = Save expression to file <br>
|
||||
3 = Undo <br>
|
||||
4 = Redo <br>
|
||||
5 = Cut <br>
|
||||
6 = Copy <br>
|
||||
7 = Paste <br>
|
||||
8 = Export <br>
|
||||
| = Separator
|
||||
</p>
|
||||
|
||||
The default is set to "0 1 2 | 3 4 | 5 6 7 | 8"
|
||||
|
||||
</font>
|
||||
</body>
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Changing applet parameters</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Changing Applet parameters</strong></span></h2>
|
||||
|
||||
<p>
|
||||
There are various parameters that can be set inside the <APPLET> tag, to change particular options of the applet.
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Language</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>language</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"en"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
The value is the name of the XML file, so this example refers to language file en.xml in the \lang folder. If the parameter is not used the default value is "en".
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Output Format</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>outputFormat</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"MathML"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
The value is the name of the XML file, so this example refers to output format file MathML.xml in the \formats folder. The purpose of setting this is to have the default format to use automatically set when the software loads.
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Open applet with an expression</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>openWithExpression</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"sin(1+x)"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
The value can be any expression you would like the applet to be opened with. The Maxima example on the DragMath website gives an example of this being used.
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Hide the menu</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>hideMenu</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"true"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
By default the drop-down menus are shown. To hide them set the value of the parameter to "True" or "true".
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Hide the toolbar</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>hideToolbar</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"true"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
By default the toolbar is shown. To hide it set the value of the parameter to "True" or "true".
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Implicit multiplication</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>implicitMultiplication</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"true"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
By default implicit multiplication is set to off. To turn it on set the value of the parameter to "True" or "true".
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Decimal Numbers</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>displayDecimalNumbers</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"true"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
By default decimal numbers which can be expressed as integers are converted. e.g. 1.0 becomes 1, and 1.5 remains as 1.5. If you wish all numbers to be displayed as decimal numbers set the value of the parameter to "True" or "true". Therefore, 1 becomes 1.0, and 1.5 remains as 1.5.
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Customise toolbar</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>customToolbar</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"0 1 2 | 3 4 | 5 6 7 | 8"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
This parameter can be used to customise which buttons are shown and they order they are shown in. Each button has a numeric value as shown below
|
||||
<p>
|
||||
0 = Clear workspace <br>
|
||||
1 = Load Expression from file <br>
|
||||
2 = Save expression to file <br>
|
||||
3 = Undo <br>
|
||||
4 = Redo <br>
|
||||
5 = Cut <br>
|
||||
6 = Copy <br>
|
||||
7 = Paste <br>
|
||||
8 = Export <br>
|
||||
| = Separator
|
||||
</p>
|
||||
|
||||
The default is set to "0 1 2 | 3 4 | 5 6 7 | 8"
|
||||
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
@ -42,12 +42,11 @@ if (!file_exists("$CFG->dirroot/lib/dragmath/applet/lang/$lang.xml")) {
|
||||
name="dragmath"
|
||||
codebase="<?php echo $CFG->httpswwwroot.'/lib/dragmath/applet' ?>"
|
||||
code="Display/MainApplet.class"
|
||||
archive="Project.jar,lib/AbsoluteLayout.jar,lib/swing-layout-1.0.jar,lib/jdom.jar,lib/jep.jar"
|
||||
archive="DragMath.jar,lib/AbsoluteLayout.jar,lib/swing-layout-1.0.jar,lib/jdom.jar,lib/jep.jar"
|
||||
width="540" height="300"
|
||||
>
|
||||
<param name="language" value="<?php echo $lang; ?>" />
|
||||
<param name="outputFormat" value="MoodleTex" />
|
||||
<param name="showOutputToolBar" value="false" />
|
||||
<?php print_string('dragmath:dragmath_javaneeded', 'editor_tinymce', '<a href="http://www.java.com">Java.com</a>')?>
|
||||
</applet>
|
||||
<form name="form" action="">
|
||||
|
Loading…
x
Reference in New Issue
Block a user