blob: d45cd2f072995957a8df16654693503f1e1f56f0 (
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
|
% Aufgabenstil für Aufgaben (und Zusatzaufgaben) mit Punkten am Rand
\xsimstyle{schule-randpunkte}
\DeclareExerciseEnvironmentTemplate{schule-randpunkte} {%
\addpenalty{-300}\smallskip\noindent\textbf{%
% Falls Zusatzaufgabe:
\ifthenelse{\equal{\ExerciseType}{zusatzaufgabe}}{\llap{\GetExerciseProperty{symbol}$\bigstar$}~}{\llap{\GetExerciseProperty{symbol}~}}%
\XSIMmixedcase{\GetExerciseName}\nobreakspace
\GetExerciseProperty{counter}%
\IfInsideSolutionF{%
\IfExercisePropertySetT{subtitle}{
{\nobreakspace\GetExercisePropertyT{subtitle}{\normalfont \itshape \PropertyValue}}}%
}%
}\smallskip\\
% Stil für Punkteanzeige
\GetExercisePropertyT{points}{%
\marginpar
{%
\IfInsideSolutionF{\rule{0.8cm}{1pt}\slash}%
\PropertyValue
\GetExercisePropertyT{bonus-points}
{\nobreakspace(+\PropertyValue)}%
\nobreakspace\XSIMtranslate{point-abbr}%
}%
}%
}
{\IfInsideSolutionT{\par}}
|