%% This is file `ProjetExomaths.sty' %% Pour toute modification ou rapport de bueugue, contactez : alain.camanes@free.fr \def\fileversion{0.1} \def\filedate{27 août 2010} \NeedsTeXFormat{LaTeX2e}[1996/06/01] \ProvidesPackage{ProjetExomaths}[2010/07/21] %%%%%%%%%%%%%%%%%%%%%% %%% Paquets requis %%% %%%%%%%%%%%%%%%%%%%%%% %== Paquets de langue (francais iso-8859-15) ==% \sloppy \RequirePackage[latin1]{inputenc} \RequirePackage[T1]{fontenc} \RequirePackage[french]{babel} %== Paquets ams ==% \RequirePackage{amsmath, amsfonts, amsthm, amssymb} %== Paquets pour graphiques ==% \RequirePackage{graphics} \RequirePackage{graphicx} \RequirePackage{color} %== Paquets pour tableaux de signe ==% \RequirePackage{variations} %%%%%%%%%%%%%%%%%%%% %%% Mise en page %%% %%%%%%%%%%%%%%%%%%%% %== Marges ==% \addtolength{\voffset}{-1cm} \addtolength{\textheight}{2cm} \addtolength{\hoffset}{-1.5cm} \addtolength{\textwidth}{2 cm} \newlength\apresentete \setlength{\apresentete}{1cm} \renewcommand{\baselinestretch}{1.1} %== Nouveaux champs d entete ==% \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{} %== 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} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Environnements Spécifiques %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %== Historique ==% \newenvironment{histoire}{% \small \noindent\textbf{La petite histoire...}% } { \newpage% } %== Compteurs ==% \newcounter{exo} \newcounter{cqu}[exo] \newcounter{csqu}[cqu] %== Exercice ==% % Numeros de questions (\qu, \Qu et \squ, \Squ) \newcommand{\qu}{% \stepcounter{cqu}% \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})~}% } % Exercice \newenvironment{Exo}[1][{}]% {% \stepcounter{exo}% Incremente le compteur \noindent\textbf{Exercice~\arabic{exo}}% Affiche le numero de l exercice en chiffres arabes \if\relax#1\relax \else {\bf ~({#1}) }\ignorespaces\fi% Place eventuellement le nom de l exercice ~:~% Termine l entete de l exercice } {\vskip0.5cm% Espace vertical a la fin de l exercice } %== Indications ==% \newenvironment{IndicCom}% {% \setcounter{cqu}{0}% initialise le compteur question \setcounter{csqu}{0}% initialise le compteur sous-question \small % Ecrit en petit \noindent\textbf{Indications et Commentaires}~:~% } {\vskip0.5cm% Espace vertical a la fin de l environnement } %== Solutions ==% \newenvironment{Corr}% {% \setcounter{cqu}{0}% initialise le compteur question \setcounter{csqu}{0}% initialise le compteur sous-question \small \noindent\textbf{Corrections.}% } {\vskip0.5cm% } %%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Raccourcis claviers %%% %%%%%%%%%%%%%%%%%%%%%%%%%%% %== Alphabets ==% % 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}} \def\t{\textrm } %== Mathematiques ==% % Fleches \def\to{\rightarrow} \def\To{\longrightarrow} % Surlignage \def\vec{\overrightarrow} \def\w{\widetilde} % Indicatrice \def\ind{{\mathchoice {\rm 1\mskip-4mu l} {\rm 1\mskip-4mu l} {\rm 1\mskip-4.5mu l} {\rm 1\mskip-5mu l}}} %== Environnements ==% \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}}