AMC and multi-lingual exams
Version 1 (Pieter Van den Hombergh, 04/06/2014 05:34 pm)
| 1 | 1 | h1. AMC and multi-lingual exams |
|
|---|---|---|---|
| 2 | 1 | ||
| 3 | 1 | At our institute (Fontys Hogeschool voor techniek en logistiek in Venlo NL) we teach to Dutch and German students. |
|
| 4 | 1 | In the first two semesters we teach in Dutch ans German, the exams are accordingly. |
|
| 5 | 1 | ||
| 6 | 1 | The lessons and exams that the students receive in these lessons should be the same, content wise. |
|
| 7 | 1 | That is why I create my lecture sheets in LaTeX-Beamer, with multiple languages in the same file. |
|
| 8 | 1 | ||
| 9 | 1 | By keeping the content in one file, it is much easier to keep the content the same, provided you the languages used to some degree. |
|
| 10 | 1 | ||
| 11 | 1 | The trick is trivial. |
|
| 12 | 1 | Define a set of macros each with one argument, one for each language. The macro for the active language simply passes its contents, the |
|
| 13 | 1 | macro for the inactive language(s) drops ist content. |
|
| 14 | 1 | ||
| 15 | 1 | Example adapted to the AMC doc. |
|
| 16 | 1 | <pre> |
|
| 17 | 1 | \newcommand\DE[1]{#1} % active |
|
| 18 | 1 | \newcommand\NL[1]{#1} % active |
|
| 19 | 1 | \newcommand\EN[1]{#3} % active |
|
| 20 | 1 | ||
| 21 | 1 | In the production file i deactivate the inactive languages like this: |
|
| 22 | 1 | \renewcommand\DE[1]{} % inactive |
|
| 23 | 1 | \renewcommand\NL[1]{} % inactive |
|
| 24 | 1 | \renewcommand\EN[1]{#1} % active |
|
| 25 | 1 | ||
| 26 | 1 | \begin{questionmult} |
|
| 27 | 1 | \begin{choices} |
|
| 28 | 1 | \end{questionmult} |
|
| 29 | 1 | </pre> |