[Tex/LaTex] List of figures: source below image caption

captionsfloatstable of contentstocloft

I'm relatively new to LaTeX and currently working on a paper. In my list of figures, I'd like to have a structure like this:

    Fig. 1: <Title of figure> . . . 1
            <source_of_image.jpg>

    Fig. 2: <Title of figure> . . . 2
            <source_.png>

Can anyone think of a way of doing this? Basically, I just need some kind of reference to the actual figure. I'm using the caption package, so the captions of my figures look like this:

    \caption[source of image]{Title of image}

By using the tocloft package, I've already managed to tweak a few things; but I'm yet to find out how I can use both source and title of a figure in the list of figures (apart from creating the whole list manually).

Best Answer

This is basically tocloft's \cftchapterprecis, but in the list of figures instead:

\documentclass{article}
\usepackage{tocloft}

\makeatletter
\newcommand{\figsourcefont}{\footnotesize}
\newcommand{\figsource}[1]{%
  \addtocontents{lof}{%
    {\leftskip\cftfigindent
     \advance\leftskip\cftfignumwidth
     \rightskip\@tocrmarg
     \figsourcefont#1\protect\par}%
  }%
 }
\makeatother

\begin{document}
\listoffigures
\begin{figure}
    \caption{World Targets in Megadeaths}
    \figsource{BLAND Corporation}
\end{figure}
\end{document}

If you use hyperref, you can make the sources into clickable links:

\figsource{\url{file:alameda_afb.tiff}}
Related Question