Retour

persopc.sty

Télécharger le fichier
% 1========================================================================
% Les packages suivants sont necessaires pour une bonne compilation du
% document. Il contiennent les definitions de certains symboles.
\usepackage[T1]{fontenc} %encodage des caractères
\usepackage[latin1]{inputenc}%decodage des caractères
\usepackage[frenchb]{babel}   %gestion du francais
%\usepackage[LGR]{fontenc} ajout de LGR en 
%aout 2002 pour utiliser le module greek de babel pour avoir l'euro. 
%lla fallu ajouter des dossier cbgreek dans les dossiers mf et tfm de 
%oztex, ces dossier ont ete pris dans macgut
%\usepackage[greek]{babel}
\usepackage{amsmath}  %gestion des symboles math\'{e}matiques
\usepackage{amsfonts} %gestion des fontes math\'{e}matiques
\usepackage{amssymb}  %gestion des symboles math\'{e}matiques
% 2========================================================================
% Les packages suivants ne sont pas indispensables. Il permettent d'am\'{e}liorer
% la mise en page, d'ins\'{e}rer des d\'{e}corations ou des images, de changer la police
% du texte. Ils d\'{e}finissent aussi certaines macros.
% Ils sont soit activ\'{e}s, soit d\'{e}sactiv\'{e}s en fonction des choix effectu\'{e}s par
% l'auteur. Un % devant la ligne correspondante d\'{e}sactive le package.
%\usepackage[]{palatino,euler} %changement des fontes par d\'{e}faut
\usepackage[]{palatino} %changement des fontes par d\'{e}faut
\usepackage[dvips]{graphicx} %gestion des graphiques en postcript
%\usepackage{fancybox} %gestion des encadrements, empeche l'affichage 
%de la table des matieres
\usepackage{geometry} %gestion des marges du document
\usepackage{fancyhdr} %gestion des entetes et des pieds de page
\usepackage{lastpage} %gestion du nombre total de pages du document
\usepackage{multicol} %gestion du multicolonnage
\usepackage{color} %gestion des couleurs, necessite french
\definecolor{gris}{gray}{0.7}
%\usepackage{pstricks} %figures en postscript conflit avec color???
%\ifhyperref
%\usepackage[colorlinks]{hyperref} %gestions des hyperliens dans un document .dvi
%\fi
\usepackage{floatflt} %gestion des insertions de figures dans un 
                                   %document latex, necessite le 
                                   %package french
% 3========================================================================
% 
% commandes personnelles
 
