Core: remplace le package todo par mdframe
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Bertrand Benjamin 2022-08-25 15:48:57 +02:00
parent c678e26475
commit 4392a35c67
1 changed files with 27 additions and 22 deletions

View File

@ -2,24 +2,31 @@
% Pour gérer les todo
\RequirePackage[french]{todonotes}
\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}%
{%
%\setstretch{0.7}% spacing
\todo[inline,#1]{%
\textbf{À faire au crayon à papier:}~#2}%
}}
\begin{mdframed}[style=highlight,frametitle={\textbf{À faire au crayon à papier}}]
#2%
\end{mdframed}
}
\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{mdframed}[style=highlight,
linecolor=green, backgroundcolor=green!10,
frametitle={\textbf{Voir la vidéo}}
]
#3
\begin{minipage}{0.2\linewidth}
\qrcode{#2}
@ -27,26 +34,24 @@
\begin{minipage}{0.8\linewidth}
\url{#2}
\end{minipage}
}%
\end{mdframed}
}}
\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}%
}}
\begin{mdframed}[style=highlight]
\textbf{Sera complété en classe}~#2%
\end{mdframed}
}
\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}%
\begin{mdframed}[style=highlight]
\textbf{À rédiger et m'envoyer par mail:}~#2%
\end{mdframed}
}}