summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-keinenummer.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-keinenummer.code.tex')
-rw-r--r--macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-keinenummer.code.tex30
1 files changed, 30 insertions, 0 deletions
diff --git a/macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-keinenummer.code.tex b/macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-keinenummer.code.tex
new file mode 100644
index 0000000000..e7b1c2896c
--- /dev/null
+++ b/macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-keinenummer.code.tex
@@ -0,0 +1,30 @@
+% Standardstil für normale Aufgaben (und Zusatzaufgaben) mit Punkten neben der Subsection
+
+\xsimstyle{schule-keinenummer}
+
+\DeclareExerciseEnvironmentTemplate{schule-keinenummer} {%
+ \addpenalty{-3000}\smallskip\noindent\textbf{%
+ % Falls Zusatzaufgabe:
+ \ifthenelse{\equal{\ExerciseType}{zusatzaufgabe}}{\llap{\GetExerciseProperty{symbol}$\bigstar$}~}{\llap{\GetExerciseProperty{symbol}~}}%
+ \XSIMmixedcase{\GetExerciseName}\nobreakspace
+ \IfInsideSolutionF{%
+ \IfExercisePropertySetT{subtitle}{
+ {\nobreakspace\GetExercisePropertyT{subtitle}{\normalfont \itshape \PropertyValue}}}% Subtitle setzten
+ }%
+ %
+ % Stil für Punkteanzeige
+ \GetExercisePropertyT{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}}%
+ )
+ }
+ }\par\smallskip
+ %
+}
+{\IfInsideSolutionT{\par}}%