I want to type some exercises at the end of a certain chapter in a book. Furthermore, I'm using the xepersian package to type the book in Persian. I have got some problems in using the exercises package for the typesetting of the exercises. They are:
- The title of exercises is not typeset in Persian which is (تمرینها)
- I want to have the number of exercises according to the chapter such as 1.1, 1.2, 1.3 ...
- I want to change the
:symbol into a dot for each exercise.
In the following I attach the minimal code:
\documentclass{book}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{exercises}
\usepackage{xepersian}
\settextfont{Yas}
\begin{document}
\chapter{فصل 1}
\begin{exercise}
محاسبه کند
$ 1 + 2 $
\end{exercise}
\end{document}



exercisename=...to set the name of the exercises and you can do\renewcommand\exercises@formatnumbers[1]{\thechapter.\arabic{#1}}but the colon is hard-coded intoexercisesI'm afraid. You may tryxsimas an alternative package… it allows you complete control over the layout. – cgnieder Jan 02 '21 at 10:50exercisename? The redefinition of\exercises@formatnumbers?xsim? I tested all three before I suggested them to you and all three did what they were supposed to… “did not work out” is not very specific. – cgnieder Jan 02 '21 at 17:35\exercises@formatnumbers– AYBRXQD Jan 02 '21 at 17:42\begin{document}. Then I got the error thatCommand \exercises undefined. \renewcommand\exercises...– AYBRXQD Jan 03 '21 at 05:31\makeatletterand\makeatother… I added an answer – cgnieder Jan 03 '21 at 10:52