My listings style is defined i the preamble as this :
Code: Select all
\usepackage{listings}\renewcommand\lstlistingname{Code \textsl{Mathematica}}\renewcommand*{\lstlistlistingname}{Table des codes de \textsl{Mathematica}}
Code: Select all
\appendix %\pagestyle{appendices}\renewcommand\thesection{A.\arabic{section}}\input{Appendices}
Code: Select all
\newpage\setlength{\cftfignumwidth}{3.5cm}\renewcommand{\cftfigpresnum}{\figurename\ }\renewcommand{\cftfigaftersnum}{~:}\pagestyle{figures}\lstlistoflistings % The list of listings\listoffigures % The list of figures
I would prefer to define the listing's number as a simple number from 1 to the last one in the whole book, without any reference to the chapter or the section. How can I do that ?