I wish to insert all pages of myFigures.pdf in a row with:
\foreach \i in {1,...,6} {%
\includegraphics[page=\i]{myFigures.pdf}%
}
How do I make this code adaptive to the actual number of pages in .pdf file, which may be more or less than 6 one day?
I am looking for something like:
% How to retrieve that information?
\def\nbPages{\numberOfPagesIn{myFigures.pdf}}
\foreach \i in {1,...,\nbPages} {%
\includegraphics[page=\i]{myFigures.pdf}%
}
\includepdffrom the pdfpages package to include the whole file – David Carlisle Jan 17 '17 at 13:54\foreach \i in {1,...,\nbPages} {\node<\i> at \myCoords{\i} {\includegraphics[page=\i]{myFigures.pdf}};}. Would\includepdfreally help then? I just need\nbPages. – iago-lito Jan 17 '17 at 14:52