2020-12-06 06:17:04 +00:00
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
|
|
|
|
|
|
|
|
% Pour gérer les todo
|
|
|
|
\RequirePackage[french]{todonotes}
|
|
|
|
\newcounter{afaire}
|
|
|
|
\newcommand{\afaire}[2][]{%
|
|
|
|
% initials of the author (optional) + note in the margin
|
|
|
|
\refstepcounter{afaire}%
|
|
|
|
{%
|
|
|
|
%\setstretch{0.7}% spacing
|
|
|
|
\todo[inline,#1]{%
|
|
|
|
\textbf{À faire au crayon à papier:}~#2}%
|
|
|
|
}}
|
|
|
|
\newcounter{envideo}
|
|
|
|
\newcommand{\envideo}[3][]{%
|
|
|
|
% initials of the author (optional) + note in the margin
|
|
|
|
\refstepcounter{envideo}%
|
|
|
|
{%
|
|
|
|
%\setstretch{0.7}% spacing
|
|
|
|
\todo[inline,backgroundcolor=green,#1]{%
|
|
|
|
\textbf{Voir la vidéo}~ #3
|
|
|
|
|
|
|
|
\begin{minipage}{0.2\linewidth}
|
|
|
|
\qrcode{#2}
|
|
|
|
\end{minipage}
|
|
|
|
\begin{minipage}{0.8\linewidth}
|
|
|
|
\url{#2}
|
|
|
|
\end{minipage}
|
|
|
|
|
|
|
|
}%
|
|
|
|
}}
|
|
|
|
\newcounter{enclasse}
|
|
|
|
\newcommand{\enclasse}[2][]{%
|
|
|
|
% initials of the author (optional) + note in the margin
|
|
|
|
\refstepcounter{enclasse}%
|
|
|
|
{%
|
|
|
|
%\setstretch{0.7}% spacing
|
|
|
|
\todo[inline,backgroundcolor=green,#1]{%
|
|
|
|
\textbf{Sera complété en classe}~#2}%
|
|
|
|
}}
|
|
|
|
\newcounter{arediger}
|
|
|
|
\newcommand{\arediger}[2][]{%
|
|
|
|
% initials of the author (optional) + note in the margin
|
|
|
|
\refstepcounter{afaire}%
|
|
|
|
{%
|
|
|
|
%\setstretch{0.7}% spacing
|
|
|
|
\todo[inline,#1]{%
|
|
|
|
\textbf{À rédiger et m'envoyer par mail:}~#2}%
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
|
|
\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}
|
|
|
|
}
|
|
|
|
|
2020-12-08 09:21:55 +00:00
|
|
|
\newenvironment{definition}[1][]
|
2020-12-06 06:17:04 +00:00
|
|
|
{
|
2020-12-07 14:10:47 +00:00
|
|
|
\begin{encadre}{Définition #1}
|
2020-12-06 06:17:04 +00:00
|
|
|
}{
|
|
|
|
\end{encadre}
|
|
|
|
}
|
|
|
|
|
2020-12-07 14:10:47 +00:00
|
|
|
\newenvironment{propriete}[1][]
|
2020-12-06 06:17:04 +00:00
|
|
|
{
|
2020-12-07 14:10:47 +00:00
|
|
|
\begin{encadre}{Propriété #1}
|
2020-12-06 06:17:04 +00:00
|
|
|
}{
|
|
|
|
\end{encadre}
|
|
|
|
}
|