2022-07-25 14:25:38 +00:00
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
|
|
|
|
|
|
|
|
% Pour gérer les todo
|
2022-08-25 13:48:57 +00:00
|
|
|
\RequirePackage[framemethod=tikz]{mdframed}
|
|
|
|
|
|
|
|
|
|
|
|
\global\mdfdefinestyle{highlight}{%
|
|
|
|
linecolor=orange, backgroundcolor=orange!10,
|
|
|
|
linewidth=3pt, roundcorner=5pt,
|
|
|
|
leftmargin=1cm,rightmargin=1cm,
|
|
|
|
}
|
2022-07-25 14:25:38 +00:00
|
|
|
\newcounter{afaire}
|
|
|
|
\newcommand{\afaire}[2][]{%
|
|
|
|
% initials of the author (optional) + note in the margin
|
|
|
|
\refstepcounter{afaire}%
|
2022-09-15 08:12:57 +00:00
|
|
|
\bigskip
|
2022-08-25 13:48:57 +00:00
|
|
|
\begin{mdframed}[style=highlight,frametitle={\textbf{À faire au crayon à papier}}]
|
|
|
|
#2%
|
|
|
|
\end{mdframed}
|
2022-09-15 08:12:57 +00:00
|
|
|
\bigskip
|
2022-08-25 13:48:57 +00:00
|
|
|
}
|
2022-07-25 14:25:38 +00:00
|
|
|
\newcounter{envideo}
|
|
|
|
\newcommand{\envideo}[3][]{%
|
|
|
|
\refstepcounter{envideo}%
|
|
|
|
{%
|
2022-08-25 13:48:57 +00:00
|
|
|
\begin{mdframed}[style=highlight,
|
|
|
|
linecolor=green, backgroundcolor=green!10,
|
|
|
|
frametitle={\textbf{Voir la vidéo}}
|
|
|
|
]
|
|
|
|
#3
|
2022-07-25 14:25:38 +00:00
|
|
|
|
|
|
|
\begin{minipage}{0.2\linewidth}
|
|
|
|
\qrcode{#2}
|
|
|
|
\end{minipage}
|
|
|
|
\begin{minipage}{0.8\linewidth}
|
2022-08-21 07:12:40 +00:00
|
|
|
\url{#2}
|
2022-07-25 14:25:38 +00:00
|
|
|
\end{minipage}
|
2022-08-25 13:48:57 +00:00
|
|
|
\end{mdframed}
|
2022-07-25 14:25:38 +00:00
|
|
|
}}
|
2022-08-25 13:48:57 +00:00
|
|
|
|
2022-07-25 14:25:38 +00:00
|
|
|
\newcounter{enclasse}
|
|
|
|
\newcommand{\enclasse}[2][]{%
|
|
|
|
\refstepcounter{enclasse}%
|
2022-08-25 13:48:57 +00:00
|
|
|
\begin{mdframed}[style=highlight]
|
|
|
|
\textbf{Sera complété en classe}~#2%
|
|
|
|
\end{mdframed}
|
|
|
|
}
|
|
|
|
|
2022-07-25 14:25:38 +00:00
|
|
|
\newcounter{arediger}
|
|
|
|
\newcommand{\arediger}[2][]{%
|
|
|
|
\refstepcounter{afaire}%
|
|
|
|
{%
|
2022-08-25 13:48:57 +00:00
|
|
|
\begin{mdframed}[style=highlight]
|
|
|
|
\textbf{À rédiger et m'envoyer par mail:}~#2%
|
|
|
|
\end{mdframed}
|
2022-07-25 14:25:38 +00:00
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
|
|
\usepackage[tikz]{bclogo}
|
|
|
|
% Environnements théoreme, définition ...
|
|
|
|
\newenvironment{encadre}[1]
|
|
|
|
{
|
|
|
|
\begin{bclogo}[barre=none, arrondi=0.1, logo=]{#1}
|
|
|
|
}{
|
|
|
|
\end{bclogo}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcounter{doc}
|
|
|
|
\newenvironment{doc}[1]
|
|
|
|
{\refstepcounter{doc}
|
|
|
|
\begin{encadre}{Document \thedoc: #1}
|
|
|
|
}{
|
|
|
|
\end{encadre}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newenvironment{definition}[1][]
|
|
|
|
{
|
|
|
|
\begin{encadre}{Définition: #1}
|
|
|
|
}{
|
|
|
|
\end{encadre}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newenvironment{propriete}[1][]
|
|
|
|
{
|
|
|
|
\begin{encadre}{Propriété: #1}
|
|
|
|
}{
|
|
|
|
\end{encadre}
|
|
|
|
}
|