12

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).

6
  • 2
    Welcome to TeX.SE! A couple of remarks: First, it would be helpful if you provided a bit more information on what you're trying to achieve. It's not common (though certainly not necessarily wrong either!) to provide an image (thumbnail-sized?) of each figure in List of Figures. Second, I've deleted the final line of your question -- in this group, we tend not to thank people in advance. Upvoting (and, if appropriate, accepting) their answers is the reward all of us crave. :-)
    – Mico
    Feb 20, 2012 at 2:23
  • Alright, thanks for your remarks. You actually misunderstood me: I do not want to put the actual source image into the LOF - what I want is to put the source there, e. g. http://de.wikipedia.org/....
    – Daniel
    Feb 20, 2012 at 9:39
  • 1
    Related question: Figure reference management
    – diabonas
    Feb 20, 2012 at 14:03
  • @Mico Do you happen to know if anyone ever did the thumbnail thing? I lack the imagination to know beforehand whether this is a good idea (it's one that brought me here anyway). Might be practical and look cool. Might also be cocky and look cheesy. So if I could have a look at such a LoF before investing any time in making it work, that would be quite nice indeed.
    – Christian
    Nov 15, 2012 at 14:07
  • @Christian -- please consider posting a new question to inquire about this subject. It's not very likely that many people will notice your question if it's posed as a comment to an existing answer. Thanks. If you want, you can always provide a link back to the existing question to provide context.
    – Mico
    Nov 15, 2012 at 14:34

1 Answer 1

14

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}}
1
  • Works just the way I wanted it to :-)
    – Daniel
    Feb 20, 2012 at 9:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .