I am trying to merge two PDFs into one, alternating the pages. Unfortunately, there is no option in pdfpages that would handle this, so I am using \includepdfmerge and specify the pages to add manually:
\documentclass{article}
\usepackage[final]{pdfpages}
\begin{document}
\includepdfmerge[nup=2x5,noautoscale=true,offset=-1.0mm 1mm,delta=1cm 0in]{A.pdf,1,B.pdf,1,A.pdf,2,B.pdf,2,A.pdf,3,B.pdf,3,A.pdf,4,B.pdf,4,}
\end{document}
Of course I'd like to make this easier, so I thought I'd create a \textstring that I then insert:
\documentclass{article}
\usepackage[final]{pdfpages}
\usepackage{ifthen}
\begin{document}
\newcommand{\textstring}{A.pdf,1,}
\includepdfmerge[nup=2x5,noautoscale=true,offset=-1.0mm 1mm,delta=1cm 0in]{\textstring}
\end{document}
However, this doesn't work, I am getting
Package pdfpages Error: Cannot find file `A.pdf,1,'
So is this not possible? Am I missing something obvious?