summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-default.code.tex
blob: a9393dc2a1f1467a534b193886f60f1b7e00497d (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
34
35
36
37
38
39
40
41
% Standardstil für normale Aufgaben (und Zusatzaufgaben) mit Punkten neben der Subsection

\xsimstyle{schule-default}

\DeclareExerciseEnvironmentTemplate{schule-default} {%
    \addpenalty{-3000}\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}}}% Subtitle setzten
                }%
        % Stil für Punkteanzeige
        \GetExercisePropertyTF{points}{%
            \normalfont% Punkte in normal font/Shape aber auf Ebene der Subsection
            \nobreakspace(\PropertyValue
            \GetExercisePropertyT{bonus-points}
            {\nobreakspace\small(+\PropertyValue)}% Kleinere Bonuspunkte?
            \nobreakspace%
                \IfExerciseGoalSingularTF{points}
                    {\XSIMtranslate{point}}
                    {\XSIMtranslate{points}}%
            )
        }{%Keine Punkte
            \GetExercisePropertyT{bonus-points}{
                \normalfont% Punkte in normal font/Shape aber auf Ebene der Subsection
                \nobreakspace(0\nobreakspace\small(+\PropertyValue)% Kleinere Bonuspunkte?
                \nobreakspace%
                \IfExerciseGoalSingularTF{bonus-points}
                    {\XSIMtranslate{point}}
                    {\XSIMtranslate{points}}%
                )
            }
        }
    }\par\smallskip
    %
    %
}
{\IfInsideSolutionT{\par}}%