diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-tcolorbox.code.tex |
Initial commit
Diffstat (limited to 'macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-tcolorbox.code.tex')
-rw-r--r-- | macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-tcolorbox.code.tex | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-tcolorbox.code.tex b/macros/latex/contrib/schule/data/xsim-style/xsim.style.schule-tcolorbox.code.tex new file mode 100644 index 0000000000..899754470c --- /dev/null +++ b/macros/latex/contrib/schule/data/xsim-style/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} |