![](https://secure.gravatar.com/avatar/a49e13dfb1afded60e10e200ddca6cad.jpg?s=120&d=mm&r=g)
Hello: I have a book with 18 chapter. in one of them, the 16th, I need a local list of figures, I mean figures in that chapter only. But if I type: \completelistoffigures[alternative=c] I only get the head, "Ilustraciones" but empty. And \placelist[figure] Is also empty but without head. IŽve allready made list I need almost by hand, but anyway I want to know how to do it. Thankyou in advance. -------------------- Horacio Suarez Editotrial Antropofagia www.eantropofagia.com.ar
From: Aditya Mahajan
Reply-To: mailing list for ConTeXt users To: ntg-context@ntg.nl Subject: Re: [NTG-context] lis of figures Date: Wed, 27 Jun 2007 18:12:52 -0400 Quoting Crt Gorup
: Hi,
i was playing with table of figures few days ago. My "solution" is probably not the best one, but it works.
\definelist[figs]
\def\addFigure#1#2#3#4%
{
\placefigure[here][fig:#1]{#2}{\externalfigure[#3][scale=#4]}
\writetolist[figs]{fig:#1}{#2}
}
\def\placeTOF%
{
\title{Table of figures}
\placelist[figs][alternative=command,command=\TOFCommand]
}
\def\TOFCommand#1#2#3%
{{\bf Fig. \in[#1] } #2 \dotfill #3\blank[.1cm] }
For each figure you want on list you have to use \addFigure instead of \placefigure. Is there any shorter and better solution?
What is wrong with \placelist[figure]? AFAIU, \placefigure does something equivalent to \writetolist[figure]{}{}. so you should be able to access the list of figures using \placelist[figure].
Does that not work for you? Can you post a minimal example?
Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
_________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/