%% This is file `ProjetExomaths.sty' %% Pour toute modification ou rapport de bueugue, contactez : alain.camanes@free.fr \def\fileversion{0.1} \def\filedate{15 avril 2010} \NeedsTeXFormat{LaTeX2e}[1996/06/01] \ProvidesPackage{ProjetExomaths}[2010/05/10] % Paquets de langue (francais iso-8859-15 \sloppy \RequirePackage[latin1]{inputenc} \RequirePackage[french]{babel} % Mise en page \addtolength{\voffset}{-1cm} \addtolength{\textheight}{2cm} \addtolength{\hoffset}{-1.5cm} \addtolength{\textwidth}{2 cm} \newlength\apresentete \setlength{\apresentete}{1cm} \usepackage{indentfirst} \RequirePackage{multicol} % Paquets ams \RequirePackage{amsmath, amsfonts, amsthm, amssymb} \RequirePackage{float} % Paquets pou inserer des graphiques \RequirePackage{graphics} \RequirePackage{graphicx} \RequirePackage{color} % Paquets pour les tableaux de signe \usepackage{variations} %===== Definition de l'entete du document ====% % Definition des nouvelles commandes \def\niveau#1{\def\@niveau{#1}} \niveau{} \def\rubrique#1{\def\@rubrique{#1}} \rubrique{} \def\difficulte#1{\def\@difficulte{#1}} \rubrique{} \def\duree#1{\def\@duree{#1}} \rubrique{} % Affichage de l'entete \newcommand\entete{ \centerline{\Large \@title} \begin{flushright} \footnotesize \texttt{\@author} \end{flushright} \noindent {\bf \small Niveau~:~}\textsc{\small\@niveau} % \\ \smallskip \\ \noindent {\bf\small Difficulté~:~}{\small \@difficulte} \\ \noindent {\bf\small Durée~:~}{\small \@duree} % \\ \smallskip \\ % \noindent{\bf \small Rubrique(s)~:~}\\ {\small\@rubrique} \begin{center} \rule{5cm}{1mm} \end{center} } %===== L'environnement historique ====% \newenvironment{histoire}{% \small \noindent\textbf{La petite histoire...}% }{\vskip0.2cm} %===== L'environnement exercice ====% % Creation des compteurs de questions et d'exercices \newcounter{exo} \setcounter{exo}{1} \newcounter{cqu} \setcounter{cqu}{0} \newcounter{csqu} \setcounter{csqu}{0} % Creation de l'affichage des numeros de questions \newcommand{\qu}{% \refstepcounter{cqu}% \setcounter{csqu}{0}% \par \noindent{\bf\small \arabic{cqu})~}% } \newcommand{\squ}{% \refstepcounter{csqu}% \par \noindent \hskip1em{\bf\small \alph{csqu})~}% } \newcommand{\Qu}{% \refstepcounter{cqu}% \setcounter{csqu}{1}% \par \noindent{\bf\small \arabic{cqu}.\alph{csqu})~}% } \newcommand{\Squ}{% \refstepcounter{csqu}% \par \noindent{\bf\small \arabic{cqu}.\alph{csqu})~}% } % Definition de l'environnement d'exercice \newenvironment{Exo}[1][{}]% {% \setcounter{cqu}{0}% met le compteur question a zero \setcounter{csqu}{0}% met le compteur question a zero \noindent\textbf{Exercice~\arabic{exo}}% \if\relax#1\relax \else {\bf ~({#1}) }\ignorespaces\fi% place le nom de l'exercice ~:~% } {\vskip0.5cm% \refstepcounter{exo}% } %===== L'environnement indications =====% \newenvironment{IndicCom}% {% \small \noindent\textbf{Indications et Commentaires}~:~% } {\vskip0.5cm% } %===== L'environnement solutions =====% \newenvironment{Corr}% {% \setcounter{cqu}{0}% met le compteur question a zero \setcounter{csqu}{0}% met le compteur question a zero \small \noindent\textbf{Corrections.}% } {\vskip0.5cm% } %===== Raccourcis claviers ===% % Lettres grasses \def\R{\mathbb{R}} \def\Q{\mathbb{Q}} \def\Z{\mathbb{Z}} \def\N{\mathbb{N}} \def\C{\mathbb{C}} \def\Q{\mathbb{Q}} \def\E{\mathbb{E}} \def\P{\mathbb{P}} % Flèches \def\to{\rightarrow} \def\To{\longrightarrow} \def\vec{\overrightarrow} \def\t{\textrm} \def\w{\widetilde} \def\ind{{\mathchoice {\rm 1\mskip-4mu l} {\rm 1\mskip-4mu l} {\rm 1\mskip-4.5mu l} {\rm 1\mskip-5mu l}}} \newcommand{\be} {\begin{equation}} \newcommand{\ee} {\end{equation}} \newcommand{\bea} {\begin{eqnarray}} \newcommand{\eea} {\end{eqnarray}} \newcommand{\Bea} {\begin{eqnarray*}} \newcommand{\Eea} {\end{eqnarray*}} \newcommand{\ba} {\begin{array}} \newcommand{\ea} {\end{array}} \newtheorem{Thm}{Théor\`eme} \newtheorem{Lem}[Thm]{Lemme} \newtheorem{Prop}[Thm]{Proposition} \newtheorem{Pte}[Thm]{Propri\'et\'e} \newtheorem{Cor}[Thm]{Corollaire} \newtheorem{Exp}[Thm]{Exemple} \newtheorem{Def}[Thm]{D\'efinition} \newtheorem{Rque}[Thm]{Remarque}