Hi Devendra!

···<date: 2013-02-22, Friday>···<from: Devendra Ghate>···

> A slightly more verbose alternative which I have been using is:
> 
> \definehead
> [chapter]
> [section]
> 
> \setuphead
>  [chapter]
>  [section]
>  [style=\ss]
> 
> \setuphead
>  [chapter]
>  [style=\tfb]
> 
> \setuphead
>  [section]
>  [style=\tfx]
> 
> \starttext
>  \chapter{Chapter}
>  \section{Section}
> \stoptext
> 
> Is this not recommended?

With

    \definehead[chapter][section]

you set the structurelevel of \section to that of \chapter,
essentially creating a synonym with a slightly different style.
This is guaranteed to mess up your lists (e.g. toc). To verify
that, execute this snippet:

    \definehead[chapter][section]
    \starttext
    \chapter{foo} \section{bar} \chapter{baz}
    \stoptext

Observe that \section and \chapter now share a counter.

Btw. to avoid confusion better create your own set of macros
(\definehead[myexperimentalsection][section]) instead of
overriding pre-defined functionality.

Hth
Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Attachment: pgpaq2sZ6nzX0.pgp
Description: PGP signature

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

Reply via email to