\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{maj}

\LoadClass[a4paper,10pt]{article}
\RequirePackage{ae,aecompl}
\RequirePackage{calc}
\RequirePackage{helvet}
\RequirePackage[T1]{fontenc}
\RequirePackage[french]{babel}

\renewcommand*\familydefault{\sfdefault}

\pagestyle{empty}

\RequirePackage[top=22mm,bottom=35mm,left=45mm,right=45mm]{geometry}

\widowpenalty=10000
\clubpenalty=10000
\raggedbottom

%defintion des tailles
\DeclareFixedFont{\petitefonte}{\encodingdefault}%
{\familydefault}{\seriesdefault}{\shapedefault}{8.5pt}
\renewcommand{\normalsize}{\petitefonte%\linespread{13.7pt}
				\setlength{\baselineskip}{13.7pt}}
\def\@normalsize{\@setsize\normalsize{8.5pt}\xpt\@xpt}
\DeclareFixedFont{\petitefontee}{\encodingdefault}%
{\familydefault}{\seriesdefault}{\shapedefault}{8pt}
\newcommand{\resumesize}{\petitefontee%\linespread{12.5pt}
				\setlength{\baselineskip}{12pt}}


\DeclareFixedFont{\petitefontemt}{\encodingdefault}%
{\familydefault}{\seriesdefault}{\shapedefault}{18.5pt}
\newcommand{\tmsize}{\petitefontemt \fontseries{m} 
				\setlength{\baselineskip}{23.5pt}}

\DeclareFixedFont{\petitefonteaut}{\encodingdefault}%
{\familydefault}{\seriesdefault}{\shapedefault}{10pt}
\newcommand{\autsize}{\petitefonteaut \fontseries{m} 
				\setlength{\baselineskip}{12pt}}

\DeclareFixedFont{\petitefontein}{\encodingdefault}%
{\familydefault}{\seriesdefault}{\shapedefault}{7pt}
\newcommand{\insize}{\petitefontein \fontseries{l} 
				\setlength{\baselineskip}{12pt}}



\DeclareFixedFont{\petitefonteee}{\encodingdefault}%
{\familydefault}{\seriesdefault}{\shapedefault}{12.5pt}
\newcommand{\titreunsize}{\petitefonteee
				\setlength{\baselineskip}{14pt}}


\DeclareFixedFont{\petitefonteeee}{\encodingdefault}%
{\familydefault}{\seriesdefault}{\shapedefault}{12pt}
\newcommand{\titredeuxsize}{\petitefonteeee
				\setlength{\baselineskip}{14pt}}

\DeclareFixedFont{\petitefonteeeee}{\encodingdefault}%
{\familydefault}{\seriesdefault}{\shapedefault}{11pt}
\newcommand{\titretroissize}{\petitefonteeeee
				\setlength{\baselineskip}{14pt}}

