1

Consider the following example code for xsim (in German):

\documentclass{article}


\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}


\usepackage{xsim}


\DeclareExerciseType{Aufgabe}{
exercise-env= aufgabe,
solution-env= loesung ,
exercise-name= Aufgabe,
solution-name= {zu Aufgabe},
exercise-template = default ,
solution-template = default
} 



\begin{document}

\section*{Aufgaben}

\begin{aufgabe}
Beweisen Sie den folgenden Satz \dots
\end{aufgabe}
\begin{loesung}
Der Beweis geht wie folgt: 
\end{loesung}

\section*{Lösungen}

\printsolutions[headings=false]

\end{document}

Output:

enter image description here

As you can see it changes the case for the solution-name from "zu Aufgabe" to "Zu aufgabe". Why is this the case and how can I prevent it?

1 Answer 1

2

Just do \renewcommand\XSIMmixedcase[1]{#1} somewhere in the preamble:

\documentclass{article}

\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage[blank]{xsim}

\DeclareExerciseType{Aufgabe}{
  exercise-env = aufgabe,
  solution-env = loesung ,
  exercise-name = Aufgabe,
  solution-name = {zu Aufgabe},
  exercise-template = default ,
  solution-template = default
} 

\renewcommand\XSIMmixedcase[1]{#1}

\begin{document}

\section*{Aufgaben}

\begin{aufgabe}
Beweisen Sie den folgenden Satz \dots
\end{aufgabe}
\begin{loesung}
Der Beweis geht wie folgt: 
\end{loesung}

\section*{Lösungen}

\printsolutions[headings=false]

\end{document}

enter image description here


BTW: if you don't need or want the predefined exercise type exercise you can load xsim with the blank option. Then the environments exercise and solution will not be defined by xsim. (Probably not really important, though…)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .