summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-randpunkte.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-randpunkte.code.tex')
-rw-r--r--macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-randpunkte.code.tex28
1 files changed, 28 insertions, 0 deletions
diff --git a/macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-randpunkte.code.tex b/macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-randpunkte.code.tex
new file mode 100644
index 0000000000..d45cd2f072
--- /dev/null
+++ b/macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-randpunkte.code.tex
@@ -0,0 +1,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}}