summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/schule/Module/Aufgaben/xsim.style.schule-tcolorbox.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/schule/Module/Aufgaben/xsim.style.schule-tcolorbox.code.tex')
-rw-r--r--Master/texmf-dist/doc/latex/schule/Module/Aufgaben/xsim.style.schule-tcolorbox.code.tex32
1 files changed, 32 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/schule/Module/Aufgaben/xsim.style.schule-tcolorbox.code.tex b/Master/texmf-dist/doc/latex/schule/Module/Aufgaben/xsim.style.schule-tcolorbox.code.tex
new file mode 100644
index 00000000000..899754470c9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/schule/Module/Aufgaben/xsim.style.schule-tcolorbox.code.tex
@@ -0,0 +1,32 @@
+% Stil mit tcolorbox, inkl. Anzeige von Bonuspunkten
+
+\xsimstyle{schule-tcolorbox}
+
+\DeclareExerciseEnvironmentTemplate{schule-tcolorbox}
+{%
+\lstset{basicstyle=\ttfamily, numbersep=0.5em,numbers=left,numberstyle=\color{black!55}} % Quellcode passend formatieren
+\tcolorbox[
+ colback = white,
+ title =
+ \sffamily
+ \textbf{\ifthenelse{\equal{\ExerciseType}{zusatzaufgabe}}{\llap{\GetExerciseProperty{symbol}$\bigstar$}}{\llap{\GetExerciseProperty{symbol}}}
+ \GetExerciseName~\GetExerciseProperty{counter}}\xspace%
+ \GetExercisePropertyT{subtitle}{\textit{\PropertyValue}}%
+ \IfInsideSolutionF{%
+ \GetExercisePropertyT{points}{ % notice the space
+ \hfill
+ % ohne (
+ \printgoal{\PropertyValue}
+ %
+ \GetExercisePropertyT{bonus-points}
+ {(+\PropertyValue)\xspace}%
+ \IfExerciseGoalSingularTF{points}
+ {\XSIMtranslate{point}}
+ {\XSIMtranslate{points}}%
+% \nobreakspace\XSIMtranslate{point-abbr}
+ % ohne )
+ }%
+ }%
+ ]%
+}
+{\endtcolorbox}