% 352 pages

\documentclass[utf8,crop,realfonts]{prepamath}
\graphicspath{{../091574158_IMAGES/}}
\title{IL1M}
\author{Anne Crouzier\\Danièle Eynard\\Stéphane Pasquet}

%\input{src/00-Preambule}
\usepackage{slashbox}

\usepackage{qrcode}
%%% Patch de \qrcode pour gérer les caractères actifs du français
\let\qrcodeORI\qrcode
\renewcommand\qrcode[1]{%
  \begingroup
    \catcode`\:=12
    \catcode`\;=12
    \catcode`\?=12
    \catcode`\!=12
    \catcode`\~=12
    \scantokens{\qrcodeORI{#1}}%
  \endgroup
}
%%% Fin du patch 

%%%% Commandes mathématiques complémentaires

\newcommand{\disp}%
        {\pspolygon[fillstyle=solid,fillcolor=black](0,0)(0.1,0)(0.1,0.1)}
\newcommand{\calcsqrt}%
        {\psline(0,0.1)(0.12,0)(0.12,0.28)(0.22,0.28)\hspace{0.05cm}}

\makeatletter
\renewcommand\lim{\displaystyle\mathop{\operator@font lim}}
\makeatother

\newcommand{\arc}[1]{\ensuremath{\widearc{#1}}}
\let\frac\dfrac 
\let\emptyset\varnothing
\let\leq\leqslant
\let\geq\geqslant
\let\simeq\approx
%
\let\oldforall\forall
\renewcommand{\forall}{\oldforall\mathpunct{}}
%
\let\oldin\in 
\renewcommand{\in}{\oldin\mathpunct{}}
%
% NathanLive
%
\newcounter{NLVid}
\setcounter{NLVid}{0}

\newcommand{\nathanLive}[1]{%
\stepcounter{NLVid}
\label{NLVid-\theNLVid}
\begin{tabular}{@{}l@{~\,}l}
\includegraphics[width=5mm]{0_pictoVideo}
&
\raisebox{1mm}{\textbf{\textit{#1}}}\hspace{0.5ex} \includegraphics[width=5mm]{0_NathanLive}
\end{tabular}}
%%%%%%
%%%%%% Vidéo
%%%%%%
\newcommand{\nathanliveVidWithoutText}{%
\stepcounter{NLVid}
\label{NLVid-\theNLVid}
\includegraphics[width=5mm]{0_NathanLive}}
%
\newcommand{\nathanliveVideo}{%
\stepcounter{NLVid}
\label{NLVid-\theNLVid}
\begin{tabular}{@{}l@{~\,}l}
\includegraphics[width=5mm]{0_pictoVideo}
&
\raisebox{1mm}{\textbf{\textit{Retrouvez le corrigé de cet exercice en vidéo avec}}}\hspace{0.5ex} \includegraphics[width=5mm]{0_NathanLive}
\end{tabular}
\Par
}
%%%%%%%%%
%%%%%%%%% Web
%%%%%%%%%
\newcounter{NLWeb}
\setcounter{NLWeb}{0}
\newcommand{\nathanliveWebWithoutText}{%
\stepcounter{NLWeb}
\label{NLWeb-\theNLWeb}
\includegraphics[width=5mm]{0_NathanLive}}
%
\newcommand{\nathanliveWeb}[1]{%
\stepcounter{NLWeb}
\label{NLWeb-\theNLWeb}
\begin{tabular}{@{}l@{~\,}l}
\includegraphics[width=6mm]{0_pictoWeb}
&
\raisebox{2mm}{\textbf{\textit{Retrouvez le site de #1 avec}}}\hspace{0.5ex} \raisebox{0.5mm}{\includegraphics[width=5mm]{0_NathanLive}}
\end{tabular}
\Par
}
%%%%%%%%%%%%
%%%%%%%%% Audio
%%%%%%%%
\newcounter{NLAudio}
\setcounter{NLAudio}{0}
\newcommand{\nathanliveAudio}{%
\stepcounter{NLAudio}
\label{NLAudio-\theNLAudio}
\begin{tabular}{@{}l@{~\,}l}
\includegraphics[width=5mm]{0_pictoAudio}
&
\raisebox{1mm}{\textbf{\textit{Retrouvez le son dont il est question dans cet exercice avec}}}\hspace{0.5ex} \includegraphics[width=5mm]{0_NathanLive}
\end{tabular}
\Par 
}
%%%%%%
%%%%%%%%%%%% Prog
%%%%%%
\newcounter{NLProg}
\setcounter{NLProg}{0}
\newcommand{\nathanliveProgWithoutText}{%
\stepcounter{NLProg}
\label{NLProg-\theNLProg}
\includegraphics[width=5mm]{0_NathanLive}}

\newcommand{\nathanliveProg}{%
\stepcounter{NLProg}
\label{NLProg-\theNLProg}
\begin{tabular}{@{}l@{~\,}l}
\includegraphics[width=6mm]{0_pictoProg}
&
\raisebox{1mm}{\textbf{\textit{Retrouvez ce programme en ligne avec}}}\hspace{0.5ex} \includegraphics[width=5mm]{0_NathanLive}
\end{tabular}
\Par
}
%
\renewcommand{\DirListing}{src/codes/}
\lstset{tabsize=2}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\printNL}{%
\begin{center}
\large\textbf{Liste des pages où figure un renvoi Nathan Live}
\end{center}



\ifnum\theNLVid>0
\sectionnn{Liste des vidéos}
\begin{multicols}{3}
\multido{\i=1+1}{\theNLVid}{%
Page \pageref{NLVid-\i}\\
}
\end{multicols}
\fi 

\ifnum\theNLProg>0
\sectionnn{Liste des Programmes}
\begin{multicols}{3}
\multido{\i=1+1}{\theNLProg}{%
Page \pageref{NLProg-\i}\\
}
\end{multicols}
\fi 

\ifnum\theNLAudio>0
\sectionnn{Liste des fichiers audio}
\begin{multicols}{3}
\multido{\i=1+1}{\theNLAudio}{%
Page \pageref{NLAudio-\i}\\
}
\end{multicols}
\fi 

\ifnum\theNLWeb>0
\sectionnn{Liste des renvois Web}
\begin{multicols}{3}
\multido{\i=1+1}{\theNLWeb}{%
Page \pageref{NLWeb-\i}\\
}
\end{multicols}
\fi 
}
%
%
\newcommand{\PictoVideo}{}
\renewcommand{\DirListing}{src/Python/}

\begin{document}

\frontmatter

\input{src/00-Remerciements}
\input{src/00-Avant-propos} 

\tableofcontents 

\input{src/00-Methode-de-travail}

\mainmatter
\DecimalMathComma 

\input{src/01-Cours}\input{src/01-Enonces} % Le second degré 
\input{src/02-Cours}\input{src/02-Enonces} % Dérivation 
\input{src/03-Cours}\input{src/03-Enonces} % Suites numériques 
\input{src/04-Cours}\input{src/04-Enonces} % Fonction exponentielle 
\input{src/05-Cours}\input{src/05-Enonces} % Fonctions trigonométriques
\input{src/06-Cours}\input{src/06-Enonces} % Produit scalaire 
\input{src/07-Cours}\input{src/07-Enonces} % Probabilités conditionnelles 
\addtocontents{toc}{\protect\newpage}
\input{src/08-Cours}\input{src/08-Enonces} % Variables aléatoires 
\input{src/09-Index}
%\addtocontents{toc}{
%\protect\enlargethispage*{3cm}\protect\vspace*{0.5cm}
%\protect\includegraphics[width=\protect\linewidth]{005_NathanLiveIllus}\protect\Par\protect\begin{center}Pour télécharger les programmes contenus dans cet ouvrage :\protect\par\protect\texttt{http://www.prepamath.fr/IL1M}\protect\end{center}
%}
\newpage~\par\thispagestyle{empty}
\newpage~\par\thispagestyle{empty}
\newpage~\par\thispagestyle{empty}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\printNL
\end{document}
