\documentclass[a4paper,12pt]{article}
\usepackage{myXsim}

\title{DS 10}
\tribe{Sixième}
\date{30 mai 2018}

\sujet{1}

\RequirePackage{contour}
\newcommand{\clockATick}[2]{%
    % colors
    \colorlet{minutes color}{blue!50!cyan!70!black}
    \colorlet{bg hours 0}{yellow}
    \colorlet{bg hours 1}{red!50}
    \colorlet{hours color}{red!80!black}
    % styles
    \tikzset{
      minutes/.style={circle,inner sep=0,text width=5mm,align=center,font=\bfseries},
      minutes 0/.style={fill=minutes color,text=white,minutes},
      minutes 1/.style={text=minutes color,fill=white,minutes},
      minutes font/.style={font=\normalsize},
      hours/.style={font=\fontsize{60}{66}\selectfont\bfseries,text=hours color,align=center},
      mini hours font/.style={font=\fontsize{40}{46}\selectfont\bfseries},
    }
    % radii
    \def\bigradius{80mm}
    \def\minuteradius{75mm}
    \def\hourradius{60mm}
    \def\minihourminradius{25mm}
    \def\minihourmaxradius{45mm}
    \pgfmathsetmacro\minihourradius{(\minihourmaxradius + \minihourminradius)*.5}
    \def\hourwidth{2mm}
    \def\minutewidth{1mm}

    % big circle
    \filldraw [fill=white,draw=minutes color] (0,0) circle (\bigradius);

    % minutes marks
    \foreach \angle[count=\c from 0,evaluate={\c as \hourmark using notequal(int(mod(\c,5)),0)}]
    in {0,6,...,354}{ \path (-\angle:\minuteradius) node[minutes \hourmark]{\c}; }

    % hours marks
    \foreach \angle[count=\c from 1,evaluate={\c as \col using int(mod(\c,2))}] in {30,60,...,360}{

      \path (-\angle:\hourradius) node[hours]{\c};

      \path[fill=bg hours \col]
      (-\angle:\minihourminradius) -- (-\angle:\minihourmaxradius)
      arc(-\angle:-\angle-30:\minihourmaxradius) -- (-\angle-30:\minihourminradius)
      arc(-\angle-30:-\angle:\minihourminradius) -- cycle;

      \path (-\angle-15:\minihourradius pt) node[mini hours font]{\textcolor{white}{\contour{hours color}{\c}}};
    }

    % hands
    \pgfmathsetmacro\hourangle{-#1*30-#2*.5}
    \pgfmathsetmacro\minuteangle{-#2*6}
    \fill[rotate=\hourangle,fill=hours color] ++(0,\hourwidth) arc(90:270:\hourwidth) -- ++(50mm,0)
    -- ++(\hourwidth,\hourwidth) -- ++(-\hourwidth,\hourwidth) -- ++(-50mm,0) -- cycle ;
    \fill[rotate=\minuteangle,fill=minutes color] ++(0,\minutewidth) arc(90:270:\minutewidth) -- ++(70mm,0)
    -- ++(\minutewidth,\minutewidth) -- ++(-\minutewidth,\minutewidth) -- ++(-70mm,0) -- cycle ;
}

\newcommand{\clockBTick}[2]{%
    \draw  (0,0) circle (2cm);
    \foreach \angle / \label in
    {0/3, 30/2, 60/1, 90/12, 120/11, 150/10, 180/9,
    210/8, 240/7, 270/6, 300/5, 330/4}
    {
        \draw (\angle:1.8cm) -- (\angle:2cm);
        \draw (\angle:1.4cm) node{\textsf{\label}};
    }
    \foreach \angle[count=\c from 0] in {0,6,...,354}
    {
        \draw (\angle:1.9cm) -- (\angle:2cm);
    }
    \draw[rotate=90] (0,0) -- (-#1*30-#2*30/60:0.7cm); % hours
    \draw[rotate=90] (0,0) -- (-#2*6:1.2cm); % minutes
    \path [fill=black] (0,0) circle (3pt);
    \path [fill=red] (0,0) circle (1.5pt);
}

\newcommand{\clockA}{%
    % colors
    \colorlet{minutes color}{blue!50!cyan!70!black}
    \colorlet{bg hours 0}{yellow}
    \colorlet{bg hours 1}{red!50}
    \colorlet{hours color}{red!80!black}
    % styles
    \tikzset{
      minutes/.style={circle,inner sep=0,text width=5mm,align=center,font=\bfseries},
      minutes 0/.style={fill=minutes color,text=white,minutes},
      minutes 1/.style={text=minutes color,fill=white,minutes},
      minutes font/.style={font=\normalsize},
      hours/.style={font=\fontsize{60}{66}\selectfont\bfseries,text=hours color,align=center},
      mini hours font/.style={font=\fontsize{40}{46}\selectfont\bfseries},
    }
    % radii
    \def\bigradius{80mm}
    \def\minuteradius{75mm}
    \def\hourradius{60mm}
    \def\minihourminradius{25mm}
    \def\minihourmaxradius{45mm}
    \pgfmathsetmacro\minihourradius{(\minihourmaxradius + \minihourminradius)*.5}
    \def\hourwidth{2mm}
    \def\minutewidth{1mm}

    % big circle
    \filldraw [fill=white,draw=minutes color] (0,0) circle (\bigradius);

    % minutes marks
    \foreach \angle[count=\c from 0,evaluate={\c as \hourmark using notequal(int(mod(\c,5)),0)}]
    in {0,6,...,354}{ \path (-\angle:\minuteradius) node[minutes \hourmark]{\c}; }

    % hours marks
    \foreach \angle[count=\c from 1,evaluate={\c as \col using int(mod(\c,2))}] in {30,60,...,360}{

      \path (-\angle:\hourradius) node[hours]{\c};

      \path[fill=bg hours \col]
      (-\angle:\minihourminradius) -- (-\angle:\minihourmaxradius)
      arc(-\angle:-\angle-30:\minihourmaxradius) -- (-\angle-30:\minihourminradius)
      arc(-\angle-30:-\angle:\minihourminradius) -- cycle;

      \path (-\angle-15:\minihourradius pt) node[mini hours font]{\textcolor{white}{\contour{hours color}{\c}}};
    }

    \path [fill=black] (0,0) circle (3mm);
    \path [fill=red] (0,0) circle (1.5mm);
}

\newcommand{\clockB}{%
    \draw  (0,0) circle (2cm);
    \foreach \angle / \label in
    {0/3, 30/2, 60/1, 90/12, 120/11, 150/10, 180/9,
    210/8, 240/7, 270/6, 300/5, 330/4}
    {
        \draw (\angle:1.8cm) -- (\angle:2cm);
        \draw (\angle:1.4cm) node{\textsf{\label}};
    }
    \foreach \angle[count=\c from 0] in {0,6,...,354}
    {
        \draw (\angle:1.9cm) -- (\angle:2cm);
    }
    \path [fill=black] (0,0) circle (3pt);
    \path [fill=red] (0,0) circle (1.5pt);
}


\begin{document}

\competencesStatement

\maketitle
\bigskip
\begin{exercise}[subtitle={Le temps}]
    \begin{enumerate}
        \item Quelle heure indique ces deux horloges?
            ~

            \vspace{1.5cm}
            \hspace{1cm}
            \begin{tikzpicture}[cap=round, rotate=90, transform canvas={scale=0.25}]
                \clockATick{7}{30}
            \end{tikzpicture}
            \hspace{2cm}
            ............
            \hspace{2.5cm}
            \begin{tikzpicture}[cap=round, transform canvas={scale=0.9}]
                \clockBTick{11}{15}
            \end{tikzpicture}
            \hspace{2cm}
            ............

            \vspace{2cm}
        \item Placer les aiguilles correctement.
            ~

            \vspace{1.5cm}
            \hspace{1cm}
            \begin{tikzpicture}[cap=round, rotate=90, transform canvas={scale=0.25}]
                \clockA
            \end{tikzpicture}
            \hspace{2cm}
            10h20
            \hspace{2.5cm}
            \begin{tikzpicture}[cap=round, transform canvas={scale=0.9}]
                \clockB
            \end{tikzpicture}
            \hspace{2cm}
            9h54

            \vspace{2cm}
        \item Compléter les trous (justifier par le calcul en dessous).
            \begin{multicols}{2}
               \begin{enumerate}
                   \item $1h =$ \parbox{2cm}{\dotfill} min
                       \\[0.2cm].\dotfill
                   \item $8h =$ \parbox{2cm}{\dotfill} min
                       \\[0.2cm].\dotfill
                   \item $5h 25min =$ \parbox{2cm}{\dotfill} min
                       \\[0.2cm].\dotfill
                   \item $15min10s =$ \parbox{2cm}{\dotfill} s
                       \\[0.2cm].\dotfill
               \end{enumerate}
            \end{multicols}
    \end{enumerate}
\end{exercise}

\begin{exercise}[subtitle={Histoire de champs}]
    Voici de 2 champs.
    \begin{center}
        \includegraphics[scale=1]{./fig/champs-1}
    \end{center}

    \begin{enumerate}
        \item Lequel des 2 champs va demander le moins de clôture pour faire le tour?
            \\[0.2cm] .\dotfill
            \\[0.2cm] .\dotfill
            \\[0.2cm] .\dotfill
            \\[0.2cm] .\dotfill
        \item Lequel de ces 2 champs va donner le plus d'espace pour des faire vivre des chèvres?
            \\[0.2cm] .\dotfill
            \\[0.2cm] .\dotfill
            \\[0.2cm] .\dotfill
            \\[0.2cm] .\dotfill
    \end{enumerate}
\end{exercise}

\begin{exercise}[subtitle={Quadrilatères}]
    \begin{enumerate}
        \item Tracer les figures suivantes avec le plus de précision
            \begin{multicols}{2}
                \begin{enumerate}
                    \item Un quadrilatère $ABCD$ \\[4cm]
                    \item Un losange $IJLK$ \\[4cm]
                \end{enumerate}
            \end{multicols}
        \item Comment reconnaît-on un rectangle?
            \\[0.2cm] .\dotfill
            \\[0.2cm] .\dotfill
            \\[0.2cm] .\dotfill
    \end{enumerate}
\end{exercise}

\begin{exercise}[subtitle={Tremblements de terre}]

    La force d'un tremblement de terre se mesure avec la \textbf{magnitude}. Voici les relevés des tremblements de terre de vendredi à dimanche.

    \begin{minipage}{0.5\linewidth}
    \begin{tabular}{|*{4}{c|}}
        \hline
        Date & Profondeur & Magnitude & Lieu\\
        \hline
        2018-05-27 & 10	 & 5.1 & CHINA \\
        \hline
        2018-05-27 & 10	 & 5.0 & FIJI \\
        \hline
        2018-05-27 & 10	 & 5.1 & FIJI \\
        \hline
        2018-05-27 & 20	 & 5.0 & GUAM \\
        \hline
        2018-05-25 & 175 & 5.2 & INDONESIE \\
        \hline
        2018-05-25 & 10	 & 5.0 & MAYOTTE\\
        \hline
        2018-05-25 & 10	 & 5.0 & MAYOTTE\\
        \hline
    \end{tabular}
    \end{minipage}
    \begin{minipage}{0.5\linewidth}
        \begin{enumerate}
            \item 
        \end{enumerate}
        
    \end{minipage}

\end{exercise}


\end{document}


%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "master"
%%% End:

