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}. – Feb 28 '15 at 10:57\includepdf[pages=-]{foobar.pdf}and\includepdf[pages={1,3-5}]{foobar.pdf}succeed, but I get failure when I trypages={1,3-last}. – egreg Feb 28 '15 at 11:03ppxetex.def– karlkoeller Feb 28 '15 at 11:04\listfilesto a minimal example such as touhami's and show the result you find in the terminal or in the log file after “File List”? – egreg Feb 28 '15 at 11:15\usepackage[czech]{babel}! But there's hope, don't worry. – egreg Feb 28 '15 at 11:16babel? edit: You are right, though! That's strange. – Tomáš M. Feb 28 '15 at 11:17