I assume that your pictures are in a pdflatex compatible format.
Make a liste called liste.dat with the name of your files sorted in the right order. For example :ls *jpg | sort > liste.dat
Then compile this file called fichier.tex with pdflatex :
\documentclass[a4apaper]{article}
\usepackage[top=0cm, bottom=0cm, left=0cm, right=0cm]{geometry}
\usepackage{pgfplotstable,tikz,filecontents}
\pgfplotsset{compat=1.9}
\renewcommand{\floatpagefraction}{1}
\begin{document}
\pgfplotstableread{liste.dat}{\Liste}
\pgfplotstablegetrowsof{liste.dat}
\pgfmathsetmacro{\rows}{\pgfplotsretval-1}
\foreach \i in {1,2,...,\rows} {%
\pgfplotstablegetelem{\i}{[index] 0}\of{\Liste}
\let\Name\pgfplotsretval
% If there is a second column with caption for each file
%\pgfplotstablegetelem{\i}{[index] 1}\of{\Liste}
%\let\Caption\pgfplotsretval
\begin{figure}[!p]
\centering
\includegraphics{\Name}
% if there is a caption column
%\caption{\Caption}
\end{figure}
\clearpage
}
\end{document}
then compile this other file called picture.tex with pdflatex :
\documentclass[a4paper]{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[page=-,nup=3x4]{fichier.pdf}
\end{document}
And you should have a file with 12 (3*4) images per page.
If the file.dat contains a second column with the captions for each file or empty, you can have them at the same time.
subfigure. Otherwise, if pictures are sorted by name you can make atikzscript but is not so easy. – marchetto Feb 23 '14 at 08:38subfigureis deprecated; the newersubfigor preferably the newer-stillsubcaptionshould be used instead. – Paul Gessler Feb 23 '14 at 08:44figureenvironment? putting\includegraphicscommands directly into atabularenvironment, or even just in rows of three, spaced out evenly across the page, should be possible. (you'll have to make sure that they are all the same size, or create aminipage` wrapper that enforces this, which can be done with a macro.) only the last page might need some additional attention, since 777 isn't a multiple of 12. – barbara beeton Feb 23 '14 at 13:25