summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/schule/Module/Aufgaben/xsim.style.schule-randpunkte.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/schule/Module/Aufgaben/xsim.style.schule-randpunkte.code.tex')
-rw-r--r--Master/texmf-dist/doc/latex/schule/Module/Aufgaben/xsim.style.schule-randpunkte.code.tex28
1 files changed, 28 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/schule/Module/Aufgaben/xsim.style.schule-randpunkte.code.tex b/Master/texmf-dist/doc/latex/schule/Module/Aufgaben/xsim.style.schule-randpunkte.code.tex
new file mode 100644
index 00000000000..d45cd2f0729
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/schule/Module/Aufgaben/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}}