This document contains an overview of the functionality of Ximera. It can also serve as a testcase, and as a source to copy pieces of code from.

You are using the ONLINE version of the course; there are also PDF versions.

Exercises and interactive content

Solve the following questions that use the command \answer (and compare the LaTeXcode with the PDF and the online version):

A simple exercise with \answer{2}. Note that 1+1 is also a correct answer.

With \answer[format=integer]{2} you can no longer enter 1+1.

Here \answer[given]{2} is used, so that the answer is also in the handout. In the standard PDF, an additional block is added to make it stand out. Online there is no difference with \answer{2}

and and

Here \answer{\frac{1}{2}}, respectively \answer{1/2} and \answer{0.5} are used.

In each case, the same answers are correct, so both and as, for example, .

Use a point to enter decimals.
Whether there is a comma or point in the exercise, you decide for yourself.

CAUTION: Use only \frac for fractions (and not \dfrac, because that doesn’t work online. But \answer does work in display mode, and then you get the \dfrac output with the answer.)

Enter the square root of to the power of :

Here \answer[onlineshowanswerbutton]{\sqrt{x^{\log 2}}} is used, so that more complex answers can be entered, but with \answer[onlineshowanswerbutton] you can also directly show the correct answer via an additional key.

The result of the exercise will then be worthless: the answer is always correct ... (unless the author has made a mistake).

Write with a summation the sum of the square roots of the numbers to each to the power of :

With \answer[onlinenoinput]{\sum_x^{x=100}(\sqrt{x^{\log 2}})} not even an input field is provided for complex answers. With \answer[onlinenoinput] only a button ’Show Answer’ appears, you can’t enter anything.

Use \answer[tolerance=.05]{0.33} to tolerate rounding. You may deviate by 0.05.

Solve the following multiple choice questions:
neither of the first two optionsthe third option

The command \wordchoice provides a dropdown in HTML.

neither of the previous answersthe previous answer

The \begin{multipleChoice} command provides a table in HTML with a maximum of one choice. There can be multiple correct answers!

neither of the previous answersthe previous answer

The \begin{selectAll} command provides a table in HTML where all correct choices must be selected.

Solve the following more difficult questions with hints and feedback.
Compare the questions in the PDF with the online version.
neither of the previous answersthe previous answer

By definition, , and addition is associative.

For we have introduced a shorter notation.
If then

The answer is an integer, but first try for example , and then an incorrect integer, for example .)

[0] Have you tried yet (because then you get very useful feedback!)

Review the answer to the previous question for the precise meaning of the symbol !

[3] This is just elementary addition, yes ....
Some answers are too difficult to be entered, and then \answer[onlinenoinput] only shows a ’Show Answer’ button:

Write with a summation the sum of the square roots of the numbers to each to the power of :

Solution:
Here comes a solution to the exercise.

PICT

Sometimes answers can be entered, but it is not necessarily useful, and then \answer[onlineshowanswerbutton] shows an additional key to display the correct answer:

Write the square root of to the power of ?

Solution:
[show] Here comes a solution to the exercise.

PICT

Hyperlinks and references

Now notice that we can refer you to all sorts of places:

\begin{align} 1 + 1 & = 2 \label{links_test1} \\ 2 + 2 & = 4 \label{links_test2} \end{align}

First exercise \ ref{itm:showCase:eerste_oefening} \hyperref[itm:showCase:eerste_oefening]{text of your choice}
3 example above





Last exercise \ ref{itm:showCase:laatste_oefening} \hyperref[itm:showCase:laatste_oefening]{text of your choice}
20 example above





Next section \ ref{sec:showCase:integratie} \hyperref[sec:showCase:integratie]{text of your choice}
the section about integration





Previous align \ ref{links_test1} \hyperref[links_test1]{text of your choice}
?? because 1+1=2





Another activity \ ref{act:ximeraArchitectuur} \hyperref[act:ximeraArchitectuur]{text of your choice}
?? part about Architecture





An example elsewhere \ ref{vb:gebruik_omgevingen} \hyperref[vb:gebruik_omgevingen]{text of your choice}
?? text of your choice





Something non-existent \ ref{xazerty} \hyperref[xazerty]{text of your choice}
?? this link does not exist
(a)
todo: add and test \tag
(b)
todo: other ref-systems (varioref/hyperref/nameref/cleveref)

Integration with other environments

Introduction to trigonometry

We can insert YouTube videos, for example with a fascinating introduction to trigonometry:

But also an interactive graph of the cosine with Desmos:

\[ \graph [xmin=-5,xmax=20,ymin=-1,ymax=1]{y=cos(x)} \]

Now study the properties of in Geogebra:

Styling

The online version can be styled by adding css files:

  • global.css in the root folder of the repository: all activities in the repository use this styling
  • xoursefilename.css in the folder of the xoursefilename.tex file: all activities in the xourse use this styling
  • activityfilename.css in the folder of the activityfilename.tex file: styling specific to one activity.

The ximeraShowcase.css file in this case specifies that the questions have a purple bar not only on the left but also on the right side.

2024-07-15 10:40:40