From 4b53e6a1c9a1babe2fa3c9c34d0170573c7d9b46 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 25 Sep 2018 06:42:35 +0200 Subject: [PATCH] Update. --- calculmental/calculmental.cls | 15 +++++++++------ commun/commun.sty | 17 ++++------------- cours/cours_beamer.cls | 1 - cours/cours_paper.cls | 15 +++++++++++++-- shortcuts/shortcuts.sty | 3 +++ 5 files changed, 29 insertions(+), 22 deletions(-) diff --git a/calculmental/calculmental.cls b/calculmental/calculmental.cls index 3031ea3..87f33fc 100644 --- a/calculmental/calculmental.cls +++ b/calculmental/calculmental.cls @@ -99,21 +99,24 @@ } +% \titre{TITRE}{SOUS-TITRE}{ANNÉE}{LIEU} +% defini le titre du document \newcommand{\titre}[4]{% \title{#1} - \subtitle{Calcul Mental} - \date{#2} - \author{#3} + \subtitle{#2} + \date{#3} + \author{Calcul mental} \institute{#4} } \NewDocumentCommand \debut { s }{% - \begin{frame} + \begin{frame}[plain] \titlepage - \transduration{3} - \end{frame} + \end{frame} + + \addtocounter{framenumber}{-1} \begin{frame} \centering diff --git a/commun/commun.sty b/commun/commun.sty index acf77bc..22a2a3c 100644 --- a/commun/commun.sty +++ b/commun/commun.sty @@ -132,6 +132,7 @@ \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} +\newcolumntype{M}[1]{>{\centering}m{#1}} %% lh{largeur} : gauche - haut %\newcolumntype{lh}[1]{>{\raggedright}p{#1}} %% ch{largeur} : centre - haut @@ -203,22 +204,12 @@ } } -\NewDocumentCommand \getbool { }{% - \pgfmathtruncatemacro{\random}{rnd} - %\pgfmathparse{notless(\random, .5)} - \pgfmathparse{(\random > .5) ? true : false} +\NewDocumentCommand \@getletter{ G{1} G{26} }{ + \pgfmathsetmacro{\random}{rnd} + \pgfmathparse{\random >= 0.5 ? "\noexpand\getrandomletter{#1}{#2}" : "\noexpand\getrandomletter*{#1}{#2}"} \pgfmathresult } -% \NewDocumentCommand \displaysolutions { }{% -% \iftoggle{display}{ -% \textbf{Solutions} -% \includecomment{solution} -% }{ -% \excludecomment{solution} -% } -% } - % diff --git a/cours/cours_beamer.cls b/cours/cours_beamer.cls index dc8f550..699f1d8 100644 --- a/cours/cours_beamer.cls +++ b/cours/cours_beamer.cls @@ -219,7 +219,6 @@ \titlepage \end{frame} \addtocounter{framenumber}{-1} - } \newcommand{\fin}{% diff --git a/cours/cours_paper.cls b/cours/cours_paper.cls index 64677db..8b5bf92 100644 --- a/cours/cours_paper.cls +++ b/cours/cours_paper.cls @@ -478,6 +478,7 @@ \mdtheorem[style=todo, theoremseparator={ -}, theoremspace={}]{app}{Application} \mdtheorem[style=todo, theoremseparator={}, theoremspace={}]{appn}{} \mdtheorem[style=method, theoremseparator={ -}, theoremspace={}]{met}{Méthode} +\mdtheorem[style=clear, theoremseparator={}, theoremspace={}]{metn}{} @@ -669,6 +670,16 @@ \end{met*} } +\RenewDocumentEnvironment{metn}{ o } {%begin + \IfNoValueTF {#1} { + \begin{metn*} + }{ + \begin{metn*}[#1] + } +}{%end + \end{metn*} +} + % titre \NewDocumentCommand \titre { G{Titre} G{Sous-titre} }{% \setlength{\droptitle}{-2cm} @@ -707,8 +718,8 @@ \setlist[questions, 1]{label=\textbf{\arabic*.}} \setlist[questions, 2]{label=\textbf{\alph*)}} -\newlist{questinl}{enumerate*}{1} -\setlist*[questinl]{label=\textbf{\alph*)}} +\newlist{questionsl}{enumerate*}{1} +\setlist*[questionsl]{label=\textbf{\alph*)}} \setlist[enumerate, 1]{label=\textbf{\arabic*.}, leftmargin=*, labelsep=.5em} \setlist[enumerate, 2]{label=\textbf{\alph*)}} diff --git a/shortcuts/shortcuts.sty b/shortcuts/shortcuts.sty index d9d6bab..9db9328 100644 --- a/shortcuts/shortcuts.sty +++ b/shortcuts/shortcuts.sty @@ -62,6 +62,9 @@ \ensuremath{ \vec{\jmath} } } +% redéfinition du signe vectoriel +\renewcommand{\Vec}[1]{\overrightarrow{#1\vphantom(}} + % ensembles \NewDocumentCommand \R { s g } { \IfBooleanTF {#1} {