134 lines
3.0 KiB
Plaintext
134 lines
3.0 KiB
Plaintext
|
\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}}
|
||
|
|