Refact: reorganize style and make examples
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
\RequirePackage{amsmath}
|
||||
\RequirePackage{amsfonts}
|
||||
\PassOptionsToPackage{table,usenames,dvipsnames}{xcolor}
|
||||
\RequirePackage{hyperref}
|
||||
%\RequirePackage{subfig}
|
||||
\RequirePackage{graphicx}
|
||||
\graphicspath{{./}{\string~/.Clipart/}}
|
||||
@@ -16,16 +17,16 @@
|
||||
\RequirePackage{ifthen, calc}
|
||||
\RequirePackage{tabularx}
|
||||
|
||||
% Marges des pages
|
||||
% Géométrie
|
||||
\RequirePackage{geometry}
|
||||
\geometry{left=10mm,right=10mm, top=10mm}
|
||||
\geometry{left=10mm,right=10mm, top=10mm, bottom=10mm}
|
||||
|
||||
\setlength{\columnsep}{30pt} % default=10pt
|
||||
\setlength{\columnseprule}{1pt} % default=0pt (no line)
|
||||
|
||||
% Symbole euro
|
||||
\RequirePackage{eurosym}
|
||||
|
||||
% Faire des boites
|
||||
\RequirePackage{fancybox}
|
||||
|
||||
% Espaces pour écrire les grands nombres
|
||||
\RequirePackage[np]{numprint}
|
||||
|
||||
@@ -34,12 +35,8 @@
|
||||
\RequirePackage{tkz-fct}
|
||||
|
||||
% Pour les block scratch
|
||||
|
||||
\RequirePackage{scratch}
|
||||
|
||||
% Pour gérer les todo
|
||||
% \RequirePackage[french, textsize=small]{todonotes}
|
||||
|
||||
% Plusieurs colonnes
|
||||
\RequirePackage{multicol}
|
||||
|
||||
@@ -71,4 +68,6 @@
|
||||
% Write algorithm
|
||||
\usepackage[linesnumbered, boxed, french]{algorithm2e}
|
||||
|
||||
\RequirePackage{enumitem}
|
||||
\setlist[itemize,1]{label=$\bullet$}
|
||||
|
||||
|
22
tools/style/classPres.cls
Executable file
22
tools/style/classPres.cls
Executable file
@@ -0,0 +1,22 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
|
||||
\ProvidesClass{classPres}
|
||||
|
||||
% Classe de base - Beamer
|
||||
%\pdfminorversion=4
|
||||
\LoadClassWithOptions{beamer}
|
||||
|
||||
\usetheme{Singapore}
|
||||
\usepackage[defaultsans]{droidsans}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usefonttheme[onlymath]{serif}
|
||||
|
||||
% extensions
|
||||
|
||||
\RequirePackage{colorscheme}
|
||||
\RequirePackage{base}
|
||||
\geometry{left=10mm,right=10mm, top=0mm}
|
||||
|
||||
|
||||
% Les tableaux
|
||||
\renewcommand{\arraystretch}{1.5}
|
@@ -6,70 +6,6 @@
|
||||
\RequirePackage{myhdr}
|
||||
\RequirePackage{hyperref}
|
||||
|
||||
\RequirePackage{enumitem}
|
||||
\setlist[itemize,1]{label=$\bullet$}
|
||||
|
||||
% 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}%
|
||||
{%
|
||||
%\setstretczh{0.7}% spacing
|
||||
\todo[inline,backgroundcolor=green,#1]{%
|
||||
\textbf{Voir la vidéo}~\href{#2}{#3}}%
|
||||
}}
|
||||
\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}%
|
||||
}}
|
||||
|
||||
\RequirePackage{geometry}
|
||||
%\geometry{landscape}
|
||||
\geometry{left=15mm,right=15mm, bottom= 15mm, top=15mm}
|
||||
|
||||
%\firstpageheader{\op@boiteentete\small\scshape\op@entete}{}{\small\op@typedoc \op@titre} % Header de la première page
|
||||
|
||||
|
||||
%\setlength{\oddsidemargin}{0in} % default=0in
|
||||
%\setlength{\textwidth}{9in} % default=9in
|
||||
|
||||
\setlength{\columnsep}{30pt} % default=10pt
|
||||
\setlength{\columnseprule}{1pt} % default=0pt (no line)
|
||||
|
||||
%\setlength{\textheight}{5.85in} % default=5.15in
|
||||
%\setlength{\topmargin}{-0.40in} % default=0.20in
|
||||
%\setlength{\headsep}{0.35in} % default=0.35in
|
||||
|
||||
|
||||
%\renewcommand{\op@entete}{\op@classe}
|
||||
|
||||
|
||||
%\RequirePackage{xsim}
|
||||
\RequirePackage[no-files]{xsim}
|
||||
|
||||
\DeclareExerciseTagging{step}
|
||||
|
@@ -1,8 +0,0 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
|
||||
% Les listes
|
||||
\RequirePackage{enumerate}
|
||||
\RequirePackage{enumitem}
|
||||
\setlist[itemize,1]{label=$\bullet$}
|
||||
|
||||
|
@@ -29,7 +29,7 @@
|
||||
|
||||
%% Vecteurs
|
||||
% représentation d'un vecteur
|
||||
\renewcommand{\vec}[1]{\overrightarrow{#1}}
|
||||
\renewcommand{\vect}[1]{\overrightarrow{#1}}
|
||||
% Norme d'un vecteur
|
||||
\newcommand{\norme}[1]{||\vec{#1}||}
|
||||
% Produit scalaire
|
||||
@@ -59,18 +59,6 @@
|
||||
%% Autres
|
||||
\newcommand{\TODO}[1]{\textcolor{red}{note(#1)}}
|
||||
|
||||
%% Poser des opérations
|
||||
% \RequirePackage[letterspace=500]{microtype}
|
||||
% \newcommand{\poseOP}[3]{%
|
||||
% \textls{
|
||||
% $\begin{array}{cr}
|
||||
% & #1 \\[-0.3cm]
|
||||
% #2 & #3 \\
|
||||
% \hline
|
||||
% &
|
||||
% \end{array}$}
|
||||
% }
|
||||
|
||||
% Icones
|
||||
\newcommand{\icon}[2][scale=0.4]{%
|
||||
\includegraphics[#1]{icons/#2.png}%
|
||||
@@ -280,7 +268,6 @@
|
||||
\draw (#5, #1) -- (#6, #1);
|
||||
}
|
||||
|
||||
|
||||
\usetikzlibrary{quotes,arrows.meta}
|
||||
|
||||
\tikzset{
|
||||
@@ -315,3 +302,41 @@
|
||||
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}%
|
||||
{%
|
||||
%\setstretczh{0.7}% spacing
|
||||
\todo[inline,backgroundcolor=green,#1]{%
|
||||
\textbf{Voir la vidéo}~\href{#2}{#3}}%
|
||||
}}
|
||||
\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}%
|
||||
}}
|
||||
|
Reference in New Issue
Block a user