%Vecteurs================================================================
\newcommand{\myvec}[1]{\overrightarrow{\strut #1}} %vieille commande
                                                                                       % \`{a} conserver
\newcommand{\vect}[1]{\overrightarrow{#1}}
\newcommand{\Vect}[1]{\overrightarrow{\strut #1}}
\newcommand{\rep}{$\left(O;\vect{\imath},\vect{\jmath}\right)$}
\newcommand{\repc}{$\left(O;\vect{u},\vect{v}\right)$}
 
%produit scalaire=====================================================
\newcommand{\ps}[2]{(#1 \cdot #2)}
 
%norme=====================================================
\newcommand{\norme}[1]{\Vert #1 \Vert}
 
%Pr\'{e}sentation du d\'{e}terminant=====================================================
\newcommand{\deter}[4]{
\left\vert
\begin{array}{cc}
	 #1& #3  \\
	#2 & #4
\end{array}
\right\vert                                      }
 
%coordonn\'{e}es verticales=====================================================
%dimension 2
\newcommand{\cp}[2]{
                                    \left(
                                    \begin{array}{c}
                                	    #1\\
                               	    #2
                                     \end{array}
			    \right)
                                     }
%dimension 3
\newcommand{\ce}[3]{
                                    \left(
                                    \begin{array}{c}
                                	    #1\\
                               	    #2 \\
			    #3						
                                     \end{array}
			    \right)
                                     }
 
%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{\ZP}{\mathbb{Z}[X]}
\newcommand{\QP}{\mathbb{Q}[X]}
\newcommand{\RP}{\mathbb{R}[X]}
\newcommand{\CP}{\mathbb{C}[X]}
 
%Operateurs==============================================================
\newcommand{\card}{\operatorname{card}}
\newcommand{\diff}{\operatorname{d}}
 
%Symboles===============================================================
\renewcommand{\leq}{\leqslant}
\renewcommand{\geq}{\geqslant}
\newcommand{\congru}{\equiv}
\newcommand{\egaldef}{\stackrel{d\'{e}f}{=}}
\newcommand{\equivdef}{\stackrel{d\'{e}f}{\iff}}
\newcommand{\intf}[2]{\left[ #1 ; #2 \right]}
\newcommand{\into}[2]{\left] #1 ; #2 \right[}
\newcommand{\intfo}[2]{\left[ #1 ; #2 \right[}
\newcommand{\intof}[2]{\left] #1 ; #2 \right]}
 
%Combinatoire=============================================================
\newcommand{\comb}[2]{{{\Large 
C}}$_{#1}^{\raisebox{1mm}{\scriptsize{$#2$}}}$}
 
% bool\'{e}ens=================================================================
\newif \ifsujet \sujettrue    
\newif \ifcorrection \correctionfalse       
\newif \ifpreuve \preuvetrue       
%========================================================================
%\renewcommand{\thesection}{\Roman{section}} si on veut une autre 
% enum\'{e}ration des sections 
\renewcommand{\labelenumi}{{\bf{\arabic{enumi}}.}}
\renewcommand{\labelenumii}{{\bf{\alph{enumii}}.}}
 
%Numerotation==================================================================
%\newcommand{\up}[1]{\raisebox{1ex}{\small{#1}}}	
 
%liens avec le web============================================================
\newcommand{\dvilink}[2]{\href{dvi:#1}{#2}}
 
%Pr\'{e}sentation des devoirs==================================================
%devoirsurveille
\newcommand{\ds}[4]{\noindent 
\fbox{ 
\begin{minipage}[t]{0.975\linewidth}
\textit{ Classe de #1 } \hfill %\hspace{1.53cm}
 \textit{ Devoir surveill\'{e} de MATH\'{E}MATIQUES N$^{o}$#2} 
 \hfill %\hspace{1.53cm} 
\textit{ Ann\'{e}e scolaire $\mathbf{2002-2003}$}
\par \begin{center} le #3 (#4)\end{center}
\end{minipage}
          }
 
%   \pagestyle{fancy}
%  \lhead{}
%  \chead{}
%  \rhead{}
%  \renewcommand{\headrulewidth}{0pt} 
%  \renewcommand{\footrulewidth}{0.4pt} 
%  \lfoot{}
%  \cfoot{}
%  \rfoot{page \thepage / \pageref{LastPage}}
 
\vspace{1em}
                                 }
 
%devoirlibre
\newcommand{\dl}[3]{\noindent 
\fbox{ 
\begin{minipage}[t]{0.975\linewidth}
\textit{  Classe de #1 } \hfill %\hspace{1.53cm}
 \textit{ Devoir libre de MATH\'{E}MATIQUES N$^{o}$#2} 
 \hfill %\hspace{1.53cm} 
\textit{ Ann\'{e}e scolaire $\mathbf{2002-2003}$}
\par \begin{center} \`{a} remettre  le #3 \end{center}
\end{minipage}
          }
%  \pagestyle{fancy}
%  \lhead{}
%  \chead{}
%  \rhead{}
%  \renewcommand{\headrulewidth}{0pt} 
%  \renewcommand{\footrulewidth}{0.4pt} 
%  \lfoot{}
%  \cfoot{}
%  \rfoot{page \thepage / \pageref{LastPage}}
 
\vspace{1em}
                                   }
%interrogation
\newcommand{\interro}[4]{\noindent 
\fbox{ 
\begin{minipage}[t]{0.975\linewidth}
\textit{ Classe de #1 } \hfill %\hspace{1.53cm}
 \textit{ Interrogation écrite de MATH\'{E}MATIQUES N$^{o}$#2} 
 \hfill %\hspace{1.53cm} 
\textit{ Ann\'{e}e scolaire $\mathbf{2002-2003}$}
\par \begin{center} le #3 (#4)\end{center}
\end{minipage}
          }
 
%   \pagestyle{fancy}
%  \lhead{}
%  \chead{}
%  \rhead{}
%  \renewcommand{\headrulewidth}{0pt} 
%  \renewcommand{\footrulewidth}{0.4pt} 
%  \lfoot{}
%  \cfoot{}
%  \rfoot{page \thepage / \pageref{LastPage}}
 
\vspace{1em}
                                 }
 
%Pr\'{e}sentation des TD==================================================
\newcommand{\td}[3]{\noindent 
\begin{minipage}[t]{\linewidth}
\textit{  Classe de #1 } \hfill %\hspace{2cm}
 \textit{  Travaux dirigés de MATH\'{E}MATIQUES N$^{o}$#2}
 \hfill %\hspace{2cm} 
\textit{ Ann\'{e}e scolaire $\mathbf{2002-2003}$}
\end{minipage}
\rule{\linewidth}{0.5mm} 
\par \begin{center} {\bf #3 }\end{center}
 
%   \pagestyle{fancy}
%  \lhead{}
%  \chead{}
%  \rhead{}
%  \renewcommand{\headrulewidth}{0pt} 
%  \renewcommand{\footrulewidth}{0.4pt} 
%  \lfoot{}
%  \cfoot{}
%  \rfoot{page \thepage / \pageref{LastPage}}
 
\vspace{1em}
                   }
 
%Titre d'un cours
\newcommand{\titre}[2]{
{\bf{\Large{\noindent Math\'{e}matiques-#2 \hfill Année scolaire 
$\mathbf{2002-2003}$  
\rule{\linewidth}{0.5mm} 
\begin{center}
	{\LARGE{#1}}
\end{center}
      }         }
}
                           }           
%feuille de cours				
\newcommand{\fcours}[1]{						   
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{}
\renewcommand{\headrulewidth}{0pt} 
\renewcommand{\footrulewidth}{0.4pt} 
\lfoot{#1}
\cfoot{}
\rfoot{page \thepage / \pageref{LastPage}}
 
                                     }
 
%Pr\'{e}sentation des figures==================================================
%\def\figurename{\textsc{Figure.}} red\'{e}finition du titre de la figure dans french.sty
%================================
% \newcommand{\fig}[4]{
% \begin{floatingfigure}[#1]{#2cm}
% \fbox{\includegraphics[scale=1]{#3}}
% 	\caption[#4]{\label{#4}#4}
% \end{floatingfigure}
%                         }
 
 
%Pr\'{e}sentation des exos=========================================================
\newcounter{exercice}
\newcommand{\exo}[1]{%\setcounter{question}{0}
                     \addtocounter{exercice}{1}
                     \vspace{1em} \par \noindent
                     \raisebox{-0.7ex}{\fcolorbox {black}{white}{\bf Exercice \arabic{exercice}  #1}}
                     \hrulefill
                     \par \vspace{0.5em}
                    }
\newcommand{\exods}[2]{%\setcounter{question}{0}
                     \addtocounter{exercice}{1}
                     \vspace{1em} \par \noindent
                     \raisebox{-0.7ex}{\fcolorbox {black}{white}{\bf Exercice \arabic{exercice}  #1}}
                     \hrulefill \, (\, $#2$ points \, )
                     \par \vspace{0.5em}
                    }
%correction des exos
\newenvironment{correction}[0]
{\par  \nopagebreak[4] \noindent{\bf{Correction}}  
\hrulefill \par }{\par \noindent \hrulefill \par \normalsize}
 
%Nouveaux environnements pour les cours==================================================		
 
%preuve des theoremes
\newenvironment{preuve}[0]
{\par  \nopagebreak[4] \noindent {\bf{Preuve}}  
\hrulefill \par }{\nopagebreak[4] \par \noindent \hrulefill \par \normalsize}
 
%theoremes, lemmes ,etc..
\newtheorem{theo}{Th\'{e}or\`{e}me} %vielle commande
\newtheorem{theoreme}{Th\'{e}or\`{e}me}
\newtheorem{propo}{Proposition} %vielle commande
\newtheorem{proposition}{Proposition}
\newtheorem{propriete}{Propri\'{e}t\'{e}}
\newtheorem{mydef}{D\'{e}finition} %vielle commande
\newtheorem{definition}{D\'{e}finition}
\newtheorem{lemme}{Lemme}
\newtheorem{corollaire}{Corollaire}
 
 
%Conclusion  d'un exo
\newcommand{\conclusion}[1]{\fcolorbox{red}{white}
{%{\begin{minipage}[t]{\linewidth} pb car linewidth est modifié après..
\textcolor{blue}{#1}}
%\end{minipage}
}