Preparation - Create the applet, corrector and problem tex document

To Start implementing the problem, we need to create the documents needed. This tutorial will show you how to create the documents using MIAU.

1. Creating an Applet

A java Applet must be contained in the ../media/applets section in the checkin tree, if your content package does not already have this section, you might want to create one.

If you already have the section, than creating a java applet is as simple as follows:
  1. Right click on the /applets section and select New - Mumie Document or Course
  2. On the wizzard select Mumie Mathlets (Java) - No Canvas, give the applet a name and then click Next.
  3. On the next page select 3 Tabs (Complex Exercise) and finish the wizzard.

A fully runnable java applet is created from the template, but we will leave it right now and go on with creating the corrector object.

Side Note: The generated java file is actually placed under the java source folder of the package (src/java). The document you see in the checkin tree is only a link to the real files under src/java Folder.

2. Creating a Corrector

A corrector is also written in java, and it has to be under a /problem section, normally under /problem/correctors.

If you already have the section here are the things you need to perform to create a corrector:
  1. Right click on the /applets section and select New - Mumie Document or Course
  2. On the wizzard select Corrector, give the document a name and then click Next.
  3. On the next page select Problem Corrector and click Next.
  4. On the last page change "mathlet" in the package field into "corrector" (This is to make sure that mathlets and correctors are managed separatly in the java source folder).

3. Creating an advanced dynamical problem tex

In Miau, creating a problem tex includes the following steps:
  1. In the checkin tree, right click a section where the problem tex should be placed and choose New - Mumie Document or Course.
  2. Choose Building Blocks(Tex) - Problems on the following wizzard and enter a name for the document.
  3. Click Next, choose Advanced dynamic problem on the next page and then finish the wizzard.
The new problem tex will be opened in a mumie tex editor which has 4 tabs:
  1. Content Block: Editor for the content block of the document
  2. Meta Information: Contains meta information such as reference to the Applet and Corrector
  3. License: Editor for license text
  4. Tex Source: shows the complete tex source of the document.

Setting the reference to the applet and corrector

Now that we have all documents needed, we can set the reference in the Meta Information tab of the mumie tex editor.

Corrector

To enter the reference of the corrector, simply click on the Select...-button on the right side of the Corrector field, and choose the desired corrector from the checkin tree.

Applet

On the right side of the Components list click on the Add-button. This will open a wizzard where you can select the desired applet and enter a local ID (LID) for the applet.

wizzard.png (53.4 KB) Marek Grudzinski, 04/07/2013 11:48 AM

tex-editor.png (31.2 KB) Marek Grudzinski, 04/07/2013 11:48 AM

metainfo.png (21 KB) Marek Grudzinski, 04/07/2013 11:48 AM

addapplet.png (46.4 KB) Marek Grudzinski, 04/07/2013 11:48 AM

Wizzard Tex-editor Metainfo Addapplet
Add picture from clipboard (Maximum size: 500 MB)