Bertrand Benjamin
19d422aedd
All checks were successful
continuous-integration/drone/push Build is passing
108 lines
2.4 KiB
TeX
Executable File
108 lines
2.4 KiB
TeX
Executable File
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
% Pour gérer les todo
|
|
\RequirePackage[framemethod=tikz]{mdframed}
|
|
|
|
|
|
\global\mdfdefinestyle{highlight}{%
|
|
linecolor=orange, backgroundcolor=orange!10,
|
|
linewidth=3pt, roundcorner=5pt,
|
|
leftmargin=1cm,rightmargin=1cm,
|
|
}
|
|
\newcounter{afaire}
|
|
\newcommand{\afaire}[2][]{%
|
|
% initials of the author (optional) + note in the margin
|
|
\refstepcounter{afaire}%
|
|
\bigskip
|
|
\begin{mdframed}[style=highlight,frametitle={\textbf{À faire au crayon à papier}}]
|
|
#2%
|
|
\end{mdframed}
|
|
\bigskip
|
|
}
|
|
\newcounter{envideo}
|
|
\newcommand{\envideo}[3][]{%
|
|
\refstepcounter{envideo}%
|
|
{%
|
|
\begin{mdframed}[style=highlight,
|
|
linecolor=green, backgroundcolor=green!10,
|
|
frametitle={\textbf{Voir la vidéo}}
|
|
]
|
|
#3
|
|
|
|
\begin{minipage}{0.2\linewidth}
|
|
\qrcode{#2}
|
|
\end{minipage}
|
|
\begin{minipage}{0.8\linewidth}
|
|
\url{#2}
|
|
\end{minipage}
|
|
\end{mdframed}
|
|
}}
|
|
|
|
\newcounter{enplus}
|
|
\newcommand{\enplus}[3][]{%
|
|
\refstepcounter{enplus}%
|
|
{%
|
|
\begin{mdframed}[style=highlight,
|
|
linecolor=green, backgroundcolor=green!10,
|
|
frametitle={\textbf{Pour aller plus loin}}
|
|
]
|
|
#3
|
|
|
|
\begin{minipage}{0.2\linewidth}
|
|
\qrcode{#2}
|
|
\end{minipage}
|
|
\begin{minipage}{0.8\linewidth}
|
|
\url{#2}
|
|
\end{minipage}
|
|
\end{mdframed}
|
|
}}
|
|
|
|
\newcounter{enclasse}
|
|
\newcommand{\enclasse}[2][]{%
|
|
\refstepcounter{enclasse}%
|
|
\begin{mdframed}[style=highlight]
|
|
\textbf{Sera complété en classe}~#2%
|
|
\end{mdframed}
|
|
}
|
|
|
|
\newcounter{arediger}
|
|
\newcommand{\arediger}[2][]{%
|
|
\refstepcounter{afaire}%
|
|
{%
|
|
\begin{mdframed}[style=highlight]
|
|
\textbf{À rédiger et m'envoyer par mail:}~#2%
|
|
\end{mdframed}
|
|
}}
|
|
|
|
|
|
\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}
|
|
}
|