# List of figures problem [closed]

I need to make a list of figures where there is reference to some pictures I've included in my document. I've been using

\addcontentsline{lof}{subsection}{\arabic{slike}.\hspace{5mm}\hyperref[sl:1]{Picture 1.}}


but it's just not working. I must say that my pictures are not included inside a figure environment, I've included them inside a minipage.

What should I do ?

-

## closed as too localized by tohecz, bloodworks, Martin Schröder, Joseph Wright♦Jan 5 '13 at 22:01

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Does this help: \addtocontents{lof}{\arabic{slike}.\hspace{5mm}\hyperref[sl:1]{Picture 1.}} –  mythealias Dec 8 '12 at 23:01
hmm.. no :S I need to do this for homework, I need to duplicate this file: sites.google.com/a/ictlab.com.ba/tptp2012/zadace/zadaca4/… 2nd and 3rd page, and I'm stuck on the "Popis slika" ,that'd be list of figures in english.. I can't create list of figures :S –  Emir Dec 8 '12 at 23:13
Can you please show us in a complete compilable minimal working example (MWE) to show us which document class you use and how you include one figure in your document ... –  Kurt Dec 8 '12 at 23:35
2shared.com/file/Vim_LW2i/V_18_IC_12.html here is a tex file that I've been working on. –  Emir Dec 8 '12 at 23:56

The "tables of floats" lists list floats. Either you use the figure environment or define your own floats, e.g. by using the float package. Exactly how to set up the tables depends on the document class.

-
but I can't use figure environment because I got this for my homework and I need to do it with minipage :S –  Emir Dec 8 '12 at 23:15

You do not need a figure environment to get a figure caption, that is placed in the List of figures. The caption package provides the command \captionof{<float type>}{<caption text>} that lets you place captions outside figure environments, for example

\captionof{figure}{A caption}


\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage[croatian]{babel}
\usepackage{hyperref}
\begin{document}
\listoffigures

\vspace{1cm} % just for this example
\begin{minipage}{\linewidth}
\centering
\includegraphics[width=.3\linewidth]{example-image}
\captionof{figure}{A figure caption, not in the \texttt{figure}-environment.}
\end{minipage}
\end{document}

-