0

I would appreciate your guidance in resolving this issue: I want to reset to zero the exercise number and the indication of the exercise and its correction:

\documentclass[11pt,draft]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage{ntheorem}
\usepackage[most]{tcolorbox}
\usepackage{bbm}
\usepackage[nosolutionfiles]{answers} % for immediate answers (not stored in a file)
\theoremstyle{plain}
\theoremindent=40pt
\theoremheaderfont{\normalfont\bfseries\hspace{-\theoremindent}}
\newtheorem{proposition}{Proposition}
\newtheorem{corollary}{Corollaire}
\newtheorem{theorem}{Théorème}
\newtheorem{lemma}{Lemme}
\newtheorem{remark}{Remarque}
\newtheorem{definition}{Définition}
\newtheorem{example}{Exemple}
\newtheorem{proof}{Démonstration}
\usetikzlibrary{decorations.pathmorphing}
\tcbuselibrary{skins}
\tcolorboxenvironment{theorem}{
    blanker,
    breakable,
    before skip=\topsep,
    after skip=\topsep,
    borderline west={1pt}{20pt}{double, shorten <=12pt}
    }
\tcolorboxenvironment{proposition}{
    blanker,
    breakable,
    before skip=\topsep,
    after skip=\topsep,
    borderline west={1pt}{20pt}{double, shorten <=12pt}
    }
\tcolorboxenvironment{definition}{
    blanker,
    breakable,
    before skip=\topsep,
    after skip=\topsep,
    borderline west={1pt}{20pt}{decoration={zigzag,amplitude=2pt,pre=moveto,pre length=12pt},decorate}
    }
\newtheorem{exo}{Exercice}
\Newassociation{correction}{Soln}{mycor}
\Newassociation{indication}{Indi}{myind}
%\newcommand{\precorrection}{~{\bf \footnotesize [Exercice corrig\'e]}}
%\newcommand{\preindication}{~{\bf \footnotesize [Indication]}}
\renewcommand{\Solnlabel}[1]{\bf \emph{Correction #1}}
\renewcommand{\Indilabel}[1]{\bf \emph{Indication #1}}
%\newenvironment{exo}[1][]
 % {\normalfont}

\newcommand{\flag}[1]{}
\newtheorem{question}{Question}
\def\Tiny{\fontsize{4pt}{4pt}\selectfont}
\newcommand*{\eqdef}{\ensuremath{\overset{\mathclap{\text{\Tiny def}}}{=}}}
\begin{document}

\Opensolutionfile{mycor}[ficcorex]
\Opensolutionfile{myind}[ficind]

\section{Exercices:}
\begin{exo}
La différence symétrique de deux ensembles $A$ et $B$ est définie par
\[
A\Delta B \eqdef  (A \cup B)\setminus (A \cup B):
\]
Démontrer que si $A, B, C$ sont trois ensembles distincts .........
\end{exo}

 \begin{indication}
\begin{enumerate}
\item  Indication : on pourra utiliser l'inclusion $$A\Delta B \subset (A\Delta C) \cup (C\Delta B).$$
\end{enumerate}
\end{indication}
 \begin{correction}
 Commençons par montrer l'inclusion $A \Delta B \subset (A\Delta C) \cup  (C\Delta B)$ ..........
 \end{correction}
\end{document} 

Question

Any help is welcome!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.