blob: 899754470c9a01b8c10135c86329a2a8682c494f (
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
|
% 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,
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}
|