% Cadre noir
\newcommand\framethispage[1][1cm]{
\tikz[overlay,remember picture,line width=1pt]
\draw([xshift=(#1),yshift=(-#1)]current page.north west)rectangle([xshift=(-#1),yshift=(#1)]current page.south east);
}
\newcommand{\cadrenoir}{
\AtBeginShipout{
\ifodd\value{page}
	\framethispage[1.5cm]
	\thispagestyle{empty}
	\clearpage
\fi
}}

% Mise en page
\setlength{\paperwidth}{21cm}
\setlength{\paperheight}{29.7cm}
\setlength{\evensidemargin}{0cm}
\setlength{\oddsidemargin}{0cm}
\setlength{\topmargin}{-2cm}
\setlength{\headheight}{1cm}
\setlength{\textheight}{23.5cm}
\setlength{\textwidth}{16cm}
\hbadness 2000
\setcounter{tocdepth}{2}


% Couleurs et lignes
\definecolor{bleu}{rgb}{0,0,0.4}
\definecolor{rouge}{rgb}{0.2,0,0}
\def\ligne#1{\leaders\hrule height #1\linethickness \hfill}
\newcommand{\sep}{\vspace{-1mm}\begin{center}$\star\star\star\star\star\star\star\star\star\star\star$\end{center}\vspace{-2mm}}
\newcommand{\exofin}{\vspace{0mm}\begin{center} $\star\,\,\,\star$\\ $\star$\end{center}}
\newcommand{\whitecor}{\black}

% Ensembles de nombres
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}

% Raccourcis
\renewcommand{\vec}{\overrightarrow}
\newcommand{\imp}{\Rightarrow}
\newcommand{\ssi}{\Leftrightarrow}
\newcommand{\sssi}{\Longleftrightarrow}
\renewcommand{\bar}{\overline}
\newcommand{\eps}{\varepsilon}
\newcommand{\sans}{\backslash}
\newcommand{\fin}{\hfill$\Box$}
\newcommand{\longto}{\longrightarrow}
\newcommand{\longtoto}[2]{\underset{#1\to #2}{\longrightarrow}}
\newcommand{\longtotog}[2]{\underset{#1\tod #2}{\longrightarrow}}
\newcommand{\longtotod}[2]{\underset{#1\tog #2}{\longrightarrow}}
\newcommand{\ds}{\displaystyle}
\def\euro{\mbox{\raisebox{.25ex}{{\it =}}\hspace{-.5em}{\sf C}}}
\newcommand{\lbracket}{[\![}
\newcommand{\rbracket}{]\!]}
\newcommand{\Python}{{\tt Python }}
\newcommand{\ttt}{\texttt}
\newcommand{\lignesimple}{\begin{tabular}{p{1\linewidth}} $\,$\\ \hline \end{tabular}}
\newcommand{\lignedouble}{\begin{tabular}{p{1\linewidth}} $\,$\\ \hline\hline \end{tabular}}
\newcommand{\ind}{~~~~}
\newcommand{\dl}{d\ell}

% Operateurs
\newcommand{\dlim}{\ds\lim}
\newcommand{\suiterec}[3]{#1\,:\,\left\{\begin{array}{l} #2\\ #3\end{array}\right.}
\newcommand{\fonc}[5]{\begin{array}{rcccc} #1 &:& #2 & \longrightarrow & #3 \\ && #4 &\longmapsto& #5\end{array}}
\newcommand{\dsim}[1]{\underset{#1}{\sim}}
\newcommand{\ps}[2]{\left<#1,#2\right>}
\newcommand{\tog}{\overset{<}{\to}}
\newcommand{\tod}{\overset{>}{\to}}
\renewcommand{\o}[2]{\underset{#1}{=} o\left(#2\right)}
\renewcommand{\O}[2]{\underset{#1}{=} O\left(#2\right)}
\newcommand{\script}[1]{
\begin{tabular}{|>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt \# ...................}l}
#1 \\
\hline
\end{tabular}

\vspace{3mm}
}

\newcommand{\scriptn}[1]{
\begin{tabular}{|>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt }l}
#1 \\
\hline
\end{tabular}

\vspace{3mm}
}

\newcommand{\wscript}[1]{
\begin{tabular}{|>{\columncolor[gray]{0.92}\tt}l}
#1 \\
\hline
\end{tabular}
{\red\Large{\danger}}

\vspace{5mm}
}

\newcommand{\scriptnblignes}[1]{
\begin{tabular}{>{\columncolor[gray]{1}\tt }r|>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt \# ...................}l}
#1 \\
\cline{2-3}
\end{tabular}

\vspace{3mm}
}

\newcommand{\scriptcommente}[1]{
\begin{tabular}{|>{\columncolor[gray]{0.92}\tt }l>{\columncolor[gray]{0.92}\tt \# }l}
#1 \\
\hline
\end{tabular}

\vspace{3mm}
}

\newcommand{\vectroisd}[3]{\left(\begin{array}{c} #1\\#2\\#3\end{array}\right)}
\newcommand{\partielle}[2]{\dfrac{\partial #1}{\partial #2}}
\newcommand{\partielles}[3]{\dfrac{\partial^2 #1}{\partial #2\partial #3}}
\newcommand{\intdb}{\int\!\!\!\!\int}
\newcommand{\inttr}{\int\!\!\!\!\int\!\!\!\!\int}
\newcommand{\intn}{\int\!\!\!\!\!\!\int\!\!\!\cdots\!\!\!\int}
\newcommand{\arc}{\wideparen}
\newcommand{\vB}[3]{\matc{#1\\#2}_{#3}}

% Mots clés
\newcommand{\Id}{\makebox{Id}}
\newcommand{\id}{\makebox{id}}
\newcommand{\Ker}{\text{Ker}}
\newcommand{\Vect}{{\rm Vect}}
\renewcommand{\Im}{\mbox{Im}}
\newcommand{\Card}{\mbox{Card}}
\newcommand{\Tr}{{\rm Tr}}
\renewcommand{\Re}{\mbox{Re}}
\newcommand{\DL}{\mbox{DL}}
\newcommand{\GL}{\mbox{GL}}
\newcommand{\co}{\mbox{co}}
\newcommand{\non}{\mbox{non }}
\newcommand{\et}{\mbox{ et }}
\newcommand{\ou}{\mbox{ ou }}
\newcommand{\sq}{h}
\newcommand{\rg}{\mbox{rg}}
\newcommand{\anneescol}{2022-2023}
\newcommand{\ISA}[1]{ISABTP #1$^\circ$ ann\'ee}
\newcommand{\Spec}{\mbox{Spec}}
\newcommand{\Jac}{\mbox{Jac}}
\renewcommand{\div}{\mbox{div}}
\newcommand{\rot}{\mbox{Rot}}
\newcommand{\w}{\omega}
\newcommand{\Cov}{\mbox{Cov}}
\newcommand{\CheminImagesArticles}{../../Images/}
\newcommand{\Tmax}{T_{\max}}
\newcommand{\qed}{\hfill$\square$}
\newcommand{\matB}{\mbox{mat}}
\newcommand{\VEP}{\mbox{VEP}}
\newcommand{\tr}{\mbox{tr}}
% Renew
\renewcommand{\geq}{\geqslant}
\renewcommand{\leq}{\leqslant}
\renewcommand{\phi}{\varphi}
\renewcommand{\hat}{\widehat}
\renewcommand{\labelitemi}{$\bullet$}

% Environnements
\newtheorem{exercice}{Exercice}
\newenvironment{exo}[1][]
  {\if\relax\detokenize{#1}\relax\begin{exercice}\else 
     \begin{exercice}[#1]\fi\rm}
  {\end{exercice}\vspace{0mm}}
\newtheorem{correction}{Correction Exercice}
\newenvironment{corr}[1][]
  {\if\relax\detokenize{#1}\relax\begin{correction}\else 
     \begin{correction}[#1]\fi\rm}
  {\end{correction}\vspace{5mm}}

\newcommand{\pti}[1]{\mbox{\tiny $#1$}}
\newcommand{\ts}{\textstyle}

\newcommand{\exoc}[3]{
\hypertarget{#1corr}~ 

\begin{exo}#2 \label{#1} 
#3

\end{exo}
\vspace{-4mm}
\hfill\hyperlink{#1}{\whitecor \tiny {\sc (Correction} $\filledmedtriangledown$)}
}

\newcommand{\defis}[3]{
\cadre{#1}{
{\black \bf Définitions #2}\\

#3}}

\newcommand{\defi}[3]{
\cadre{#1}{
{\black \bf Définition #2}\\

#3}}

\newcommand{\correc}[2]{
\noindent
{\small
\hypertarget{#1}~ 

\noindent
{\bf \underline{Correction Exercice~\ref{#1}}~~~\hyperlink{#1corr}{\tiny {\sc (Exercice} $\filledmedtriangleup$)}}
#2}}

% Lettres mathcal
\newcommand{\mA}{\mathcal A}
\newcommand{\mB}{\mathcal B}
\newcommand{\mC}{\mathcal C}
\newcommand{\mD}{\mathcal D}
\newcommand{\mE}{\mathcal E}
\newcommand{\mF}{\mathcal F}
\newcommand{\mG}{\mathcal G}
\newcommand{\mH}{\mathcal H}
\newcommand{\mI}{\mathcal I}
\newcommand{\mJ}{\mathcal J}
\newcommand{\mK}{\mathcal K}
\newcommand{\mL}{\mathcal L}
\newcommand{\mM}{\mathcal M}
\newcommand{\mN}{\mathcal N}
\newcommand{\mO}{\mathcal O}
\newcommand{\mP}{\mathcal P}
\newcommand{\pP}{\mathscr P}
\newcommand{\mQ}{\mathcal Q}
\newcommand{\mR}{\mathcal R}
\newcommand{\mS}{\mathcal S}
\newcommand{\mT}{\mathcal T}
\newcommand{\mU}{\mathcal U}
\newcommand{\mV}{\mathcal V}
\newcommand{\mW}{\mathcal W}
\newcommand{\mX}{\mathcal X}
\newcommand{\mY}{\mathcal Y}
\newcommand{\mZ}{\mathcal Z}

% Matrices
\newcommand{\mat}[2][rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr]{\left(\begin{array}{#1} #2\\ \end{array}\right)}
\newcommand{\matc}[2][ccccccccccccccccccccccccccccccccccccc]{\left(\begin{array}{#1} #2\\ \end{array}\right)}
\newcommand{\dat}[2][ccccccccccccccccccrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr]{\left|\begin{array}{#1} #2\\ \end{array}\right|}
\newcommand{\datc}[2][ccccccccccccccccccccccccccccccccccccccc]{\left|\begin{array}{#1} #2\\ \end{array}\right|}
\newcommand{\syst}[2][lllllllllllllllllllllllllllllllllllll]{\left\{\begin{array}{#1} #2\\ \end{array}\right.}
\newcommand{\systr}[2][rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr]{\left\{\begin{array}{#1} #2\\ \end{array}\right.}
\newcommand{\systb}[2][>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l>{\whitep }l]{{\black\left\{\begin{array}{#1} #2\\ \end{array}\right.}}
\newcommand{\nulmat}{\mathbb O}
\newcommand{\matR}[2]{\left(\begin{array}{rr}#1\\#2 \end{array}\right)_{\mR}}
\newcommand{\matRp}[3]{\left(\begin{array}{rrr}#1\\#2\\ #3 \end{array}\right)_{\mR'}}
\newcommand{\matRep}[4]{\left(\begin{array}{rrr}#1\\#2\\ #3 \end{array}\right)_{#4}}
\newcommand{\mulcol}{\multicolumn}

% Page de garde Article
\newcommand{\PageDeGardeArt}[5]{
\begin{titlepage}
	
\noindent
\includegraphics[width=0.3\linewidth]{/media/mabouzai/TAF_M/data/ISA-BTP/Communs/LogoUPPAcouleurRVB.png}
\hfill
\includegraphics[width=0.25\linewidth]{/media/mabouzai/TAF_M/data/ISA-BTP/Communs/Logo_ISABTP_2015.png}

\vspace*{\stretch{1}}

\begin{center}
\begin{tabular}{cccc}
#5
\end{tabular}
\end{center}

\vspace*{\stretch{1}}

\begin{flushleft}
\large{\bf #1}

\vspace{2mm}

\huge \textsc{#2}
\end{flushleft}
\hrule

\vspace{3mm}

\noindent
\elpr{}{\small Version enseignant}
\hfill
Mourad ABOUZAID

\vspace*{\stretch{2}}

\begin{flushright}\small
\textbf{#3}\\
\textbf{#4}\\

\vspace{3mm}

\elpr{}{{\it \tiny Derni\`ere compilation : \today}}
\end{flushright}

\end{titlepage}
\renewcommand{\labelitemi}{$\bullet$}
}

% Page de garde Book
\newcommand{\PageDeGardeBook}[3]{
\begin{titlepage}

\noindent
\includegraphics[width=0.3\linewidth]{/media/mabouzai/TAF_M/data/ISA-BTP/Communs/LogoUPPAcouleurRVB.png}
\hfill
\includegraphics[width=0.25\linewidth]{/media/mabouzai/TAF_M/data/ISA-BTP/Communs/Logo_ISABTP_2015.png}

\vspace*{\stretch{1}}

\hrule
\begin{center}
\huge{\textsc{#1}}\\
\end{center}
\hrule

\vspace{3mm}

\noindent
\elpr{}{\small Version enseignant}
\hfill
Mourad ABOUZAID

\vspace*{\stretch{2}}

\begin{flushright}\small
\textbf{#2}\\
\textbf{#3}\\

\vspace{3mm}

\elpr{}{{\it \tiny Derni\`ere compilation : \today}}
\end{flushright}


\end{titlepage}
}

\newcommand{\PageDeGardeLPC}[4]{
\begin{titlepage}
	
\noindent
\includegraphics[width=0.3\linewidth]{/media/mabouzai/TAF_M/data/ISA-BTP/Communs/LogoUPPAcouleurRVB.png}
%\hfill
%\includegraphics[width=0.25\linewidth]{/media/mabouzai/TAF_M/data/ISA-BTP/Communs/Logo_ISABTP_2015.png}

\vspace*{\stretch{1}}

\begin{flushleft}
\large{\bf #1}

\vspace{2mm}

\huge \textsc{#2}
\end{flushleft}
\hrule

\vspace{3mm}

\noindent
\elpr{}{\small Version enseignant}
\hfill
Mourad ABOUZAID

\vspace*{\stretch{2}}

\begin{flushright}\small
\textbf{#3}\\
\textbf{#4}\\

\vspace{3mm}

\elpr{}{{\it \tiny Derni\`ere compilation : \today}}
\end{flushright}

\end{titlepage}
\renewcommand{\labelitemi}{$\bullet$}
}


% Bandeau exercices
\newcommand{\bandeau}[5]{
\setlength{\arrayrulewidth}{2pt}
\begin{center}
\begin{tabular}{p{0.05\linewidth}>{\centering\Large\bf }p{0.54\linewidth}p{0.05\linewidth}}
\hline
\tiny~&\tiny~&\tiny~\\
\multicolumn{1}{>{\tiny \it }l}{\begin{tabular}{ll}#2\\#4\end{tabular}} & #1 & \multicolumn{1}{>{\tiny \it }r}{\begin{tabular}{ll}#3\\#5\end{tabular}}\\
~&~&~\\
\hline
\end{tabular}
\end{center}
\setlength{\arrayrulewidth}{0.5pt}
}

% Entete Contrôles
\newcommand{\enteteCC}[4]{
\noindent
{\tiny ISA BTP, #1$^\circ$ ann\'ee} \hfill {\tiny ANN\'EE UNIVERSITAIRE #2}

\vspace{-3mm}

\noindent
\begin{tabular}{p{1\linewidth}} $\,$\\ \hline \end{tabular}

\vspace{-3mm}
    
   \begin{center}
   
   \vspace{4mm}
   
    {\bf CONTR\^OLE CONTINU - MATH\'EMATIQUES}\\

   \vspace{4mm}

#3

\vspace{8mm}

\noindent
\begin{tabular}{lclp{2cm}lcl}
Nom$\quad$&:&..................................&&Prénom$\quad$&:&..................................
\end{tabular}

\end{center}

\vspace{-3mm}

\noindent
\lignedouble

\vspace{4mm}

\noindent
#4

\noindent
\lignedouble

\vspace{4mm}
}


\newcommand{\enteteCCsansnom}[4]{
\noindent
{\tiny ISA BTP, #1$^\circ$ ann\'ee} \hfill {\tiny ANN\'EE UNIVERSITAIRE #2}

\vspace{-3mm}

\noindent
\begin{tabular}{p{1\linewidth}} $\,$\\ \hline \end{tabular}

\vspace{-3mm}
    
   \begin{center}
   
   \vspace{4mm}
   
    {\bf CONTR\^OLE CONTINU - MATH\'EMATIQUES}\\

   \vspace{4mm}

#3

\end{center}

\vspace{-3mm}

\noindent
\lignedouble

\vspace{4mm}

\noindent
#4

\noindent
\lignedouble

\vspace{4mm}
}


\newcommand{\enteteQCM}[2]{
\noindent
\begin{tabular}{p{0.487\linewidth}p{0.487\linewidth}}
%~ & ~\\
{\tiny ISA BTP, #1$^\circ$ année} & \multicolumn{1}{r}{\tiny ANN\'EE UNIVERSITAIRE \anneescol}\\
\hline
\\
\multicolumn{2}{c}{\bf CONTRÔLE DE CONNAISSANCES}\\
\\
\multicolumn{2}{c}{#2. Durée : 5mn}\\
\\
\multicolumn{2}{c}{
\champnom{
\renewcommand{\arraystretch}{2.2}
\begin{tabular}{|lclp{2cm}lcl|}
\hline
\Large Nom$\quad$&:&................................&&\Large Prénom$\quad$&:&................................\\
\hline
\end{tabular}
\renewcommand{\arraystretch}{1}
}}\\
\\
\hline
\end{tabular}

\vspace{2mm}
}

































