blob: 0b10de64f7dddce66898bc8e4a7bedbe5fd02df5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
% Stil mit tcolorbox, inkl. Anzeige von Bonuspunkten
\xsimstyle{schule-tcolorbox}
\DeclareExerciseEnvironmentTemplate{schule-tcolorbox}
{%
\lstset{basicstyle=\ttfamily, numbersep=0.5em,numbers=left,numberstyle=\color{black!55}} % Quellcode passend formatieren
\tcolorbox[
colback = white,
halign title=flush left,
title =
\sffamily
\textbf{\ifthenelse{\equal{\ExerciseType}{zusatzaufgabe}}{\llap{\GetExerciseProperty{symbol}$\bigstar$}}{\llap{\GetExerciseProperty{symbol}}}
\GetExerciseName~\GetExerciseProperty{counter}}\xspace%
\GetExercisePropertyT{subtitle}{\textit{\PropertyValue}}%
\IfInsideSolutionF{%
\GetExercisePropertyT{points}{ % notice the space
\hfill
% ohne (
\printgoal{\PropertyValue}
%
\GetExercisePropertyT{bonus-points}
{(+\PropertyValue)\xspace}%
\IfExerciseGoalSingularTF{points}
{\XSIMtranslate{point}}
{\XSIMtranslate{points}}%
% \nobreakspace\XSIMtranslate{point-abbr}
% ohne )
}%
}%
]%
}
{\endtcolorbox}
|