\NeedsTeXFormat{LaTeX2e}
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{inputenc}}
\ProcessOptions\relax
\RequirePackage{inputenc}
\RequirePackage{url} %%url
\RequirePackage{graphicx}% includegraphics
%\RequirePackage{amsmath}% ams
%\RequirePackage{amssymb}% ams
%\RequirePackage{amsfonts}% ams
\RequirePackage{bbm} 
\RequirePackage{fancyvrb} 
\RequirePackage[T1]{fontenc}
\RequirePackage[thmmarks,noconfig]{ntheorem}% theorem, definition etc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\theoremnumbering{arabic}
%%%%%%%%%%%% italique
\theoremstyle{plain}
\theoremsymbol{} % non
\theorembodyfont{\itshape}
\theoremheaderfont{\normalfont\bfseries}
\theoremseparator{}
% classique anglais
\theoremstyle{break} 
\newtheorem{theo}{Th\'eor\`eme}[section]
\newtheorem{theoreme}{Th\'eor\`eme}[section]
\newtheorem{Theoreme}{Th\'eor\`eme}[section]
\newtheorem{defi}{D\'efinition}[section]
\newtheorem{definition}{D\'efinition}[section]
\newtheorem{Definition}{D\'efinition}[section]
\newtheorem{prop}{Proposition}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{Proposition}{Proposition}[section]
\newtheorem{propriete}{Propri\'et\'e}[section]
\newtheorem{Propriete}{Propri\'et\'e}[section]
\newtheorem{propri}{Propri\'et\'e}[section]
\newtheorem{Lemme}{Lemme}[section] 
\newtheorem{lemme}{Lemme}[section] 
\newtheorem{lem}{Lemme}[section] 
\newtheorem{corollaire}{Corollaire}[section]
\newtheorem{Corollaire}{Corollaire}[section]
%%%%%%%%%%%%% droit 
\theorembodyfont{\upshape\scriptsize}
\newtheorem{exercice}{Exercice}[section]
\newtheorem{Exercice}{Exercice}[section]
\theorembodyfont{\upshape}
\newtheorem{Exemple}{Exemple}[section]
\newtheorem{exemple}{Exemple}[section]
\newtheorem{Exemples}{Exemples}[section]
\theoremstyle{nonumberbreak}
\newtheorem{Remarque}{Remarque}
\newtheorem{remarque}{Remarque}
\newtheorem{Remarques}{Remarques}
\newtheorem{remarques}{Remarques}
\theoremsymbol{\ensuremath{\square}}
\newtheorem{Preuve}{Preuve}
\newtheorem{preuve}{Preuve}
%%
%% End of file `ntheorem.cfg'.
%%%%%%%%% definition des dimensions %%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \setcounter{tocdepth}{2}
% %\setlength{\marginparwidth}{0.7cm}
% %\setlength{\topmargin}{-1cm}
% \setlength{\textwidth}{12.5cm}
% \setlength{\textheight}{19cm}
% \setlength{\oddsidemargin}{0cm}
% \setlength{\evensidemargin}{0cm}
% %\setlength{\rightmargin}{2.5cm}
% %\setlength{\leftmargin}{2.5cm}
% \setlength{\parindent}{0cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%% package des en tetes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{fancyhdr,calc}
\RequirePackage{geometry}
%%%%%%%%% definition des dimensions %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\geometry{paperwidth=155mm,paperheight=235mm,top=25mm, bottom=25mm, left=15mm, right=15mm,footskip=10mm}
\setlength{\parindent}{0cm}
%\fancyheadoffset[LE,RO]{\marginparsep+\marginparwidth}
%\fancyheadoffset[LE,RO]{\marginparwidth}
%%%%%%%  remember section title
\renewcommand{\sectionmark}[1]%
                  {\markboth{#1}{#1}}
%%%%%%%  section number and title
\renewcommand{\sectionmark}[1]%
                  {\markright{\thesection\ #1}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headwidth}{\marginparsep}
\fancyhf{} % vider les entetes et pieds de page
%%%%%%% definition des entetes et pieds de page
\fancyhead[LE]{{\thepage} \hspace{7mm} \thebooktitle}
\fancyhead[RO]{\nouppercase{\leftmark}\hspace{7mm} \thepage}
\fancyhead[LO,RE]{}
%%%%%%% redefinition du style plain (ie page vide)
\fancypagestyle{plain}{\fancyhf{}\renewcommand{\headrulewidth}{0pt}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% index et glossaire
%\RequirePackage{balance} %% pour la balance des index et glossaire
\RequirePackage{index}
\makeindex
\RequirePackage[refpage]{nomencl}
\renewcommand{\nomname}{Notations}
\makenomenclature
%
\bibliographystyle{pratiquer} 
\RequirePackage{natbib}
%
%
\RequirePackage{float} %% pour utiliser l'option H des floats
%%%%%%%%%%%%%%%%%%% BABEL
\RequirePackage[frenchb]{babel} %% babel francais
%% MAJ des noms de figures+table (2 methodes)
\renewcommand{\figurename}{Fig.}
\addto\captionsfrench{\renewcommand{\figurename}{Fig.}}
\renewcommand{\tablename}{Tableau}
\addto\captionsfrench{\renewcommand{\tablename}{Tableau}}
\RequirePackage{xspace} %% gestion des espace pour les guillemets
%%%%%%%%%%%%%%%%%%% titre et CAPTIONS
\RequirePackage[labelsep=endash,labelfont=bf]{caption}
%\captionsetup[table]{position=top}
\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}}
%%%%%%%%%%%%%%%%%% raccourcis
\newcommand{\eme}{^{\mbox{{\scriptsize e}}}}   %\scriptstyle 
%%%%%%%%%%%%%%%%%% from jss.cls
\newcommand\code{\bgroup\@makeother\_\@makeother\~\@makeother\$\@codex}
\def\@codex#1{{\normalfont\ttfamily\hyphenchar\font=-1 #1}\egroup}
\makeatother
%%\let\code=\texttt
\let\proglang=\textsf
\newcommand{\pkg}[1]{{\fontseries{b}\selectfont #1}}
%%%%%%%%%%%%%%%%%% environnements
\DefineVerbatimEnvironment{rcode}{Verbatim}{} % avec fancyvrb
\RequirePackage{amsmath}% ams
\RequirePackage{amssymb}% ams
\RequirePackage{amsfonts}% ams
\endinput
