Hello,
I am a mediocre programmer and beginner to latex.
I would like to take a folder of png or jpeg images and put them into a latex document in a templated way such that they are all aligned and templated in a standard format, with the goal of eventually creating a PDF. I would like to do this with several folders of images repeatedly to display and distribute data, so a script would be helpful.
Can you suggest any resources for this task or does anyone have such a script? I am running ubuntu linux 64 bit.
Thank You,
Matt
General ⇒ Script to Create Latex Document from Folder of Images
-
- Posts: 1
- Joined: Tue Sep 23, 2008 6:31 am
NEW: TikZ book now 40% off at Amazon.com for a short time.

Script to Create Latex Document from Folder of Images
I don't know of any specific packages for that purpose. As a bare bones solution you could write a macro that will be used as a template for a single image:Use a script to generate a file from the directory listing in the format:Finally \input this file into your document.
The scripting part will most likely require only a few lines of code, but unfortunately I don't know Linux well enough to help out you with this.
Cheers,
Tomek
Code: Select all
\newcommand\imagetempl[1]{
% some formating code here
\includegraphics{#1}
% some formating code there}
Code: Select all
\imagetempl{imagefile1}
\imagetempl{imagefile2}
...
\imagetempl{imagefileN}
The scripting part will most likely require only a few lines of code, but unfortunately I don't know Linux well enough to help out you with this.
Cheers,
Tomek