1

I orginally had a PDFlatex engine running which included the following custom command:

\newcommand{\allgraphic}[1]{
  \begin{center}
     \pdfximage{#1}%
     \multido{\i=1+1}{\the\pdflastximagepages}{
        \includegraphics[page=\i,width=0.48\textwidth]{#1}
     }
  \end{center} 
}

However, I have now moved from PDFLatex to Lualatex and the above command no longer works. I am aware the issue is related to \pdfximage, however, how do I get the same result as the above command but with LuaLaTex?

0

1 Answer 1

4

\pdfximage is \saveimageresource in luatex and \pdflastximagepages is \lastsavedimageresourcepages or add \usepackage{luatex85} to define all the old names.

1
  • Ah perfect, thank you.
    – root92
    Aug 17, 2021 at 8:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .