I am using xsim
to type exercise-solution environments in my document.
I want to change the string used for the header in \printsolutions[headings=true]
.
The document language is Hebrew, so I want it to be written in that language. Moreover, the solutions should appear at the end of the chapter, and so I want it to read "Solutions to the exercises in chapter \thechapter
":
\thechapter פתרונות לתרגילים בפרק
I am new to the xsim
package (and its manual), and I couldn't find an answer for that in the manual.
A MWE:
%!TEX TS-program = xelatex
\documentclass{book}
\usepackage{xsim}
\xsimsetup{solution/print = false,}
\xsimsetup{
exercise/name={תרגיל},
exercises/name={תרגילים},
solution/name={פתרון},
solutions/name={פתרונות},
exercise/within = chapter,
}
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\newfontfamily\hebrewfont{David CLM}[Script=Hebrew]
\begin{document}
\chapter{גיאומטריה}
\section{הקדמה}
\begin{exercise}[subtitle={משפט פיתגורס}]
הוכח שסכום שטחי הריבועים, הבנויים על הניצבים במשולש ישר זווית, שווה לשטח הריבוע הבנוי על היתר.
\end{exercise}
\begin{solution}
מוכיחים בקלות.
\end{solution}
\printsolutions[headings=true]
\end{document}