\newcount\exno\newcount\questno\newcount\tdno
\def\findoc{\BYE}
\let\BYE=\bye
% entete de TD
\def\TD#1{\global\advance\tdno by 1\exno=0
\centerline{\bf TD $\the\tdno$}
\centerline{\bf#1}
\bigbreak
}
% exercice
\def\xxo#1#2#3{\advance\exno by 1\questno=0\bigbreak
\line{\bf #1 $\the\exno$ #2 \quad #3\hss}\smallbreak}
\def\exo{\xxo{\hss Exercice}:}
\def\xo{\xxo{}{}}
% question
\def\quest{\advance\questno by 1 \par\noindent {\bf Question\ $\the\questno$ :}\quad}
\def\uest{\advance\questno by 1 \par\noindent $\the\questno$--}
\def\corrige{\vfill\eject\exno=0\questno=0
\centerline{\bf corrig\'e}
\bigbreak
}
\def\titre#1{\bigbreak{\bf#1}\par\penalty100\medskip}
\def\para#1){\bigbreak{\bf#1)} }
\def\N{{I\!\!N}}
\def\Net{{I\!\!N^*}}
\def\Q{{\,I\!\!\!Q}}
\def\R{{I\!\!R}}
\def\Z{{Z\!\!\!Z}}
\def\C{{\,l\!\!\!C}}
\def\abs#1{{\left\vert#1\right\vert}}
\def\norme#1{{\left\Vert#1\right\Vert}}
\def\Norme#1{{\left\vert\left\vert\left\vert#1
\right\vert\right\vert\right\vert}}
\def\ent#1{{\left\lfloor#1\right\rfloor}}
\def\entsup#1{{\left\lceil#1\right\rceil}}
\def\entraine{\;\Longrightarrow\;}
\def\ssi{\relax\;\Longleftrightarrow\;}
\def\t{{}^{\kern2pt t\kern-2pt}}
\def\ch{\mathop{\rm ch}\nolimits}
\def\sh{\mathop{\rm sh}\nolimits}
\def\th{\mathop{\rm th}\nolimits}
\def\pgcd{\mathop{\rm pgcd}\nolimits}
\def\arctg{\mathop{\rm Arc\,tg}\nolimits}
\let\eps=\varepsilon
\let\ds=\displaystyle
\begingroup
\catcode`\{=11 \global\let\lacco={
\catcode`\}=11 \global\let\racco=}
\endgroup
{\def\aaaa{\catcode`\\=11 \global\let\bksl} \aaaa=\ }
{\obeyspaces\gdef\blanc{\obeyspaces\let =\ }}
\let\qar=\par
\def\ligne{\qar\hskip0pt}
\let\dblq="
{\catcode`\"=\active
\gdef\debchaine{\dblq\catcode`\\=11 \let"=\finchaine}
\gdef\finchaine{\dblq\catcode`\\=0  \let"=\debchaine}
\global\let"=\debchaine
}
\def\tty#1{\let\suite=\tty
\ifx#1.\let\suite=\tt \parindent=0pt \obeylines \blanc \else
\ifx#1;\let\suite=\relax\else
\ifx#1c\def\suite{\begingroup\def\n{\bksl n}\tty p"~\%&\{\}}\else
\ifx#1n\def\suite{\tty \\$}\let\{=\lacco \let\}=\racco \else
\ifx#1p\def\suite{\tty ^_\#}\let\\=\bksl\else
\ifx#1"\catcode`"=\active\else\catcode`#1=11
\fi\fi\fi\fi\fi\fi\suite}
\def\verbatim{\tty p&.}
\def\verbatimn{\tty pn.}
\def\verbatimc{\tty c.}
\def\verbatimcinput#1{\verbatimc\let\par\ligne\input#1\endgroup}
\def\verbatimninput#1{{\verbatimn\let\par\ligne\input#1}}
\def\nom#1{\edef#1{{\tt\expandafter\mange\string#1}}}
\def\mange#1{}
\def\br{\hfill\break}
\catcode`\�=\active \def�{\ifmmode^2\else$�$\fi}
\catcode`\�=\active \def�{\ifmmode^3\else$�$\fi}
\catcode`\�=\active \def�{\ifmmode^\circ\else$�$\fi}
\catcode`\�=\active \let�=\pm
\catcode`\�=\active \def�{\"u}   \catcode`\�=\active \def�{\"u}   \catcode`\�=\active \def�{\"u}  
\catcode`\�=\active \def�{\'e}   \catcode`\�=\active \def�{\'e}   \catcode`\�=\active \def�{\'e}
                                                                        \catcode`\�=\active \def�{\'E}
\catcode`\�=\active \def�{\^a}   \catcode`\�=\active \def�{\^a}   \catcode`\�=\active \def�{\^a}
\catcode`\�=\active \def�{\"a}   \catcode`\�=\active \def�{\"a}   \catcode`\�=\active \def�{\"a}
\catcode`\�=\active \def�{\`a}                                    \catcode`\�=\active \def�{\`a}
\catcode`\�=\active \def�{\c c}  \catcode`\�=\active \def�{\c c}  \catcode`\�=\active \def�{\c c}
\catcode`\�=\active \def�{\^e}   \catcode`\�=\active \def�{\^e}   \catcode`\�=\active \def�{\^e}
\catcode`\�=\active \def�{\"e}   \catcode`\�=\active \def�{\"e}   \catcode`\�=\active \def�{\"e}
\catcode`\�=\active \def�{\`e}   \catcode`\�=\active \def�{\`e}   \catcode`\�=\active \def�{\`e}
\catcode`\�=\active \def�{\"\i } \catcode`\�=\active \def�{\"\i } \catcode`\�=\active \def�{\"\i }
\catcode`\�=\active \def�{\^\i } \catcode`\�=\active \def�{\^\i } \catcode`\�=\active \def�{\^\i }
\catcode`\�=\active \def�{\^o}   \catcode`\�=\active \def�{\^o}   \catcode`\�=\active \def�{\^o}
\catcode`\�=\active \def�{\"o}   \catcode`\�=\active \def�{\"o}   \catcode`\�=\active \def�{\"o}
\catcode`\�=\active \def�{\^u}   \catcode`\�=\active \def�{\^u}   \catcode`\�=\active \def�{\^u}
\catcode`\�=\active \def�{\`u}   \catcode`\�=\active \def�{\`u}   \catcode`\�=\active \def�{\`u}
\catcode`\�=\active \def�{\"y}   \catcode`\�=\active \def�{\"y}   \catcode`\�=\active \def�{\"y}
