If you want to show a demonstration in this lession, you can use the element demo to mark it.
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:
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).
To mark tasks, use the element task with one of the classes task (default, you can omit it), question, and discussion.
Compute the first 100 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.
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.
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.
\begin{align}
leftPart &= rightPart \\
...
\end{align}
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> <p> We start with a definition. There is no extra element for it, we use the <term>remark</term> element with class <term>definition</term>: </p> <slide id="slide:defprime"> <title>Defintion of prime numbers</title> <remark class="definition"> <title>Prime number</title> <p> A positive integer is <term>prime</term>, if it has exactly two dividors: </p> <eq> <![CDATA[ \text{$p$ is prime}\, \Leftrightarrow\,\forall i = 2\ldots p-1:\, i\not|p ]]> </eq> </remark> </slide> <p> For a theorem, we use a <term>remark</term> element with class ...
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 :-).