Import work from year 2013-2014

This commit is contained in:
Benjamin Bertrand
2017-06-16 09:46:40 +03:00
commit 32262a4ecf
1788 changed files with 113187 additions and 0 deletions

133
tools/style/base.sty Executable file
View File

@@ -0,0 +1,133 @@
\NeedsTeXFormat{LaTeX2e}
% extensions
\RequirePackage[utf8x]{inputenc}
\RequirePackage[francais]{babel}
\RequirePackage{amssymb}
\RequirePackage{amsmath}
\RequirePackage{amsfonts}
\RequirePackage{subfig}
\RequirePackage{graphicx}
\RequirePackage{color}
\RequirePackage{enumerate}
\RequirePackage{geometry}
\RequirePackage{eurosym}
\RequirePackage{gensymb}
\RequirePackage{ifthen, calc}
\RequirePackage{tabularx}
\RequirePackage{fancybox}
% géométrie
\geometry{left=20mm,right=20mm, top=15mm, bottom=20mm}
%\RequirePackage{arev}
\RequirePackage{kpfonts}
\renewcommand*\familydefault{\sfdefault}
\RequirePackage[T1]{fontenc}
% Les listes
\RequirePackage{enumitem}
\setlist[itemize,1]{label=$\bullet$}
% Les tableaux
\renewcommand{\arraystretch}{2}
%%%%%%%%%%%%%%%%%
% Raccourcis %
%%%%%%%%%%%%%%%%%
% Ensembles
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
%\newcommand{\D}{\mathbb{D}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\intOO}[2]{\left]{#1}\,{;}\,{#2}\right[} % intervalles ouvert ouvert
\newcommand{\intOF}[2]{\left]{#1}\,{;}\,{#2}\right]} % intervalles ouvert fermé
\newcommand{\intFO}[2]{\left[{#1}\,{;}\,{#2}\right[} % intervalles fermé ouvert
\newcommand{\intFF}[2]{\left[{#1}\,{;}\,{#2}\right]} % intervalles fermé fermé
% Vecteurs
\renewcommand{\vec}[1]{\overrightarrow{#1}} % représentation d'un vecteur
\newcommand{\norme}[1]{||\vec{#1}||} % Norme d'un vecteur
\newcommand{\scal}[2]{\vec{#1} \cdot \vec{#2}} % Produit scalaire
\newcommand{\vectCoord}[2]{\left(\begin{array}{c} #1 \\ #2 \end{array} \right)}
% Proba
\newcommand{\coefBino}[2]{\vectCoord{#1}{#2}}
% Logique
\renewcommand{\equiv}{\Leftrightarrow}
% Calculatrice
\newcommand{\calc}[1]{\Ovalbox{\texttt{#1}}}
% Autres
\newcommand{\note}[1]{\textcolor{red}{note(#1)}}
%%%%%%%%%%%%%%%%%%%%%%
% Include graphics %
%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{pstricks}
\newcommand{\includepstricksgraphics}[1]{%
\ifpdf\includegraphics{#1}\else\input{#1}\fi}
%%%%%%%%%%%%%%%%%%%%%%
% Environment Exo %
%%%%%%%%%%%%%%%%%%%%%%
\newcounter{exo}[section]
\setcounter{exo}{0}
\newenvironment{Exo}[1][0]{%
\addtocounter{exo}{1}
\medskip
\noindent%
\textbf{\color{exercice}{Exercice \theexo}} \hspace{0.5cm} \color{line}\hrulefill \hspace{0.5cm} \color{exercice}
\ifthenelse{\lengthtest{#1 pt=0 pt}}{}{
\ifthenelse{\lengthtest{#1 pt = 1pt}}{#1 point}{#1 points}}%
\par
\medskip
\color{text}
}{\par%
}
\newcommand{\exo}[1]{{\centering \textbf{#1} \par}}
% New environment définitions
\newenvironment{Def}{%
\medskip
\noindent \textbf{Définition:}
}{%
}
% New environment exemples
\newenvironment{Ex}{%
\medskip
\noindent \textbf{Exemples:}
}{%
}
% New environment propriété
\newenvironment{Prop}{%
\medskip
\noindent \textbf{Propriété:}
}{%
}
\newenvironment{hint}{%
Indication:
\begin{itshape}
}{%
\end{itshape}
}
\def\title#1{\gdef\@title{#1}\gdef\Thetitle{#1}}
\def\date#1{\gdef\@date{#1}\gdef\Thedate{#1}}

View File

@@ -0,0 +1,50 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classBrevet}
% classe de base
\LoadClassWithOptions{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/classDS}
% extensions
\RequirePackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/base}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/theme}
% commandes personnelles
\renewcommand{\baselinestretch}{1.5}
\renewcommand{\arraystretch}{1}
% typedoc #1 = type du document; #2 thème du document
\renewcommand{\op@typedoc}{Brevet Blanc}
\renewcommand{\op@entete}{\@date}
% Redéfinition de maketitle pour ne plus avoir la date
\renewcommand{\titlepage}{%
\thispagestyle{plain}
\begin{center}
~\\[3cm]
\Huge \op@typedoc \\ [1cm]
\LARGE \@date \\[2cm]
\fbox{
\parbox{0.7\textwidth}{~\\[1cm] \large Épreuve de : \\ \Huge MATHÉMATIQUES \\ \Large Durée de l'épreuve: \op@duree \\[1cm] }
}
~\\[2cm]
\normalsize
Ce sujet comporte \pageref{LastPage} pages, numérotées de 1 / \pageref{LastPage} à \pageref{LastPage} / \pageref{LastPage} \\
Dès qu'il vous est remis, assurez-vous qu'il est complet.
\\[2cm]
L'utilisation de la calculatrice est autorisée. \\
L'usage du dictionnaire n'est pas autorisé.
\end{center}
\clearpage
}

30
tools/style/classConn.cls Normal file
View File

@@ -0,0 +1,30 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classConn}
% classe de base
\LoadClass[a4paper, 12pt]{article}
% extensions
\RequirePackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/base}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/theme}
\RequirePackage{geometry}
\geometry{landscape}
\RequirePackage{multicol}
\setlength{\columnseprule}{1pt}
\geometry{left=10mm,right=10mm, top=10mm}
\setlength{\columnsep}{2cm}
% commandes personnelles
% Les en-tête et les pieds de pages
\RequirePackage{fancyhdr}
\pagestyle{empty}
%\renewcommand\headrulewidth{0pt}
%\fancyhead[R]{}
%\fancyfoot[C]{}

View File

@@ -0,0 +1,71 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classDS}
% classe de base
\LoadClassWithOptions{article}
% extensions
\RequirePackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/base}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/theme}
% commandes personnelles
% Les en-tête et les pieds de pages
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
%\setlength{\headheight}{15.2pt}
\setlength{\headsep}{5pt}
\newcommand{\op@boiteentete}{\makebox[0pt][l]{\hspace*{-3ex}%
\color{bgentete}\rule[-0.8ex]{\linewidth+6ex}{3ex}%
}}
\fancyhead[L]{%
\op@boiteentete%
\small\op@typedoc \op@titre%
}
\fancyhead[R]{\small\scshape\op@entete}
\fancyfoot[R]{\color{footer}\thepage}
\fancyfoot[L]{\color{footer}\scriptsize\op@classe{} -- \op@annee}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[R]{\color{footer}\thepage}
\fancyfoot[L]{\color{footer}\scriptsize\op@classe{} -- \op@annee}
% \fancyfoot[R]{\thepage}
% \fancyfoot[L]{\scriptsize\op@classe{} -- \op@annee}
}
% Description du Cours
\newcommand{\op@entete}{}
\newcommand{\op@soustitre}{}
\newcommand{\op@classe}{}
\newcommand{\op@typedoc}{}
\newcommand{\op@typedoctmp}{}
\newcommand{\op@titre}{}
\newcommand{\op@duree}{}
\newcommand{\classe}[1]{\renewcommand{\op@classe}{#1}}
\newcommand{\duree}[1]{\renewcommand{\op@duree}{#1}}
\newcommand{\titre}[1]{\renewcommand{\op@titre}{#1}}
\renewcommand{\op@typedoc}{Cours: }
\renewcommand{\op@soustitre}{\op@classe{} -- \@date{}}%
\renewcommand{\op@entete}{\@date}
% Redéfinition de maketitle pour ne plus avoir la date
\renewcommand{\maketitle}{%
\thispagestyle{plain}
\noindent{\huge \color{title}\bfseries \op@typedoc \op@titre}\par
\noindent{\color{line}\rule{\linewidth}{1ex}}\par
\noindent{\color{subtitle}\bfseries \op@soustitre}\par
\vspace{2.5\baselineskip}
}

96
tools/style/classDS.cls Normal file
View File

@@ -0,0 +1,96 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classDS}
% classe de base
\LoadClassWithOptions{exam}
% extensions
\RequirePackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/base}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/theme}
% Custumisation de la class Exam
%% Les en-tête et les pieds de pages
\newcommand{\op@boiteentete}{\makebox[0pt][l]{\hspace*{-3ex}%
\color{bgentete}\rule[-0.8ex]{\linewidth+6ex}{3ex}%
}}
\pagestyle{headandfoot}
\firstpageheader{}{}{} % Header de la première page
\runningheader{\op@boiteentete\small\scshape\op@entete}{}{\small\op@typedoc \op@titre} % header des autres pages
\firstpagefooter{\scriptsize\op@classe{} -- \op@annee}{}{\scriptsize\thepage / \numpages} % Footer de la première page
\runningfooter{\scriptsize\op@classe{} -- \op@annee}{}{\scriptsize\thepage / \numpages} % footer des autres pages
%% Questions and parts
%%% Numbering
\renewcommand{\thepartno}{\arabic{partno}} % numérotation de part
\renewcommand{\thesubpart}{\alph{subpart}} % numérotation de subpart
\renewcommand{\thesubsubpart}{\greeknum{subsubpart}} % numérotation de subsubpart
%%% Display numbering
\renewcommand{\partlabel}{\colorbox{exercice}{\color{highlightbg}\thepartno}}
%\newcommand{\partlabel}{\thepartno.}
\renewcommand{\subpartlabel}{\color{exercice}\thesubpart.}
\renewcommand{\subsubpartlabel}{\color{exercice}\thesubsubpart)}
%%% Reformat questions
\qformat{\Large \textbf{\color{exercice}{Exercice \thequestion}} \hspace{0.5cm} \color{line}\hrulefill \hspace{0.5cm} \color{exercice} \thepoints}
% commandes personnelles
%% Description du DS
\newcommand{\op@entete}{}
\newcommand{\op@soustitre}{\op@classe{} -- \@date{}}
\newcommand{\op@classe}{}
\newcommand{\op@typedoc}{}
\newcommand{\op@typedoctmp}{}
\newcommand{\op@titre}{}
\newcommand{\op@duree}{}
\newcommand{\op@sujet}{}
\newcommand{\classe}[1]{\renewcommand{\op@classe}{#1}}
\newcommand{\duree}[1]{\renewcommand{\op@duree}{#1}}
\newcommand{\titre}[1]{\renewcommand{\op@titre}{#1}}
\newcommand{\sujet}[1]{\renewcommand{\op@sujet}{Sujet #1}}
% typedoc #1 = type du document; #2 thème du document
\newcommand{\typedoc}[1]{\renewcommand{\op@typedoctmp}{#1}
\ifthenelse{\equal{\op@typedoctmp}{DS}}%
{\renewcommand{\op@typedoc}{Devoir surveillé: }
\renewcommand{\op@soustitre}{\op@classe{} -- \@date{} -- Durée : \op@duree}%
\renewcommand{\op@entete}{\@date}}{}
\ifthenelse{\equal{\op@typedoctmp}{DSCorr}}%
{\renewcommand{\op@typedoc}{Devoir surveillé (correction): }
\renewcommand{\op@soustitre}{\op@classe{} -- \@date{} -- Correction}%
\renewcommand{\op@entete}{\@date}}{}
\ifthenelse{\equal{\op@typedoctmp}{DM}}%
{\renewcommand{\op@typedoc}{Devoir maison: }
\renewcommand{\op@soustitre}{\op@classe{} -- À rendre le \@date}%
\renewcommand{\op@entete}{À rendre le \@date}}{}
\ifthenelse{\equal{\op@typedoctmp}{DMCorr}}%
{\renewcommand{\op@typedoc}{Devoir maison (correction): }
\renewcommand{\op@soustitre}{\op@classe{} -- \@date{} -- Correction}%
\renewcommand{\op@entete}{\@date}}{}
\ifthenelse{\equal{\op@typedoctmp}{Corr}}%
{\renewcommand{\op@soustitre}{\op@classe{} -- \@date{} -- Correction}%
\renewcommand{\op@entete}{Devoir surveillé \no \op@numero}}{}
}
%% Redéfinition de maketitle
\renewcommand{\maketitle}{%
%\thispagestyle{plain}
\noindent{\huge \color{title}\bfseries \op@typedoc \op@titre}\par
\noindent{\color{line}\rule{\linewidth}{1ex}}\par
\noindent{\color{subtitle}\bfseries \op@soustitre \hfill \large\op@sujet}\par
\vspace{2.5\baselineskip}
}
\newcommand{\noCalc}{{\centering \textbf{Calculatrice interdite} \par}}
\newcommand{\Calc}{{\centering \textbf{Calculatrice autorisée} \par}}

59
tools/style/classExo.cls Normal file
View File

@@ -0,0 +1,59 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{classExo}
% classe de base
\LoadClassWithOptions{article}
% extensions
\RequirePackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/base}
\RequirePackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/theme}
%\RequirePackage{geometry}
%\geometry{landscape}
\geometry{left=5mm,right=5mm, bottom= 10mm}
%\setlength{\oddsidemargin}{0in} % default=0in
%\setlength{\textwidth}{9in} % default=9in
\setlength{\columnsep}{20pt} % 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
% Les en-tête et les pieds de pages
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\setlength{\headheight}{20pt}
\setlength{\headsep}{10pt}
% Redéfinition de maketitle pour ne plus avoir la date
\def\@maketitle{%
\newpage
\null
\vskip 2em%
\begin{center}%
\let \footnote \thanks
{\LARGE \@title \par}%
\vskip 1.5em%
{\large
\lineskip .5em%
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par}%
% \vskip 1em%
% {\large \@date}%
\end{center}%
\par
\vskip 1.5em}

50
tools/style/theme.sty Executable file
View File

@@ -0,0 +1,50 @@
\NeedsTeXFormat{LaTeX2e}
% Couleurs
\RequirePackage{xcolor}
% Couleurs éléments
% \definecolor{coulpied}{couleur3}
% \definecolor{coulnumexos}{couleur5}
% \definecolor{coulrule}{couleur5}
% \definecolor{coulsection}{couleur1}
% \definecolor{coultable1}{couleur4}
% \definecolor{coultable2}{couleur3}
% \definecolor{coultheo}{couleur4}
% \definecolor{couldef}{couleur3}
% Solarized theme
\definecolor{base03}{HTML}{002b36}
\definecolor{base02}{HTML}{073642}
\definecolor{base01}{HTML}{586e75}
\definecolor{base00}{HTML}{657b83}
\definecolor{base0}{HTML}{839496}
\definecolor{base1}{HTML}{93a1a1}
\definecolor{base2}{HTML}{eee8d5}
\definecolor{base3}{HTML}{FDF6E3}
\definecolor{yellow}{HTML}{B58900}
\definecolor{orange}{HTML}{cb4b16}
\definecolor{red}{HTML}{DC322F}
\definecolor{magenta}{HTML}{d33682}
\definecolor{violet}{HTML}{6c71c4}
\definecolor{blue}{HTML}{268bd2}
\definecolor{cyan}{HTML}{2aa198}
\definecolor{green}{HTML}{859900}
% My theme
\colorlet{text}{base03}
\colorlet{footer}{base02}
\colorlet{bgentete}{base2}
\colorlet{title}{blue}
\colorlet{subtitle}{base02}
\colorlet{line}{base1}
\colorlet{comments}{base01}
\colorlet{exercice}{blue}
\colorlet{note}{red}
\colorlet{highlightbg}{base2}
\colorlet{tabular}{base3}