\usepackage{slashbox,cancel}

\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 

\renewcommand{\DirListing}{src/Python/}

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