ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Include a list in a list, for example, a List of Figures in a Table of Content
@ 2011-06-03 17:10 Mathieu DUPONT
  2011-06-03 20:55 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Mathieu DUPONT @ 2011-06-03 17:10 UTC (permalink / raw)
  To: ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 467 bytes --]



Hi,
How can one include a list into another list ?The \definecombinedlist command doesn't work.I tried to find other ways but didn't find anything that worked.
Thanks for help !

\definecombinedlist[TOC][chapter,LOF]\definecombinedlist[LOF][figure]
\setupheadtext[TOC=Table of Content]\setupheadtext[LOF=List of Figures]
\starttext
\completeTOC\completeLOF
\chapter{Chapter}\placefigure{Cow.}{\externalfigure[cow]}
\stoptext 


Mathieu

 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 1166 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Include a list in a list, for example, a List of Figures in a Table of Content
  2011-06-03 17:10 Include a list in a list, for example, a List of Figures in a Table of Content Mathieu DUPONT
@ 2011-06-03 20:55 ` Hans Hagen
  2011-06-05 23:19   ` Mathieu Dupont
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2011-06-03 20:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 3-6-2011 7:10, Mathieu DUPONT wrote:
>
>
> Hi,
> How can one include a list into another list ?The \definecombinedlist command doesn't work.I tried to find other ways but didn't find anything that worked.
> Thanks for help !
>
> \definecombinedlist[TOC][chapter,LOF]\definecombinedlist[LOF][figure]
> \setupheadtext[TOC=Table of Content]\setupheadtext[LOF=List of Figures]
> \starttext
> \completeTOC\completeLOF
> \chapter{Chapter}\placefigure{Cow.}{\externalfigure[cow]}
> \stoptext

What do you expect? Can you give some ascii art example?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Include a list in a list, for example, a List of Figures in a Table of Content
  2011-06-03 20:55 ` Hans Hagen
@ 2011-06-05 23:19   ` Mathieu Dupont
  2011-06-06  5:21     ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Mathieu Dupont @ 2011-06-05 23:19 UTC (permalink / raw)
  To: Hans Hagen, ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 1570 bytes --]



Yes, I would like to obtain :(page 1)Table of ContentList of Figures1 Chapter(page 2)List of Figures1.1 Cow.I could use, instead of \completeLOF, something like :\chapter{List of Figures}\placeLOFbut then I would have to adjust many other things and it becomes very messy.



Mathieu



> Date: Fri, 3 Jun 2011 22:55:28 +0200
> From: pragma@wxs.nl
> To: ntg-context@ntg.nl
> CC: mathieudupont@hotmail.com
> Subject: Re: [NTG-context] Include a list in a list, for example, a List of Figures in a Table of Content
> 
> On 3-6-2011 7:10, Mathieu DUPONT wrote:
> >
> >
> > Hi,
> > How can one include a list into another list ?The \definecombinedlist command doesn't work.I tried to find other ways but didn't find anything that worked.
> > Thanks for help !
> >
> > \definecombinedlist[TOC][chapter,LOF]\definecombinedlist[LOF][figure]
> > \setupheadtext[TOC=Table of Content]\setupheadtext[LOF=List of Figures]
> > \starttext
> > \completeTOC\completeLOF
> > \chapter{Chapter}\placefigure{Cow.}{\externalfigure[cow]}
> > \stoptext
> 
> What do you expect? Can you give some ascii art example?
> 
> Hans
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                               | www.pragma-pod.nl
> -----------------------------------------------------------------
 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 3256 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Include a list in a list, for example, a List of Figures in a Table of Content
  2011-06-05 23:19   ` Mathieu Dupont
@ 2011-06-06  5:21     ` Wolfgang Schuster
  2011-06-06 12:57       ` Mathieu Dupont
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2011-06-06  5:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 750 bytes --]


Am 06.06.2011 um 01:19 schrieb Mathieu Dupont:

> 
> Yes, I would like to obtain :
> 
> (page 1)
> Table of Content
> List of Figures
> 1 Chapter
> 
> (page 2)
> List of Figures
> 1.1 Cow.
> 
> 
> I could use, instead of \completeLOF, something like :
> 
> \chapter{List of Figures}
> \placeLOF
> 
> but then I would have to adjust many other things and it becomes very messy.

You want this?

\setuplist[chapter][after={\placelist[figure]}]

\setuplist[figure][label=figure,width=6em]

\starttext

\completecontent

\chapter{One}

\placefigure{Two}{2}

\section{Three}

\placefigure{Four}{4}

\chapter{Five}

\placefigure{Six}{6}

\section{Seven}

\placefigure{Eight}{8}

\stoptext

Wolfgang



[-- Attachment #1.2: Type: text/html, Size: 3000 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Include a list in a list, for example, a List of Figures in a Table of Content
  2011-06-06  5:21     ` Wolfgang Schuster
