
\newcommand{\VrbInput}[1]{\medskip 

\noindent$\left[\hspace*{.1em}\mbox{\begin{minipage}{\textwidth}\vspace*{.3em}

\small\verbatiminput{#1}\vspace*{.1em}\end{minipage}}\right.$\medskip

}

\newlength{\DECAL}
\setlength{\DECAL}{7mm}

\addtolength{\hoffset}{\DECAL}
\addtolength{\textwidth}{-\DECAL}


\newcounter{TP}

\newcommand{\Module}{Stage {\scshape unix}}

\newcommand{\Filiere}{{\scshape miage}}
\newcommand{\Annee}{{\scshape iup}2}


\newcommand{\NewPage}[2]{

\newpage%
\setcounter{page}{1}
\refstepcounter{TP}%
\setcounter{EXO}{0}%
\setcounter{SubEXO}{0}%
\noindent%
\hspace{-\DECAL}%
{\large\begin{tabular}{@{}l}
 \Module    \\
#1
\end{tabular}
\hfill
\begin{tabular}{r@{}}
\Filiere        \\
\Annee
\end{tabular}}%
\vspace{3mm}%
\\
\centerline{{\LARGE\bf #2}}
\vspace{5mm}
\thispagestyle{empty}
}



\newcommand{\NewT}[2]{\NewPage{{\scshape #1} -- {\theTP}}{#2}}
\newcommand{\NewTP}[1]{\NewT{tp}{#1}}
\newcommand{\NewTD}[1]{\NewT{td}{#1}}




%\setlength{\parindent}{0mm}
\setlength{\parskip}{.1em}


\newcounter{EXO}
\renewcommand{\theEXO}{\arabic{EXO})}
\newcounter{SubEXO}
\renewcommand{\theSubEXO}{\alph{SubEXO})}


\newcommand{\NewExo}{\vspace{3.5mm}

\noindent\setcounter{SubEXO}{0}%
\refstepcounter{EXO}%
%\hspace{-\DECAL}%
\makebox[\parindent][l]{{\bf\theEXO}}}



\newcommand{\Quest}{\stepcounter{SubEXO}
\vspace{1mm}

\noindent\makebox[\parindent][l]{\hspace*{.3\parindent}\theSubEXO} }


\newcommand{\Tilda}{\textsf{\symbol{"7E}}}

\newcommand{\TP}{\textsc{tp}}


\newenvironment{enlist}{\begin{list}{-}{\setlength{\leftmargin}{0em}\setlength{\itemsep}{0em}\setlength{\topsep}{0em}}}{\end{list}}

\newcommand{\NB}{\smallskip

\noindent\textbf{NB~:} }


%%
%% ELC modifications pour espacement
%%

%\let\oldchunk=\chunk
%\renewcommand{\chunk}[1]{\oldchunk{\raisebox{.3em}{#1}}}
%\let\oldbundle=\bundle
%\renewcommand{\bundle}[1]{\oldbundle{\raisebox{.3em}{#1}}}



\newcommand{\ConseilFaireDir}{
   Il est conseill\'e de faire chaque {\TP} dans un r\'epertoire particulier pour ne pas les m\'elanger.
   Pour le pr\'esent {\TP}, il est propos\'e, dans un soucis d'homog\'en\'eit\'e de prendre~:

\centerline{\textsf{\Tilda/StageUnix/TP\theTP}}
}

