[NTG-context] Unnumbered TOC

2007-07-24 Thread John R. Culleton
Sections have numbers, subjects etc. don't. What I want is a series of 
subdividisions (subject, subsubject etc. without visible numbers 
which nevertheless show up in a chapter table of contents, again 
without numbers, just page numbers. 

I tried defining a combined list foo thus:
\definelist[subject][alternative=a]
\definelist[subsubject][alternative=a]
\definelist[subsubsubject][alternative=a]
\definecombinedlist[foo]
[subject,subsubject,subsubsubject]
[level=subsubsubject,criterium=local]


but when I state 
\placelist[foo]
...nothing appears.

Should I start all over, replace subjects with sections etc. and then 
try to suppress the numbering in both places?

There is of course an easy answer that I am missing.  :(

-- 
John Culleton


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


Re: [NTG-context] Unnumbered TOC

2007-07-24 Thread luigi scarso
On 7/24/07, John R. Culleton [EMAIL PROTECTED] wrote:
 Sections have numbers, subjects etc. don't. What I want is a series of
 subdividisions (subject, subsubject etc. without visible numbers
 which nevertheless show up in a chapter table of contents, again
 without numbers, just page numbers.

 I tried defining a combined list foo thus:
 \definelist[subject][alternative=a]
 \definelist[subsubject][alternative=a]
 \definelist[subsubsubject][alternative=a]
 \definecombinedlist[foo]
 [subject,subsubject,subsubsubject]
 [level=subsubsubject,criterium=local]


 but when I state
 \placelist[foo]
 ...nothing appears.

 Should I start all over, replace subjects with sections etc. and then
 try to suppress the numbering in both places?

 There is of course an easy answer that I am missing.  :(
maybe this can help you ?
(untested)

\def\SectionListCommand#1#2#3{#1  ... #2 ... #3}%
\setuplist[section]
  [alternative=none,
   before={\blank[0pt]},
   after={\blank[0pt]},
   sectionnumber=no, partnumber=no,
   command={\SectionListCommand}]
\def\SectionHeadCommand#1#2#3{#1  ::: #2 ::: #3}%
\setuphead[section]
  [command={\SectionHeadCommand}]



-- 
luigi

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