## 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???

1. \documentclass[a4paper]{article}
2. \usepackage[final]{pdfpages}
3. \usepackage{multido}
4.
5. % m page's number for each student (ici 7 pages by student)
6. % n total number of student
7. % p = n*m total number for all student equal to n*m
8.
9. \newcounter{m}
10. \setcounter{m}{7}
11. \newcounter{n}
12. \setcounter{n}{5}
13.
14. \begin{document}
15.
16. \multido{\i=0+1}{n}{
17.
18. \includepdf[pages={1-(m-2)},nup=1x2,landscape,signature=36]{DOC-sujet.pdf}
19. \includepdf[pages={(m-1)- m},nup=1x2,landscape,signature=4]{DOC-sujet.pdf}
21. }
22. \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: 3933
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 ?

1. \documentclass[a4paper]{article}
2. \usepackage[final]{pdfpages}
3. \usepackage{multido}
4.
5. % m page's number for each student (ici 7 pages by student)
6. % n total number of student
7. % p = n*m total number for all student equal to n*m
8.
9.
10. \newcounter{m}
11. \setcounter{m}{7}
12. \newcounter{n}
13. \setcounter{n}{5}
14.
15. \begin{document}
16.
17. \multido{\i=0+1}{n}{
18.
19. \includepdf[pages={1-(m-2)},nup=1x2,landscape,signature=36]{DOC-sujet.pdf}
20. \includepdf[pages={(m-1)- m},nup=1x2,landscape,signature=4]{DOC-sujet.pdf}
22. }
23. \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: 3933
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
1. \documentclass[a4paper]{article}
2. \usepackage[final]{pdfpages}
3. \usepackage{multido}
4.
5. % m nombre de page par étudiant(ici 7 pages par étudiant)
6. % n nombre total d'étudiant
7. % p = n*m nombre total de page du document
8. % m=7
9.
10. \newcounter{m}
11. \setcounter{m}{7}
12. \newcounter{n}
13. \setcounter{n}{5}
14.
15. \begin{document}
16.
17. \multido{\i=1+1}{n}{ %
18.
19. \includepdf[pages={1-(m-2)},nup=1x2,landscape,signature=36]{DOC-sujet.pdf}
20. \includepdf[pages={(m-1)- m},nup=1x2,landscape,signature=4]{DOC-sujet.pdf}