%% Informations g�n�rales
\NeedsTeXFormat{LaTeX2e}[]
\ProvidesPackage{jice}[2008/06/20]

%% Chargement des packages
\RequirePackage[dvips]{graphicx}
\RequirePackage[francais]{babel}
\RequirePackage[utf8]{inputenc}
% \RequirePackage[utf8]{inputenc}
\RequirePackage{xspace,varwidth,vmargin,tocbibind,verbatim}
\RequirePackage{amsmath,amsthm,amssymb}
\RequirePackage{fancybox,fancyhdr,psboxit,multicol,geometry,eurosym,float,subfig}
\RequirePackage[ps2pdf, dvipdfm, dvips, urlcolor=blue, pdfhighlight =/O] {hyperref} %% Pour cr�er des hyperliens dans les pdf

%% Options d'affichage
\hypersetup{
    bookmarks=false,         % show bookmarks bar?
    unicode=false,          % non-Latin characters in Acrobat�s bookmarks
    pdftoolbar=true,        % show Acrobat�s toolbar?
    pdfmenubar=true,        % show Acrobat�s menu?
    pdffitwindow=true,      % page fit to window when opened
    pdftitle={Devoir Maths numéro 1},    % title
    pdfauthor={Jean-Christophe Gomez-Lavocat},     % author
    pdfsubject={Mathematiques},   % subject of the document
    pdfnewwindow=true,      % links in new window
    colorlinks=true,       % false: boxed links; true: colored links
    linkcolor=red,          % color of internal links
    citecolor=green,        % color of links to bibliography
    filecolor=magenta,      % color of file links
    urlcolor=cyan           % color of external links
}

\setmarginsrb{2cm}{1cm}{2cm}{1cm} % largeur marge gauche, haut, droite, bas
{0cm}{1.5cm}{0cm}{1.5cm} % distance texte/marge


%% D�claration des options
\DeclareOption{option}{...}
\DeclareOption*{...}
\ProcessOptions

%% D�finition des commandes

%%Macros texte
\newcommand\cad{c'est-à-dire\xspace}



%%Mise en page



%%%%Th�or�mes maths
\theoremstyle{plain}
\newtheorem*{Conclusion}{\underline{Conclusion}}
\newenvironment{conclusion}{\begin{Sbox}\begin{minipage}{0.8\linewidth}
  \begin{Conclusion}\textrm{:}}
  {\end{Conclusion}\end{minipage}\end{Sbox}\begin{center}
   \shadowbox{\TheSbox}\end{center}}
   
\newtheorem{Proposition}{Proposition}   
\setlength{\shadowsize}{2pt}
\newenvironment{proposition}{\begin{Sbox}\begin{minipage}{1\linewidth}
  \begin{Proposition}}
  {\end{Proposition}\end{minipage}\end{Sbox}\begin{center}
   \shadowbox{\TheSbox}\end{center}}   
   
\newtheorem{Theoreme}{Théorème}   
\setlength{\shadowsize}{2pt}
\newenvironment{theo}{\begin{Sbox}\begin{minipage}{1\linewidth}
  \begin{Theoreme}}
  {\end{Theoreme}\end{minipage}\end{Sbox}\begin{center}
   \shadowbox{\TheSbox}\end{center}}      
   
\newtheoremstyle{defi}
{3pt}{3pt}{}{}{\bf}{:}{\newline}{}  
\theoremstyle{defi}
\newtheorem{Definition}{{Définition}}
\newenvironment{definition}{\begin{center}\begin{minipage}{0.9\linewidth}\begin{Definition}}
  {\end{Definition}\end{minipage}\end{center}}
   

\newenvironment{preuve}{\begin{center}\begin{minipage}{0.9\linewidth}\begin{proof}}
{\end{proof}\end{minipage}\end{center}} 

\newenvironment{notation}{\textbf{Notation :} \begin{minipage}{0.7\linewidth}}
{\end{minipage}} 

 
%%%Info
\newenvironment{listing}[1]
{\begin{Sbox}\begin{minipage}{0.9\linewidth}
\small{#1}}
{\end{minipage}\end{Sbox}\begin{center}
   \shadowbox{\TheSbox}\end{center}}
 
\newcommand\programme{\textbf{Programme} \xspace}  
\newcommand\soit{\textit{Soit}\xspace}
\newcommand\tq{\textit{Tant que}\xspace}
\newcommand\faire{\textit{faire}\xspace}
\newcommand\si{\textit{Si}\xspace}
\newcommand\sinon{\textit{Sinon}\xspace}
\newcommand\alors{\textit{alors}\xspace}
\newcommand\renvoyer{\textit{Renvoyer}\xspace}



%% Fin du package 
\endinput