The documentation says the following:
E.g.:
pages=-
will insert all pages of the document [...]
however, when I put \includepdf[pages=-]{foobar.pdf}
in my LaTeX doc (compiled w/ xelatex
), I get this error:
! Package pdfpages Error: Cannot find file `-'.
Similarly, just using a range like \includepdf[pages={1,3,5-last}]{foobar.pdf}
results in:
<use "foobar.pdf" >
! Missing = inserted for \ifnum.
<to be read again>
-
l.91 ...df[pages={1,3,5-last}]{foobar.pdf}
I'm using the latest pdfpages
downloaded from CTAN.
Any idea where could the problem lie?
edit:
MWE:
\documentclass{article}
\usepackage{pdfpages}
\usepackage[czech]{babel}
\begin{document}
\includepdf[pages={1,3-5}]{foobar.pdf}
\end{document}
\documentclass{...}
and ending with\end{document}
.\includepdf[pages=-]{foobar.pdf}
and\includepdf[pages={1,3-5}]{foobar.pdf}
succeed, but I get failure when I trypages={1,3-last}
.ppxetex.def
\usepackage[czech]{babel}
! But there's hope, don't worry.