From eacb27f2883d6a0f37c8f7842e5dedc117f4414a Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sun, 6 Dec 2020 07:17:04 +0100 Subject: [PATCH] Feat: Deplace todo et bclog vers notbeamer --- tools/style/base.sty | 3 -- tools/style/myXsim.sty | 1 + tools/style/notbeamer.sty | 82 +++++++++++++++++++++++++++++++++++++++ tools/style/shortcuts.sty | 77 ------------------------------------ 4 files changed, 83 insertions(+), 80 deletions(-) create mode 100755 tools/style/notbeamer.sty diff --git a/tools/style/base.sty b/tools/style/base.sty index 33c7e86..b148db3 100755 --- a/tools/style/base.sty +++ b/tools/style/base.sty @@ -31,9 +31,6 @@ % Espaces pour écrire les grands nombres \RequirePackage[np]{numprint} -% BClogo -\usepackage[tikz]{bclogo} - % Outils pour les tableaux et les fonctions \RequirePackage{tkz-tab} \RequirePackage{tkz-fct} diff --git a/tools/style/myXsim.sty b/tools/style/myXsim.sty index 8af2c7a..5e6d552 100644 --- a/tools/style/myXsim.sty +++ b/tools/style/myXsim.sty @@ -4,6 +4,7 @@ \RequirePackage{colorscheme} \RequirePackage{base} \RequirePackage{myhdr} +\RequirePackage{notbeamer} \RequirePackage[no-files]{xsim} diff --git a/tools/style/notbeamer.sty b/tools/style/notbeamer.sty new file mode 100755 index 0000000..84154af --- /dev/null +++ b/tools/style/notbeamer.sty @@ -0,0 +1,82 @@ +\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} +} + +\renewenvironment{definition} +{ + \begin{encadre}{Définition} + }{ + \end{encadre} +} + +\newenvironment{propriete} +{ + \begin{encadre}{Propriété} + }{ + \end{encadre} +} diff --git a/tools/style/shortcuts.sty b/tools/style/shortcuts.sty index 3a856f2..e6100a8 100755 --- a/tools/style/shortcuts.sty +++ b/tools/style/shortcuts.sty @@ -302,80 +302,3 @@ scale=.1, } -% 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}% -}} - -% 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} -{ - \begin{encadre}{Définition} - }{ - \end{encadre} -} - -\newenvironment{propriete} -{ - \begin{encadre}{Propriété} - }{ - \end{encadre} -}