LaTeX forum ⇒ Graphics, Figures & TablesPrint all Images of a Directory

Information and discussion about graphics, figures & tables in LaTeX documents.
newbiebcn
Posts: 1
Joined: Wed Sep 04, 2013 5:01 pm

Print all Images of a Directory

Postby newbiebcn » Wed Sep 04, 2013 5:32 pm

Hi all,

Sorry if the question seems basic, but I have little (and less) experience in LaTeX and I've been struggling to find a simple solution to my problem, and I failed. I want to use PDFLaTeX to print some tables and images into a PDF file.

For each project that want to use it for, I have a directory with JPG files, say "figure_2345.jpg", "figure_8564.jpg" etc. but the number of files vary and there can be many, so I'd rather automate it.

How can I tell \includegraphics to print all the files found with a ".jpg" extension within that directory? Is there a simple way to do this? Something like \includegraphics{*.jpg} (which obviously doesn't work)

Thanks a lot!

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1990
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Sat Sep 07, 2013 10:22 am

Hi newbiebcn,

Welcome to the LaTeX community!

I think the question How to iterate through the name of files in a folder over on TeX.sx might be of interest for you.

Regards
site moderator & package author


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 9 guests