ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: ntg-context@ntg.nl
Subject: Re: lis of figures
Date: Wed, 27 Jun 2007 18:12:52 -0400	[thread overview]
Message-ID: <20070627181252.xep9sje56soo44o8@web.mail.umich.edu> (raw)
In-Reply-To: <d5497e4d0706271235i2f96cb86sa851b342b2c763a8@mail.gmail.com>

Quoting Crt Gorup <crt.gorup@gmail.com>:

> 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
___________________________________________________________________________________


  parent reply	other threads:[~2007-06-27 22:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-27 18:56 Horacio Suarez
2007-06-27 19:35 ` Črt Gorup
2007-06-27 22:05   ` Horacio Suarez
2007-06-27 22:12   ` Aditya Mahajan [this message]
2007-06-27 22:57     ` Horacio Suarez
2007-06-27 23:36       ` Aditya Mahajan
2007-06-28  6:22         ` Wolfgang Schuster
2007-06-28 10:11         ` Hans Hagen
2007-06-28 11:16           ` Wolfgang Schuster
2007-06-28 13:35             ` Aditya Mahajan
2007-06-28  7:28     ` Črt Gorup
2007-06-28  7:50       ` Wolfgang Schuster
2007-06-28 10:04   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070627181252.xep9sje56soo44o8@web.mail.umich.edu \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).