Add a static exercise
This tasks explains how to create a static exercise and see it.
Prerequisite:
Task steps
- first insert the exercise header and metadata
- type “<” then “e”, “x”, “e”, “r”, “c” then press return
- add the id attribute as requested, e.g.
mini-exercise
- set the for attribute to the reference to a concept. If directly from the task create-a-collection, simply use
hello-world
- press return to finalize this tag
- maybe right-away add the closing element: press return to go down one line, then press “<” and “/” which should input you the closing element. Saving is a good idea at this point.
- inside the
exercise element, add “<”, “m”, “e”, press space then “>”, then add a Title element (same procedure), then input a title, say A mini exercise.
- close
Title and metadata
we should now have reached something such as
<exercise id="mini-exercise" for="hello-world">
<metadata><Title>Mini-exercise</Title>
</metadata>
</exercise>
now go below metadata and add <CMP> followed by the exercise invitation, that is, the text that is presented to learners to invite them to start the first interactive exercise
- inside
CMP, type something such as Let us start a minimum exercise.
- close the
CMP
open the Ant Farm tab
- select the build-file of your collection (by the name you gave when creating a collection)
- double click it and throw a short look in the console pane that just opened below the editing pane
- wait till it shows BUILD SUCCESSFUL
- open the ActiveMath main menu with your browser (at http://localhost:8080/ActiveMath2/ typically)
- open the book bearing your collection name
- you should see the exercise with the given title and no Start the exercise message below it
Trackback URL for this post:http://eds.activemath.org/de/trackback/158
|