%%% Ecriture en base b
\newcommand{\base}[2]{\overline{\rm #1}^{\;#2}}

%
% 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 
}