[NTG-context] Problem interacting \definehead and \placecontent

2010-11-17 Thread Lukas Prochazka
Hello,

I need to duplicate the \subsection command. The code is:

---
\definehead[SSEC][subsection]
\setuphead
  [SSEC]
  [after={ --- }]

\starttext
  \placecontent
  \hairline

  \section{A}
aaa

\SSEC{B}
  bbb

\subsection{C}
  ccc
\stoptext
---

It's OK that use of \subsection and/or \SSEC command increases the subsection 
counter (i.e. I get 1.1 and 1.2).

But there is a problem - the 1.1 B item doesn't appear in the TOC. Why? And 
how to get it in there?

Thank you in advance.

Best regards,

Lukas

t-Head.mkiv
Description: Binary data


t-Head.pdf
Description: Adobe PDF document
___
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
___


Re: [NTG-context] Problem interacting \definehead and \placecontent

2010-11-17 Thread Wolfgang Schuster

Am 17.11.2010 um 12:18 schrieb Lukas Prochazka:

 But there is a problem - the 1.1 B item doesn't appear in the TOC. Why? And 
 how to get it in there?

\title{Content}

\placelist[chapter,section,subsection,SSEC,...]

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
___