有人能帮我找出下面代码中“缺少数字,视为零”的错误在哪里吗?
\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}
答案1
用于multido
所有计数器:
\documentclass[a4paper]{article} \usepackage[final]{pdfpages}
\usepackage{multido} % m nombre de page par étudiant(ici 7 pages par étudiant)
% n nombre total d'étudiant
% p = n*m nombre total de page du document
% m=7
\begin{document}
\multido{\iM=7+7,\im=5+7,\iN=6+7}{5}{%
\includepdf[pages={1-\im},
nup=1x2,landscape,signature=36]{DOC-sujet.pdf}
\includepdf[pages={\iN-\iM},
nup=1x2,landscape,signature=4]{DOC-sujet.pdf}
}
\end{document}