ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \definehead \setuphead new type included in a list such as TOC
@ 2011-05-26 16:15 Mathieu DUPONT
  2011-05-26 16:52 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu DUPONT @ 2011-05-26 16:15 UTC (permalink / raw)
  To: ConTeXt


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



Hi,
In the following example, I define 2 new heads, and I want them to :
1- inherits from Title (or Chapter would be fine)2- show in the TOC3- not be counted (CHAPTER should be 1)
Is there an option I can put into \setuphead[Abstract][] so it gets included in the TOC ?That would be the easiest way of getting the three desired results.
Thanks !

\definehead[Abstract][title]\setuphead[Abstract][]\definehead[Intro][title]\setuphead[Intro][]
\starttext
\startfrontmatter\placecontent\Abstract{ABSTRACT}\stopfrontmatter
\startbodymatter\Intro{INTRODUCTION}\chapter{CHAPTER}\stopbodymatter
\stoptext 

Mathieu

 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 1399 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] 3+ messages in thread

* Re: \definehead \setuphead new type included in a list such as TOC
  2011-05-26 16:15 \definehead \setuphead new type included in a list such as TOC Mathieu DUPONT
@ 2011-05-26 16:52 ` Wolfgang Schuster
  2011-05-27 14:08   ` Mathieu DUPONT
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-05-26 16:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 26.05.2011 um 18:15 schrieb Mathieu DUPONT:

> 
> Hi,
> 
> In the following example, I define 2 new heads, and I want them to :
> 
> 1- inherits from Title (or Chapter would be fine)
> 2- show in the TOC
> 3- not be counted (CHAPTER should be 1)
> 
> Is there an option I can put into \setuphead[Abstract][] so it gets included in the TOC ?
> That would be the easiest way of getting the three desired results.

Your own headings aren’t shown in the TOC because you use \completecontent
which lists only the default numbered headings (\part, \chapter etc.)

There are different solution:

1. Replace \completecontent with the following

  \title{Contents}
  \placelist[part,chapter,Abstract,Intro, section,...]

2. Redefine \completecontent (it’s explained in the big manual):

  \definecombinedlist[content][part,chapter,Abstract,Intro, section,...]

3. Create your own combinedlist:

  \definecombinedlist[mycontent][part,chapter,Abstract,Intro, section,...]

  \setupheadtext[mycontent=Contents]

  \starttext

  \completemycontent

  \stoptext

Wolfgang



[-- Attachment #1.2: Type: text/html, Size: 2468 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] 3+ messages in thread

* Re: \definehead \setuphead new type included in a list such as TOC
  2011-05-26 16:52 ` Wolfgang Schuster
@ 2011-05-27 14:08   ` Mathieu DUPONT
  0 siblings, 0 replies; 3+ messages in thread
From: Mathieu DUPONT @ 2011-05-27 14:08 UTC (permalink / raw)
  To: ConTeXt


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



That was very useful.
Thanks again Wolfgang !



Mathieu



From: schuster.wolfgang@googlemail.com
Date: Thu, 26 May 2011 18:52:48 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] \definehead \setuphead new type included in a	list such as TOC




Am 26.05.2011 um 18:15 schrieb Mathieu DUPONT:Hi,
In the following example, I define 2 new heads, and I want them to :
1- inherits from Title (or Chapter would be fine)2- show in the TOC3- not be counted (CHAPTER should be 1)
Is there an option I can put into \setuphead[Abstract][] so it gets included in the TOC ?That would be the easiest way of getting the three desired results.
Your own headings aren’t shown in the TOC because you use \completecontentwhich lists only the default numbered headings (\part, \chapter etc.)
There are different solution:
1. Replace \completecontent with the following
  \title{Contents}  \placelist[part,chapter,Abstract,Intro, section,...]
2. Redefine \completecontent (it’s explained in the big manual):
  \definecombinedlist[content][part,chapter,Abstract,Intro, section,...]
3. Create your own combinedlist:
  \definecombinedlist[mycontent][part,chapter,Abstract,Intro, section,...]
  \setupheadtext[mycontent=Contents]
  \starttext
  \completemycontent
  \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: 3442 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] 3+ messages in thread

end of thread, other threads:[~2011-05-27 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26 16:15 \definehead \setuphead new type included in a list such as TOC Mathieu DUPONT
2011-05-26 16:52 ` Wolfgang Schuster
2011-05-27 14:08   ` 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).