You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: localization/basic.tex
+22-13Lines changed: 22 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -23,21 +23,22 @@
23
23
%%\catcode`\"=12
24
24
25
25
\section*{Basic example}%%
26
-
27
-
Notice the ''Problem'', ''Question'', ''Exercise'', and ''Exploration'' environment titles...
26
+
27
+
Using \verb|babel| and its \verb|\selectlanguage| command, the labels of the Ximera environments are translated to the current language,
28
+
as in the following ''Problem'', ''Question'', ''Exercise'', and ''Exploration''.
28
29
\begin{problem}%
29
-
This is a problem, and the answer is 1! %$\answer{1}$%%%
30
+
This is a problem, and $1+1 = \answer{2}$%%%
30
31
\begin{multipleChoice}
31
32
\choice{This is a wrong choice}
32
33
\choice[correct]{this is a correct choice}
33
34
\end{multipleChoice}%%
34
35
\end{problem}
35
36
36
37
\begin{question}
37
-
This is a problem, and the answer is 2! %$\answer{2}$
38
+
This is a question.
38
39
\begin{selectAll}
39
40
\choice{This is a wrong choice}
40
-
\choice[correct]{This is a correct choice. Note that it does have feedback this time though!}
41
+
\choice[correct]{This is a correct choice, with feedback now.}
41
42
\end{selectAll}%%%%
42
43
\begin{feedback}
43
44
Here's some feedback! Note that it is trivial to remove the text, if you don't want it to say ''feedback: '' before the feedback. I only did it here to add/demo the infrastructure for online feedback (since the pdf does include ''feedback: '' by default, so that needed to be translated)%
@@ -47,22 +48,30 @@ \section*{Basic example}%%
47
48
\end{feedback}
48
49
\end{question}
49
50
50
-
\begin{exercise}
51
+
\begin{exercise}$2+4=\answer[onlinenoinput]{6}$.
51
52
\begin{hint}
52
-
Here's a hint - the answer is 3!, not 3.
53
+
Here's a hint: $2 + 4 = 2\times3$.
53
54
\end{hint}
54
-
Note: ''Hint'' is redefined in this KU Lueven printstyle and replaced by xmHint. Currently this translation works on the ''hint'' environment, but not the ''xmHint'' environment. We need to decide what we are using and I will write the code to support that.
55
-
This is a problem: $\answer{6}$
55
+
Note: ''Hint'' is redefined in this KU Leuven printstyle and replaced by xmHint. Currently this translation works on the ''hint'' environment, but not the ''xmHint'' environment. We need to decide what we are using and I will write the code to support that.
56
+
57
+
This is an exporation: $4! = \answer{24}$
56
58
\end{exercise}
57
59
58
-
\begin{exploration}
59
-
This is a problem, and the answer is 4! $\answer{24}$
60
-
\end{exploration}
61
60
61
+
% The language can be overwritten locally, e.g with the \verb|\selectlanguage{dutch}|:
62
+
% \selectlanguage{dutch}
63
+
% \begin{theorem}
64
+
% Dit is stelling één: $1+1 = $ \wordChoice{\choice[correct]{twee}\choice{drie}}.
65
+
% \end{theorem}
62
66
63
-
\section*{Extended list of environments}%%
67
+
% \selectlanguage{french}
68
+
% \begin{theorem}
69
+
% Ceci est theorème un: $1+1 = $ \wordChoice{\choice[correct]{deux}\choice{trois}}.
0 commit comments