\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{td}
              [2000/09/19 v1.01 feuille de TD de Nicolas class]

\LoadClassWithOptions{article}
\RequirePackage[latin1]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{a4wide}
\RequirePackage[frenchb]{babel}
\RequirePackage{multicol}
\setlength{\multicolsep}{0pt}
\RequirePackage{amsfonts}
\RequirePackage{amsmath}
%%% more text
\ifcase \@ptsize % mods for 10 pt
	\advance\topmargin by -5\baselineskip
	\advance\textheight by 7\baselineskip
\or % mods for 11 pt
	\advance\topmargin by -4\baselineskip
	\advance\textheight by 6\baselineskip
\or % mods for 12 pt
	\advance\topmargin by -3\baselineskip
	\advance\textheight by 5\baselineskip
\fi

%%%%% matire a titre propre aux td
\newcommand*{\diplome}[1]{\gdef\@diplome{#1}}
\newcommand*{\annee}[1]{\gdef\@annee{#1}}
\newcommand*{\cours}[1]{\gdef\@cours{#1}}
\newcommand*{\seance}[1]{\gdef\@seance{#1}}
%%%%% tire de article.cls
\if@titlepage
\else
 \def\@maketitle{%              %la il y a du travail
  \newpage\null\vspace*{-3\baselineskip}
  \begin{center}%
   \let \footnote \thanks
   {\large \@diplome \hfill \@annee \par}%
   {\large \@cours \hfill \@date \par}%
   {\Large \bfseries \@seance \par}
  \end{center}%
  \par
  \vskip 1.5em}
\fi
%%%%
%\def\@maketitle{%              %la est l'original
% \newpage
% \null
% \vskip 2em%
% \begin{center}%
%  \let \footnote \thanks
%  {\LARGE \@title \par}%
%  \vskip 1.5em%
%  {\large
%   \lineskip .5em%
%   \begin{tabular}[t]{c}%
%    \@author
%   \end{tabular}\par}%
%  \vskip 1em%
%  {\large \@date}%
% \end{center}%
% \par
% \vskip 1.5em}

%%% style qui marque FIN en bas de la (derniere) page
\def\ps@final{%
 \let\@oddhead\@empty\let\@evenhead\@empty
 \def\@evenfoot{\hfil{\slshape FIN}\hfil}%
 \def\@oddfoot{\hfil{\slshape FIN}\hfil} 
 \let\@mkboth\@gobbletwo
 \let\sectionmark\@gobble
 \let\subsectionmark\@gobble
}
%%% style qui marque `TLPSVP' en bas de la  page
\def\ps@tlpsvp{%
 \let\@oddhead\@empty\let\@evenhead\@empty
 \def\@evenfoot{\hfil{\slshape Tournez la page, s.v.p.}\hfil}%
 \def\@oddfoot{\hfil{\slshape Tournez la page, s.v.p.}\hfil} 
 \let\@mkboth\@gobbletwo
 \let\sectionmark\@gobble
 \let\subsectionmark\@gobble
}

%\AtBeginDocument{}
\AtEndDocument{\thispagestyle{empty}}
%\AtEndDocument{\thispagestyle{final}}

%%%% structure propre aux td
\newcounter{exo}
\newcommand{\exo}{\par\vspace{1em}\stepcounter{exo}\noindent
	\textbf{Exercice~\arabic{exo})~}}
\newcounter{sexo}[exo]
\newcommand{\sexo}{\par\stepcounter{sexo}\textbf{\alph{sexo})~}}
%%%% les macros de math courantes
\RequirePackage{mathcmd}

\endinput
%%
%% End of file `td.cls'.

