diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-369803.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-369803.tex | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-369803.tex b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-369803.tex index 58b6800f937..e91e795353d 100644 --- a/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-369803.tex +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-369803.tex @@ -1,6 +1,5 @@ % https://tex.stackexchange.com/q/369803 \documentclass[a4paper,parskip=half]{scrartcl} -\usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{amsmath} @@ -12,19 +11,16 @@ \usepackage{xsim,siunitx} \DeclareExerciseTagging{difficulty} -\DeclareExerciseEnvironmentTemplate{custom} - {% - \subsection* - {% - \XSIMmixedcase{\GetExerciseName}\nobreakspace - \GetExerciseProperty{counter}% - \IfInsideSolutionF - {% - \IfExercisePropertySetT{subtitle} - { {\normalfont(\GetExerciseProperty{subtitle})}}% - }% - }% - }{} +\DeclareExerciseEnvironmentTemplate{custom}{% + \subsection*{% + \XSIMmixedcase{\GetExerciseName}\nobreakspace + \GetExerciseProperty{counter}% + \IfInsideSolutionF{% + \IfExercisePropertySetT{subtitle} + { {\normalfont(\GetExerciseProperty{subtitle})}}% + }% + }% +}{} \xsimsetup{ exercise/name = \XSIMtranslate{question} , |