I want to be able to select all the frames which contain a common file basename in animategraphics without having to specify which frame to start/ end with.

Something like:

        \captionsetup[subfigure]{labelformat = empty}
                 \animategraphics[label=myAnim,loop,every=100,autoplay,width=\textwidth]{4}{directory/common_filename_image_}{:} % ":" to select all
    \end {figure}
  • Out of the box, this is only possible for multipage PDF files. For numbered files, you will need to build a loop with an incrementing counter (e. g.\multido) and check for existing files (looking for the lowest and highest file numbers existing) by means of \IfFileExists. – AlexG Oct 3 '17 at 17:26
  • Related: Get number of files in folder – AlexG Oct 4 '17 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.