\documentclass[a4paper]{article} \usepackage[final]{pdfpages} \usepackage{multido} % m page's number for each student (ici 7 pages by student) % n total number of student % p = n*m total number for all student equal to n*m \newcounter{m} \setcounter{m}{7} \newcounter{n} \setcounter{n}{5} \begin{document} \multido{\i=0+1}{n}{ \includepdf[pages={1-(m-2)},nup=1x2,landscape,signature=36]{DOC-sujet.pdf} \includepdf[pages={(m-1)- m},nup=1x2,landscape,signature=4]{DOC-sujet.pdf} \addtocounter{m}{7} } \end{document}