@ 2011-06-06 12:57       ` Mathieu Dupont
  2011-06-06 20:30         ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Mathieu Dupont @ 2011-06-06 12:57 UTC (permalink / raw)
  To: ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 1726 bytes --]



No, not at all.I'm sorry, I realize I wasn't clear at all.
What I want is simply the List of Figures to figure in my Table of Content, to be listed in it, just such as a chapter or a section.So my TOC would look like this :
TABLE OF CONTENTList of Figures ......... page 1Chapter 1 ............... page 2Chapter 2 ............... page 3



Mathieu



From: schuster.wolfgang@googlemail.com
Date: Mon, 6 Jun 2011 07:21:16 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Include a list in a list, for example,	a List of Figures in a Table of Content




Am 06.06.2011 um 01:19 schrieb Mathieu Dupont:Yes, I would like to obtain :(page 1)Table of ContentList of Figures1 Chapter(page 2)List of Figures1.1 Cow.I could use, instead of \completeLOF, something like :\chapter{List of Figures}\placeLOFbut then I would have to adjust many other things and it becomes very messy.
You want this?
\setuplist[chapter][after={\placelist[figure]}]
\setuplist[figure][label=figure,width=6em]
\starttext
\completecontent
\chapter{One}
\placefigure{Two}{2}
\section{Three}
\placefigure{Four}{4}
\chapter{Five}
\placefigure{Six}{6}
\section{Seven}
\placefigure{Eight}{8}
\stoptext
Wolfgang


___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________ 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 4279 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Include a list in a list, for example, a List of Figures in a Table of Content
  2011-06-06 12:57       ` Mathieu Dupont
@ 2011-06-06 20:30         ` Wolfgang Schuster
  2011-06-06 21:50           ` Mathieu Dupont
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2011-06-06 20:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 703 bytes --]


Am 06.06.2011 um 14:57 schrieb Mathieu Dupont:

> 
> No, not at all.
> I'm sorry, I realize I wasn't clear at all.
> 
> What I want is simply the List of Figures to figure in my Table of Content, to be listed in it, just such as a chapter or a section.
> So my TOC would look like this :
> 
> TABLE OF CONTENT
> List of Figures ......... page 1
> Chapter 1 ............... page 2
> Chapter 2 ............... page 3

\definehead[topic][chapter]
\setuphead [topic][number=no]

\starttext

\title{Table of Content}

\placelist[chapter,topic,section]

\topic{List of Figures}

\placelist[figure][criterium=all]

\chapter{One}

\placefigure{Two}{2}

\stoptext

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1901 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Include a list in a list, for example, a List of Figures in a Table of Content
  2011-06-06 20:30         ` Wolfgang Schuster
@ 2011-06-06 21:50           ` Mathieu Dupont
  0 siblings, 0 replies; 7+ messages in thread
From: Mathieu Dupont @ 2011-06-06 21:50 UTC (permalink / raw)
  To: ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 1429 bytes --]



Great, thank you !
That works just perfect.


Mathieu



From: schuster.wolfgang@googlemail.com
Date: Mon, 6 Jun 2011 22:30:47 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Include a list in a list, for example,	a List of Figures in a Table of Content




Am 06.06.2011 um 14:57 schrieb Mathieu Dupont:No, not at all.I'm sorry, I realize I wasn't clear at all.
What I want is simply the List of Figures to figure in my Table of Content, to be listed in it, just such as a chapter or a section.So my TOC would look like this :
TABLE OF CONTENTList of Figures ......... page 1Chapter 1 ............... page 2Chapter 2 ............... page 3

\definehead[topic][chapter]\setuphead [topic][number=no]
\starttext
\title{Table of Content}
\placelist[chapter,topic,section]
\topic{List of Figures}
\placelist[figure][criterium=all]
\chapter{One}
\placefigure{Two}{2}
\stoptext
Wolfgang

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________ 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 2895 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-06 21:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-03 17:10 Include a list in a list, for example, a List of Figures in a Table of Content Mathieu DUPONT
2011-06-03 20:55 ` Hans Hagen
2011-06-05 23:19   ` Mathieu Dupont
2011-06-06  5:21     ` Wolfgang Schuster
2011-06-06 12:57       ` Mathieu Dupont
2011-06-06 20:30         ` Wolfgang Schuster
2011-06-06 21:50           ` Mathieu Dupont

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