%----------------------------------------------------------------------------------------------------------
% 	Copyright (c) 2019 Christophe Dutang, 
% 	
% 	The following Latex code is given as an example and not The example
%	of using Latex to write report, memoir or thesis. 
%
%	The licence is unlimited but the copyright authors could NOT be liable
%	for any direct or indirect damages caused by the use of the following code.
%
%	The following code could be compiled :
%	  - on windows with a Tex distribution such as miktex (http://miktex.org) 
%		and a front end Latex editor such as texniccenter (http://www.toolscenter.org)
%	  - on mac os with a Tex distribution such as TexLive and a front end Latex
%	  	editor such as Texshop (http://www.uoregon.edu/~koch/texshop/)
%	  - on linux with a Tex distribution such as teTex (http://www.tug.org/teTeX/)
%	  	and a front end Latex editor such as emacs (http://www.gnu.org/software/emacs/)
%
%	  We may use \'e (\`e, \`a,...) instead of the accented character to ensure the 
%	    portability of the Latex code. This is NOT an obligation of Latex.
%
%----------------------------------------------------------------------------------------------------------

\documentclass[11pt,a4paper]{article}

% package
%symbole math de l'American Mathematical Society (AMS)
\usepackage{amsfonts,amssymb,amsmath,amsthm}
%utiliser les regles de typographie francaise
\usepackage[french]{babel}
\usepackage{courier,newlfont}

% accents 8 bits dans le fichier
%\usepackage[applemac]{inputenc} %MAC encoding
%\usepackage[utf8]{inputenc} %UNIX encoding
\usepackage[utf8]{inputenc} %UNIX encoding on MAC
%\usepackage[ansinew]{inputenc} %WINDOWS encoding

%graphique
\usepackage[dvips]{graphicx}
\usepackage{color, graphics, wrapfig, caption, subcaption}

\usepackage{tabls}

%citation
\usepackage{natbib}

%table des matieres
\usepackage{shorttoc}
\usepackage[pagebackref=false, hyperfootnotes=false]{hyperref}

%appendix
\usepackage[toc]{appendix}

%exercise
%\usepackage[exerciseonly]{exercise}
%\usepackage[answeronly]{exercise}
\usepackage{exercise}

%change l en tete des exercises
\renewcommand{\ExerciseHeader}{\textbf{\large Exercice~\ExerciseHeaderNB\ExerciseHeaderTitle \ExerciseHeaderOrigin.\newline}}
%change l en tete des reponses
\renewcommand{\AnswerHeader}{\medskip\underline{\textit{ R\'eponse de l'exercice~\ExerciseHeaderNB.}}\newline}


%note de bas de page
\usepackage[symbol,stable]{footmisc}
\usepackage{perpage}
\MakePerPage[1]{footnote}

%pour les url
\usepackage{url}
\urlstyle{sf}

%plusieur colonne dans tableau
\usepackage{multirow, multicol}

% todo's
\usepackage{todonotes}
% usage: \todo[color=green]{TODO}blabla 




% layout
\normalsize\setlength{\parskip}{\baselineskip}
\usepackage[left=2cm, right=2cm, top=2cm, bottom=2cm]{geometry}




% les macros generales

%layout
\newcommand{\HRuleTop}{\noindent\rule{\linewidth}{.5pt}}
\newcommand{\HRuleBottom}{\rule{\linewidth}{.5pt}}
\newcommand{\ligne}{\rule[2mm]{.3\textwidth}{0,5mm}\\}
\newcommand{\myskip}{\vspace{\parskip}}
\newcommand{\mytodo}[1]{\todo[color=green]{TODO}#1}
\newcommand{\blank}{ \clearpage{\pagestyle{empty}\cleardoublepage} }

%sets
\newcommand{\R}{\mathbb R}
\newcommand{\N}{\mathbb N}
\newcommand{\Q}{\mathbb Q}
\newcommand{\Z}{\mathbb Z}
\newcommand{\X}{\mathbb X}
\newcommand{\C}{\mathbb C}
\newcommand{\K}{\mathbb K}
\newcommand{\Rmn}{\R^{m\times n}}
\newcommand{\Rnm}{\R^{n\times m}}
\newcommand{\Rnn}{\R^{n\times n}}
\newcommand{\Cnm}{\C^{n\times m}}
\newcommand{\Knm}{\K^{n\times m}}
\newcommand{\Kmn}{\K^{m\times n}}
\newcommand{\Knn}{\K^{n\times n}}
\newcommand{\Kmp}{\K^{m\times p}}

\newcommand{\calN}{\mathcal N}
\newcommand{\calM}{\mathcal M}
\newcommand{\calA}{\mathcal A}
\newcommand{\calB}{\mathcal B}
\newcommand{\calE}{\mathcal E}
\newcommand{\calF}{\mathcal F}
\newcommand{\calL}{\mathcal L}
\newcommand{\calG}{\mathcal G}
\newcommand{\calP}{\mathcal P}
\newcommand{\calS}{\mathcal S}
\newcommand{\calU}{\mathcal U}
\newcommand{\barA}{\overline A}
\newcommand{\barV}{\overline V}

\newcommand{\bA}{\boldsymbol{A}}
\newcommand{\bB}{\boldsymbol{B}}
\newcommand{\bC}{\boldsymbol{C}}
\newcommand{\bD}{\boldsymbol{D}}
\newcommand{\bH}{\boldsymbol{H}}
\newcommand{\bM}{\boldsymbol{M}}
\newcommand{\bN}{\boldsymbol{N}}
\newcommand{\bP}{\boldsymbol{P}}
\newcommand{\bT}{\boldsymbol{T}}

\newcommand{\bzero}{\boldsymbol{0}}
\newcommand{\be}{\boldsymbol{e}}
\newcommand{\bff}{\boldsymbol{f}}
\newcommand{\bI}{\boldsymbol{I}}
\newcommand{\bx}{\boldsymbol{x}}
\newcommand{\by}{\boldsymbol{y}}
\newcommand{\bz}{\boldsymbol{z}}
\newcommand{\bt}{\boldsymbol{t}}


%text style
\newcommand{\pkg}{\textbf}
\newcommand{\sigle}{\textsc}
\newcommand{\code}{\texttt}
\newcommand{\soft}{\textsf}
\newcommand{\txtm}[1]{\textrm{~~#1~~}}
\newcommand{\expo}{\textsuperscript}

%\newcommand{\(}{\left(}

%math operator
\newcommand{\abs}[1]{\left\lvert#1\right\rvert}
\newcommand{\bigo}[1]{\mathcal O \hskip -0,2em \left(#1\right)}
\DeclareMathOperator{\card}{Card}
\DeclareMathOperator{\co}{co}
\DeclareMathOperator{\cone}{cone}
\DeclareMathOperator{\diag}{diag}
\renewcommand{\det}[1]{\textrm{det}\left(#1\right)}
\newcommand{\eqx}[1]{\underset{#1}{=}}
\DeclareMathOperator{\epi}{epi}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\erfc}{erfc}
\DeclareMathOperator{\hyp}{hyp}
\DeclareMathOperator{\Id}{Id}
\newcommand{\II}{\mbox{\large 1\hskip -0,353em 1}}
\newcommand{\ind}{1\!\!1}
\DeclareMathOperator{\IM}{Im}
\newcommand{\Jac}{\textrm{Jac\hskip+.1em}}
\DeclareMathOperator{\Ker}{Ker}
\newcommand{\littleo}[1]{o\hskip -0,2em \left(#1\right)}
\DeclareMathOperator{\mat}{mat}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\DeclareMathOperator{\rg}{rg}
\DeclareMathOperator{\sign}{sign}
\DeclareMathOperator{\Sp}{Sp}
\newcommand{\simx}[1]{\underset{#1}{\sim}}
\newcommand{\lnL}{\log \mathcal{L}}
\DeclareMathOperator{\Tr}{Tr}
\DeclareMathOperator{\vect}{vect}


%matrices
\newcommand{\matA}{\left(\begin{matrix}a_{11}&\dots&a_{1m}\\ \vdots&a_{ij}&\vdots\\ a_{n1}& \dots & a_{nm} \end{matrix}\right)}
\newcommand{\matAfull}{\left(\begin{matrix}
a_{11}&\dots&a_{1k}&\dots&a_{1m}\\ 
&\dots&&\dots&\\ 
a_{i1}&\dots&a_{ik}&\dots& a_{im}\\ 
&\dots&&\dots&\\ 
a_{n1}& \dots & a_{nk} & \dots & a_{nm} \end{matrix}\right)}
\newcommand{\matBfull}{\left(\begin{matrix}
b_{11}&&b_{1j}&&b_{1p}\\ 
\vdots&&\vdots&& \vdots\\ 
b_{k1}&\vdots&b_{kj}&\vdots& b_{kp}\\ 
\vdots&&\vdots&& \vdots\\ 
b_{m1}&  & b_{mj} &  & b_{mp} \end{matrix}\right)}

\newcommand{\matAij}{\left(\begin{matrix}a_{ij}\end{matrix}\right)_{ij}}
\newcommand{\matBij}{\left(\begin{matrix}b_{ij}\end{matrix}\right)_{ij}}
\newcommand{\matCij}{\left(\begin{matrix}c_{ij}\end{matrix}\right)_{ij}}

\newcommand{\ionen}{i=1,\dots,n}
\newcommand{\ionem}{i=1,\dots,m}
\newcommand{\jonem}{j=1,\dots,m}

\newcommand{\sumionen}{\sum_{i=1}^n}
\newcommand{\sumionem}{\sum_{i=1}^m}



\newcommand{\vxy}{\left(\begin{matrix}x\\ y\end{matrix}\right)}
\newcommand{\vxyz}{\left(\begin{matrix}x\\ y\\ z\end{matrix}\right)}
\newcommand{\vxyzt}{\left(\begin{matrix}x\\ y\\ z\\ t\end{matrix}\right)}



%limit
\newcommand{\cvg}{\underset{n\rightarrow + \infty}{\longrightarrow} }
\newcommand{\cvgnonentwo}{\underset{n_1, n_2\rightarrow + \infty}{\longrightarrow} }
\newcommand{\limn}{\underset{n\rightarrow + \infty}{\lim} }
\newcommand{\limh}{\underset{h\rightarrow 0}{\lim} }
\newcommand{\limtp}{\underset{t\rightarrow + \infty}{\lim} }
\newcommand{\limtm}{\underset{t\rightarrow - \infty}{\lim} }
\newcommand{\cvgps}{\stackrel{\text{p.s.}}{\cvg} }
\newcommand{\cvgloi}{\stackrel{\mathcal D}{\cvg} }
\newcommand{\cvgloinonentwo}{\stackrel{\mathcal D}{\cvgnonentwo} }
\newcommand{\cvgprob}{\stackrel{\text{prob.}}{\cvg} }
\newcommand{\cvgLsq}{\stackrel{L^2}{\cvg} }


%system
\newcommand{\systL}{\left\{\begin{array}{l}}
\newcommand{\systR}{\end{array}\right.}
\newcommand{\matL}{\left(\begin{matrix}}
\newcommand{\matR}{\end{matrix}\right)}


% footnote in table or legend
\newcounter{noteTabCap} 
\newcommand{\initFmark}{\setcounter{noteTabCap}{0}} %init noteTabCap counter
\newcommand{\fmark}{\footnotemark  \addtocounter{noteTabCap}{1}} %mark footnote
\newcommand{\updateFtext}{\addtocounter{footnote}{-\value{noteTabCap}}} %update footnote counter
\newcommand{\ftext}[1]{\addtocounter{footnote}{1}  \footnotetext{#1}} %set the footnote text



%theorems
\newtheorem*{mydefstar}{Définition}
\newtheorem*{myexstar}{Exemple}
\newtheorem*{mytheostar}{Théorème}
\newtheorem*{mypropstar}{Proposition}


\newtheorem{mydef}{Définition}[section]
\newtheorem{myex}{Exemple}
\newtheorem{mytheo}{Théorème}[section]
\newtheorem{myprop}[mytheo]{Proposition}
\newtheorem{mylem}[mytheo]{Lemme}
\newtheorem{myrk}[mytheo]{Remarque}
\newtheorem{myexo}{Exercice}


\title{Nom du TD }


\author{?}

\begin{document}

\begin{flushleft}
\sigle{Universit\'e Paris Dauphine} \hfill \sigle{Ann\'ee} 2017-2018 \\
\sigle{Niveau} \hfill \\
TD: ?   \hfill  mail \\
Cours: ?   \hfill  mail \\

\HRuleTop\\
TD : blablab lbla blablab lbla\\
\HRuleBottom
\end{flushleft}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\section{Eventuellement une section?}


\begin{Exercise}[number=1]
blablab lbla blablab lbla
\begin{enumerate}
\item Question 1
\item Question 2
\item Question 3
\item Question 4
\end{enumerate}
\end{Exercise}

\begin{Answer}[number=1]
blablab lbla blablab lbla
\begin{enumerate}
\item Reponse 1
\item Reponse 2
\item Reponse 3
\item Reponse 4
\end{enumerate}
\end{Answer}



\begin{Exercise}[number=2]
blablab lbla blablab lbla
\begin{enumerate}
\item Question 1
\item Question 2
\item Question 3
\item Question 4
\end{enumerate}
\end{Exercise}

\begin{Answer}[number=2]
blablab lbla blablab lbla
\begin{enumerate}
\item Reponse 1
\item Reponse 2
\item Reponse 3
\item Reponse 4
\end{enumerate}
\end{Answer}





\begin{Exercise}[number=3]
blablab lbla blablab lbla
\begin{enumerate}
\item Question 1
\item Question 2
\item Question 3
\item Question 4
\end{enumerate}
\end{Exercise}

\begin{Answer}[number=3]
blablab lbla blablab lbla
\begin{enumerate}
\item Reponse 1
\item Reponse 2
\item Reponse 3
\item Reponse 4
\end{enumerate}
\end{Answer}





\end{document}