NAME

Image::Index::LaTeX - Create an image index document using LaTeX

SYNOPSIS

use Image::Index::LaTeX;
my $generator = Image::Index::LaTeX->new("./mydir/");
print $generator->tex(flavour => 'ConTeXt');

DESCRIPTION

Image::Index::LaTeX generates a TeX document that shows thumbnails of a set of given images (or directories) to create a printable image index.

new( Directory-or-Filename, ... )

This constructs an instance of Image::Index::LaTeX and returns it. It takes as parameters one or more directory or filenames. The directories are scanned for images and added to the list of images to create an index of. The files are added to that list as well (if they are images).

This module currently allows only image types that are compatible with pdflatex, namely JPG, PNG, PDF and EPS.

tex( flavour => Flavourname )

This creates a TeX document string from the list of images in a given flavour. The document string is returned.

These flavours exist:

flavour => "LaTeX" (Default)

This creates a LaTeX document string.

flavour => "ConTeXt"

This creates a ConTeXt document string.

EXPORT

None by default.

SEE ALSO

none.

AUTHOR

Tom Kirchner, <tom@tomkirchner.com>

COPYRIGHT AND LICENSE

Copyright (C) 2011 by Tom Kirchner

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.9 or, at your option, any later version of Perl 5 you may have available.