\def\@lesinstitutions{pr{\'e}ciser les institutions}
\newcommand{\institution}[1]{\def\@lesinstitutions{#1}}
\def\@lesmels{pr{\'e}ciser les mails}
\newcommand{\mail}[1]{\def\@lesmels{#1}}




\newcommand{\resume}[2]{{\resumesize \noindent R\'esum\'e:\\ \noindent #1\vspace{8pt}\\}{\indent\resumesize Mot-cl\'es : #2\vspace{10pt}\\}}

\renewcommand{\abstract}[2]{{\resumesize \noindent \fontshape{it} Abstract:\\ \noindent #1\vspace{8pt}\\}{\indent\resumesize \fontshape{it} Keywords : #2\\}}

\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {20pt}%
                                   {8pt}%
				   {\normalfont\fontfamily{phv}\fontseries{b}\titreunsize}}

\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {14pt}%
                                     {5pt}%
                                     {\normalfont\fontfamily{phv}\fontseries{m}\titredeuxsize}}

\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {8pt}%
                                     {3pt}%
                                     {\normalfont\fontfamily{phv}\fontseries{m}\titretroissize}}


\renewcommand\maketitle{
	\noindent  MajecSTIC 2007\\
	\rule{\textwidth}{0.3pt}
	Caen
	\vspace{70pt}\\
	\hspace{3mm}\begin{minipage}{11.7cm}
		{\tmsize \linespread{23.5pt} \noindent \@title}
	\end{minipage}
	{\vspace{30pt}\\ \autsize \noindent \@author} \vspace{4pt}\\
	{\autsize \noindent  \@lesinstitutions}\\
	\rule{\textwidth}{0.3pt}
	{\autsize \noindent \@lesmels}\\
}

\renewcommand{\bf}{\footnotesize \usefont{T1}{phv}{b}{n}}
\renewcommand{\it}{\footnotesize \usefont{T1}{phv}{m}{it}}
\renewcommand{\sc}{\footnotesize \usefont{T1}{phv}{m}{sc}}


\renewcommand{\textbf}[1]{{\bf #1}}
\renewcommand{\textit}[1]{{\it #1}}
\renewcommand{\textsc}[1]{{\sc #1}}
\renewcommand{\texttt}[1]{{\tt #1}}

\bibliographystyle{maj}
\newcommand{\donneref}[1]{
{\footnotesize
\bibliography{#1}
\nocite{}
}
}


\newcounter{theo}
\setcounter{theo}{0}
\newenvironment{theoreme}{\refstepcounter{theo} \begin{trivlist}\item[\noindent\textbf{Th�or�me \thetheo} \hskip \labelsep]\it}{\end{trivlist}}

\newcounter{exo}
\setcounter{exo}{0}
\newenvironment{exemple}{\refstepcounter{exo} \begin{trivlist}\item[\noindent\textbf{Exemple \theexo} \hskip \labelsep]\it}{\end{trivlist}}

\newcounter{prop}
\setcounter{prop}{0}
\newenvironment{propriete}{\refstepcounter{prop} \begin{trivlist}\item[\noindent\textbf{Propri�t� \theprop} \hskip \labelsep]\it}{\end{trivlist}}

\newcounter{pros}
\setcounter{pros}{0}
\newenvironment{pros}{\refstepcounter{pros} \begin{trivlist}\item[\noindent\textbf{Proposition \thepros} \hskip \labelsep]\it}{\end{trivlist}}

\newcounter{fait}
\setcounter{fait}{0}
\newenvironment{fait}{\refstepcounter{fait} \begin{trivlist}\item[\noindent\textbf{Fait \thefait} \hskip \labelsep]\it}{\end{trivlist}}

\newcounter{hypo}
\setcounter{hypo}{0}
\newenvironment{hypothese}{\refstepcounter{hypo} \begin{trivlist}\item[\noindent\textbf{Hypoth�se \thehypo} \hskip \labelsep]\it}{\end{trivlist}}

\newcounter{lem}
\setcounter{lem}{0}
\newenvironment{lemme}{\refstepcounter{lem} \begin{trivlist}\item[\noindent\textbf{Lemme \thelem} \hskip \labelsep]\it}{\end{trivlist}}

\newcounter{cor}
\setcounter{cor}{0}
\newenvironment{corollaire}{\refstepcounter{cor} \begin{trivlist}\item[\noindent\textbf{Corollaire \thecor} \hskip \labelsep]\it}{\end{trivlist}}

\newcounter{pf}
\setcounter{pf}{0}
\newenvironment{preuve}{\refstepcounter{pf} \begin{trivlist}\item[\noindent\textbf{Preuve \thepf} \hskip \labelsep]\it}{\end{trivlist}}

\newcounter{def}
\setcounter{def}{0}
\newenvironment{definition}{\refstepcounter{def} \begin{trivlist}\item[\noindent\textbf{D�finition \thedef} \hskip \labelsep]\it}{\end{trivlist}}







