4. jEdit Test
• OQMath – Start a collection
• Provide a name
• Let the magic happen
• Restart Math-Bridge
• Visit new collection with browser
5. TRANSFORMATION PROCESS
o Edit content/enter formula
o Open Ant-Tab
o Select build-file corresponding to collection
o Start transformation by clicking „Running-
Man“
o Starts QMath process (www.matracas.org)
6. Formatting Basics
• Line Breaks
– <br/>
• Write text bold:
– <highlight type=„important“>text</highlight>
• Write text italic
– <highlight type=„noticable“>text</highlight>
7. Adding a paragraph
• Standard paragraph
– <p>some text</p>
• Paragraph with centered text
– <p style=„cm“>text to be centered</p>
8. General purpose formatting
• Element for general formatting:
– <with style=„css instructions“></with>
• Examples
– <with style=„text-align:center“> (center)
– <with style=„text-align:right“> (text is right aligned)
– <with style=„color:red“> (text is written in red)
– ...
9. Problem with tables
• Centering of tables is not working with the
previous methods
• Solution: add margin-left:auto and margin-
right:auto to the style attribute of table
• Example
– <table style=„margin-left:auto;margin-right:auto;“>
<tr><td>table content</td></tr>
</table>
17. EXAMPLE FOR FORMULA INPUT
$x^3+y^2=0$ is transformed to
<OMOBJ>
<OMA>
<OMS cd="relation1" name="eq" />
<OMA>
<OMS cd="arith1" name="plus" />
<OMA>
<OMS cd="arith1" name="power" />
<OMV name="x" />
<OMI>3</OMI>
</OMA>
<OMA>
<OMS cd="arith1" name="power" />
<OMV name="y" />
<OMI>2</OMI>
</OMA>
</OMA>
<OMI>0</OMI>
</OMA>
</OMOBJ>
18. TRANSFORMATION PROCESS
o Edit content/enter formula
o Open Ant-Tab
o Select build-file corresponding to collection
o Start transformation by clicking „Running-
Man“
o Starts QMath process (www.matracas.org)
19. TRANSFORMATION PROCESS
o Qmath Process stops
o Reload of Math-Bridge‘s mathematical database is
triggered
o Possible errors in content are displayed in Console
and ErrorList-Tab
o Build Successful message displayed in Console
20. FREQUENT MBASE ERRORS
E: Unresolved xref theory_id/lo_id
C: Missing import
S: Insert import of theory containing not found learning object
E: Unresolved xref in Recbook_xxx.omdoc
C: Mbase may be corrupt
S: Check in browser for transformation errors, remove data/slumbd and
restart Math-Bridge to fix
E: Duplicate ID in Recbook_automatic.omdoc
S: Just ignore
21. TRANSFORMATION PROCESS
o QMath Process stops
o Error message(s) are logged in Console-Tab
o Build Failed message displayed in Console-Tab
22. FREQUENT QMATH ERRORS
E: Parse error in document
C: Error in formula syntax
S: Correct error
E: ending dollar not-found... ignoring last dollar.
S: Add the missing dollar
23. ATTENTION
Presentation can have errors even though no
errors were reported during the transformation
process.
Presentation needs to be checked manually
25. SYMBOLS AVAILABLE IN EACH Math-
Bridge
• OpenMath-CDs (Content Dictionaries)
• Basic set of symbols to be used for
authoring
(Excerpt of arith1 content dictionary)
26. BROWSE AVAILABLE SYMBOLS
ONLINE
o Symbol Presentation
o Displays all symbols available in Math-
Bridge installation
o Separation by collection
27. BROWSE SYMBOLS AVAILABLE LOCALLY
o Notations List
o Tool of OQMath Plug-in for jEdit
o Displays all usable symbols for oqmath files
o Different lists for different files(maybe)
29. USE MORE SYMBOLS
• Make calculus1 usable in OQMath file (I)
– <?QMath Context:„Mathematics/OpenMath/calculus1"?>
• Make calculus1 usable in OQMath file (II)
– Add Context:„Mathematics/OpenMath/calculus1“ to
notations.qmath file
• Tell Math-Bridge where to look for calculus1
– <imports from="mbase://openmath-cds/calculus1/"/>
30. USAGE OF FOUND SYMBOLS
• Question:
How to use the symbols to create formulas?
o Depends on the type of the symbol
o 5 types
o Application
o Binding
o Operator
o Symbol
o Variable
31. SYMBOL TYPE: BINDING
o only one symbol with this type
o Symbol: lambda BINDING "fns1:lambda“
o used to bind variables to functions
Usage Example: $lambda(x,x^2)$
32. SYMBOL TYPE: OPERATORS
o OP prefix denotes this type
o Symbol: oo OP_PLUS “myTherory:myoo“
o PLUS means that this operators has the precedence of +
Usage Example: $1 oo 4$
33. SYMBOL TYPE: SYMBOL
o standalone symbol with semantics
o Symbol: sym SYMBOL “myTheory:mySymbol“
Usage Example: $sym$
34. SYMBOL TYPE: VARIABLE
o same as SYMBOL but without semantics
o Symbol: myVar VARIABLE „var “
Usage Example: $myVar$
35. SYMBOL TYPE: APPLICATION
o most difficult type in terms of syntax
o Symbol: myApp APPLICATION “myTheory:myApp“
o From the above declaration we cannot tell number of
parameters
Usage Example: $myApp(x,x^2,...,?)$
36. SYMBOL TYPE: APPLICATION
Ways to find out the number of parameters:
o Go to definition of symbol and check the qmath prototype
o Check the omdoc definition of the symbol
o For OpenMath-CDs: Visit http://www.openmath.org/cd
And check the symbol description
44. Exercises - Basics
• Set of nodes
• Task
• Interaction
• Feedback
• Transitions between nodes
45. Exercises - Transitions
• Unconditional (Task/Feedback)
• Transition is always used
• Conditional (Interaction)
• Used if certain condition(s) hold
• Default(Interaction)
• Used if no other condition fired
46. Exercises - Conditions
• Comparison with user input
• Syntactic Evaluation
• User answer and expected answer must be identical
• Semantic Evaluation
• User answer must be semantically correct
• Numeric Evaluation
• Numeric value of user input is compared with provided answer
• Error tolerance can be provided
48. jEdit
Open exercise
Beweisen Sie den großen Satz von Fermat:
Die Gleichung a^n + b^n = c^n
besitzt für ganzzahlige a,b,c ≠ 0
und natürliche Zahlen n>2 keine Lösung.
49. jEdit
Open exercise
<exercise id="schulungEx1" for="schulExampleEx_sym" >
<metadata><Title> Offene Übungsaufgabe </Title>
<Format>AMEL1.0</Format>
<extradata>
<exercisetype value="open"/>
</extradata>
</metadata>
<CMP>
Beweisen Sie den großen Satz von Fermat:
</CMP>
<interaction id="schulungEx1_step1">
<feedback><CMP>Beweisen Sie den großen Satz von Fermat<br/>
Die Gleichung $a^n + b^n = c^n$<br/>
besitzt für ganzzahlige $list(a,b,c) neq 0$
und natürliche Zahlen $n > 2$ keine Lösung. </CMP></feedback>
</interaction>
</exercise>
51. jEdit
Fill In Blank
<exercise id="schulEx2"
for="schulExampleEx_sym" >
<metadata><Title> Fill in blank Aufgabe
</Title>
</metadata>
<CMP>
Berechnen Sie $3/4 + 1/2$
</CMP>
52. jEdit
Fill In Blank
<interaction id="schulEx2_step1">
<feedback><CMP>$3/4 + 1/2 =
id("schulEx2_blank1",5/4)$</CMP></feedback
>
<interaction_map>
<blank for="schulEx2_blank1"/>
</interaction_map>
69. jEdit – Insert Picture
First part
Image declaration
<private id="«id_of_the_private_element»">
<data format="html" href="../MinePics/«filename of the picture (.png,
.jpeg, .gif)»"/>
<data format="pdf" href="./omdoc1/mine/pics/«filename of the picture
(.png, .jpeg, .pdf)»"/>
</private>
70. jEdit – Insert Picture
Second part
Image Usage
<omlet argstr="«id_of_the_private_element»"
type="image" action="display">
«the caption»
</omlet>
74. jEdit – Insert JavaScript/External HTML
Have JavaScript in external HTML File
Create new directory (ContentDescr needs to be modified)/Add to existing
directory (ie. pics)
In CMP write
<with style="embedHTMLex"
width="900" height="500">../collectionPathMap/index.html</with>
as only input