## LaTeX forum ⇒ Conversion Tools ⇒ Multido boucle error while compiling latex code.

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Sparkofgod
Posts: 4
Joined: Tue Dec 12, 2017 1:18 pm

### Multido boucle error while compiling latex code.

Hi everybody,
Sorry for my french,
Could somebody help me to find where the error is with "Missing number, treated as zero " in the code below please???

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

Could somebody help me to find where the error is with "Missing number, treated as zero " in the code above please???
Last edited by Sparkofgod on Tue Dec 12, 2017 5:50 pm, edited 3 times in total.

Johannes_B
Site Moderator
Posts: 3725
Joined: Thu Nov 01, 2012 4:08 pm
Welcome, this an english forum. Please post in english.

Have a look at the very top, there is a link to our french partner site. You are welcome to post your questions there in french.

Crosspost on TeX.SX
Crosspost on TeXnique
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Sparkofgod
Posts: 4
Joined: Tue Dec 12, 2017 1:18 pm
Hi every body,
Can somebody help me to compile this code above please using multido command ?

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

Could somebody help me to find where the error is with "Missing number, treated as zero " in the code below please???

Sparkofgod
Posts: 4
Joined: Tue Dec 12, 2017 1:18 pm
Johannes_B wrote:Welcome, this an english forum. Please post in english.

Have a look at the very top, there is a link to our french partner site. You are welcome to post your questions there in french.

Crosspost on TeX.SX

Where are you ? Nown I have post my subjet in english. Waiting for your help please

Johannes_B
Site Moderator
Posts: 3725
Joined: Thu Nov 01, 2012 4:08 pm
You already got an answer by Herbert. I also cannot reproduce the issue, since the file is missing (obviously).

Herbert asked you to provide the code that produces the error you are reporting. Maybe you have an old version of a package or something.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Sparkofgod
Posts: 4
Joined: Tue Dec 12, 2017 1:18 pm
\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 \newcounter{m}\setcounter{m}{7}\newcounter{n}\setcounter{n}{5} \begin{document} \multido{\i=1+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}

This was all the code...