1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
% http://tex.stackexchange.com/q/338165
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{leading,microtype}
\usepackage[french]{babel}
\usepackage{tasks}
\usepackage{xsim}
\usepackage{tcolorbox}
\tcbuselibrary{breakable, skins}
\settasks{ label = \arabic*. }
\DeclareExerciseEnvironmentTemplate{boxed}{%
\tcolorbox[
enhanced ,
attach boxed title to top center = {yshift=-7.5pt} ,
colback = white , colbacktitle = white ,
coltitle = black , colframe = black ,
boxed title style = { colframe = white } ,
fonttitle=\bfseries,
sharp corners=all,
breakable,
title=
\XSIMmixedcase{\GetExerciseName}%
\IfInsideSolutionF{%
~\GetExerciseProperty{counter}%
\IfExercisePropertySetT{subtitle}{: \GetExerciseProperty{subtitle}}%
}%
]
}{\endtcolorbox}
\xsimsetup{
exercise/template = boxed ,
solution/template = boxed ,
solution/print = true
}
\leading{15pt}
\newcommand*\complement{\overline}
\newcommand*\union{\cup}
\newcommand*\intersection{\cap}
\newcommand*\set[1]{\{#1\}}
\begin{document}
\begin{exercise}[subtitle=Set Calculus]
Soient $E=\set{1,2,3,4,5,6,7}$ et $A$, $B$, $C$ et $D$ quatre parties de E
d\'efinies par $A=\set{1,2,3,4}$, $B=\set{4,5,6,7}$, $C=\set{1,3,5,7}$ et
$D=\set{2,3,4,5,6}$.
\begin{tasks}(2)
\task Calculer $\complement{A}$.
\task Calculer $(A\union B) \intersection (C\union D)$.
\task Calculer $(A\intersection B) \union (C\intersection D)$.
\task Calculer $\complement{(\complement{A}\union B)} \union
\complement{(C\intersection D)}$.
\end{tasks}
\end{exercise}
\begin{solution}
\begin{tasks}(2)
\task $\set{5,6,7}$
\task $E$
\task $\set{3,4,5}$
\task $\set{1,2,3,4,6,7}$
\end{tasks}
\end{solution}
\end{document}
|