1 Block elements

Demonstratie 1.1

If you want to show a demonstration in this lession, you can use the element demo to mark it.

1.1 Simple blocks

The document is written in eXtensible Markup Language (XML) with the grammar xml2lms.dtd. Here you see the use of acronyms. You can also select the short form: LMSLearning Management System or only the long form: Learning Management System.

We use the p element to mark a paragraph. We have also the elements dl, ol, and ul for lists. On Beamer slides, the li element supports the attribute ovl:

Slide 1.1 Demonstration of overlays

Here you see also the using of slides. You can produce HTML slides (format slide) and LaTeX Beamer slides (format beamer). The slides are embedded in the script (formats cp and latex).

1.2 Teaching elements

To mark tasks, use the element task with one of the classes task (default, you can omit it), question, and discussion.

Taak 1.1

Compute the first 100 prime numbers.

Vraag 1.2
How many prime number have you found?
Beschrijving 1.3
Discuss the question, if there are infinite prime numbers.

You will see the answer text only if you transform the document with the option

xml2lms -f format -d draft

For remarks, use the element remark with the classes remark (default), definition, hint, and warning.

Opmerking 1.1

It is not so simple to compute a prime number with 1000 digits. But we have stochastic method like the Miller-Rabin method to check if such a number is prime with a very high probability.

1.3 Listings

You can use listings in two forms: simple with element example, or you can add a title and show it in the list of listings if you embed the example in a listing element.

A simple listing can show the content in three classes: default (don't add the class), syntax, and result.

leftPart &= rightPart \\

To show a file, use the attribute href (shows a link for downloading) or src. You can restrict the shown lines with the attribute lines and set the encoding with attribute encoding. We put the example here in a listing element.

<title>Prime numbers</title>
We start with a definition. There is no extra element for it, we
use the <term>remark</term> element with class <term>definition</term>:
<slide id="slide:defprime">
<title>Defintion of prime numbers</title>
<remark class="definition">
<title>Prime number</title>
A positive integer is <term>prime</term>, if it has exactly two dividors:
\text{$p$ is prime}\, \Leftrightarrow\,\forall i = 2\ldots p-1:\, i\not|p
For a theorem, we use a <term>remark</term> element with class 
Lijst 1.1 Source of formula.xml (part)

1.4 Figures

Use the fig element to include a figure. Omit the file extension, xml2lms looks for the appropriate format. The formats png and jpg can be used for LaTeX and HTML output, but for scaleable graphics you should better provide a pdf file. SVG is not supported yet (but it would be useful :-).

Figuur 1.1 The transformation process