I have a pdf and need to have each second page turned upside down, so that I can print it twosided. I found pdfpages rotate odd pages 180º and changing
\foreach \p in {1,...,\the\pdflastximagepages}{%
\ifnumodd{\p}%
{\includepdf[pages=\p,angle=180]{\jobname-step1}}%
{\includepdf[pages=\p]{\jobname-step1}}%
}
to
\foreach \p in {1,...,\the\pdflastximagepages}{%
\ifnumodd{\p}%
{\includepdf[pages=\p,angle=180]{\jobname-step1}}%
{\includepdf[pages=\p+1]{\jobname-step1}}%
}
(amongst other changes) would do the job I think. But adding the \p+1
gives an error. I tried it with the package calc, but without any luck.
\p+1
) in the first place?