\input{../tex/entete.tex}

%%%%%% Théorèmes
\theoremstyle{definition}\theorembodyfont{\rm}
%\newtheorem{exo}{Exercice}
\newtheorem{deftn}{Définition}
\newtheorem{theo}{Théorème}
\newtheorem{lemme}[theo]{Lemme}
\newtheorem{prop}[theo]{Propriété}
\newtheorem{cor}[theo]{Corollaire}
\newtheorem{nott}{Notation}
\newtheorem{vocab}[nott]{Vocabulaire}
%\newtheorem{rmq}{Remarque}
\newenvironment{rmq}{\noindent\textbf{Remarque :}}{\hfill $\Box$}
\newtheorem{csq}{Conséquence}
\newtheorem{ex}{Exemple}
\newtheorem{c-ex}[ex]{Contre-exemple}
\newtheorem{appli}{Application}
\newtheorem{rappel}{Rappel}
% Environnements encadrés
\newenvironment{deftnE}{\renewcommand*{\arraystretch}{0}\begin{tabular}{|p{\linewidth}|}\hline\begin{deftn}}
{\end{deftn}\\\hline\end{tabular}\bigskip\\}
\newenvironment{theoE}{\renewcommand*{\arraystretch}{0}\begin{tabular}{|p{\linewidth}|}\hline\begin{theo}}
{\end{theo}\\\hline\end{tabular}\bigskip\\}
\newenvironment{corE}{\renewcommand*{\arraystretch}{0}\begin{tabular}{|p{\linewidth}|}\hline\begin{cor}}
{\end{cor}\\\hline\end{tabular}\bigskip\\}
\newenvironment{propE}{\renewcommand*{\arraystretch}{0}\begin{tabular}{|p{\linewidth}|}\hline\begin{prop}}
{\end{prop}\\\hline\end{tabular}\bigskip\\}
\newenvironment{nottE}{\renewcommand*{\arraystretch}{0}\begin{tabular}{|p{\linewidth}|}\hline\begin{nott}}
{\end{nott}\\\hline\end{tabular}\bigskip\\}
%%% \def\deftnE#1\end#2{\fbox{\parbox[xcm]{#1}}}

%%% D\'efinition des environnements "demo", "sol" etc
%\newenvironment{sol}{\noindent\textbf{Solution.}}{\hfill $\Box$\vspace{5mm}}
\newenvironment{demop}{\noindent\textbf{Démonstration.}}{}
\newenvironment{demo}{\noindent\textbf{Démonstration.}}{\hfill $\Box$\vspace{5mm}}
\newenvironment{demoth}[1]{\noindent\textbf{Démonstration du théorème \ref{#1} (unicité).}}{\hfill $\Box$\vspace{5mm}}
\newenvironment{demol}[1]{\noindent\textbf{Démonstration du lemme \ref{#1}.}}{\hfill $\Box$\vspace{5mm}}
\newenvironment{csqg}{\noindent\textbf{Conséquences graphiques.}}{}


%%%%%% Section et subsection comme dans le cours. %%%%%%
\setcounter{secnumdepth}{4}
\renewcommand{\thesection}{\Roman{section})}
\renewcommand{\thesubsection}{\Alph{subsection})}
%\renewcommand{\thesubsection}{\arabic{subsection})}
\renewcommand{\thesubsubsection}{\arabic{subsubsection})}
\renewcommand{\theparagraph}{\alph{paragraph})}
\makeatletter
\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
    -.2ex}{2.3ex plus .2ex}{\Large\bf}}
\def\subsection{\@startsection{subsection}{2}{5ex}{-3.25ex plus -1ex minus 
   -.2ex}{1.5ex plus .2ex}{\large\bf}}
\def\subsubsection{\@startsection{subsubsection}{3}{10ex}{-3.25ex plus
-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
\def\paragraph{\@startsection
     {paragraph}{4}{15ex}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}{\normalsize\bf}}
%\def\subparagraph{\@startsection
%     {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus 
%     .2ex}{-1em}{\normalsize\bf}}
\makeatother
%%%%%%   %%%%%%  %%%%%%  %%%%%%  %%%%%%   %%%%%%  %%%%%%  %%%%%%

%%%%%% Commentaires & co %%%%%%
\def\bla#1{{\small \color{red} #1}} % Commentaires oraux
\def\blo#1{{\color{blue} #1}} % trous du poly
\def\bloblo{\blue}
%%%%%% Dessins %%%%%%
\newcommand{\cadre}[2]{\fbox{\begin{tabularx}{#1}[t]{c}\vspace{#2}\end{tabularx}}}
\newcommand{\vcadre}[2]{\mbox{\begin{tabularx}{#1}{c}\vspace{#2}\end{tabularx}}}

%%%%%% Table des matieres %%%%%%

% \makeatletter
% \let\vxexo\exo
% \def\exoopt[#1]{\addcontentsline{toc}{subsubsection}{#1}\vxexo[#1]}
% \renewcommand{\exo}{\@ifnextchar[{\exoopt}{\vxexo}}
% \makeatother


%%%%%% Titre de feuille/DS/DM || environnement vide %%%%%%
\theoremstyle{break}\theorembodyfont{\rm}
\newtheorem{exo}{Exercice}
\newtheorem{planche}{Planche}

\usepackage{courier}
\newenvironment{code}{}{}
\newenvironment{morale}{\noindent\textbf{Morale :}}{\hfill $\Box$}
\newenvironment{cours}{\noindent\textbf{Cours.}}{\hfill $\Box$}

%\newenvironment{planche}[1]{\noindent\textbf{Planche (#1)}}{\vspace{5mm}}
