ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unnumbered chapters (titles) etc in TOC
@ 2011-11-29 11:20 Marcin Borkowski
  2011-11-29 11:34 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Borkowski @ 2011-11-29 11:20 UTC (permalink / raw)
  To: ConTeXt mailing list

Hi,

I tried this:

\definecombinedlist[content][chapter,title,subject,section]
\setuphead[title,subject][incrementnumber=list]

\starttext
\placecontent

\title{Unnumbered chapter}
\subject{First}
\subject{Second}

\chapter{Numbered chapter}
\section{Third}
\section{Fourth}

\stoptext

and I have a few questions.

1. If I replace \definecombinedlist with \setupcombinedlist (which seems
natural, given that "content" is already defined), it stops working;
why?

2. The \setuphead line seem to be necessary; why?

3. And the worst: indenting of \titles and \subjects is the same (and of
\subsubjects also, if I add them).  How to change this?

Regards,

-- 
Marcin Borkowski
http://mbork.pl

___________________________________________________________________________________
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] 2+ messages in thread

* Re: Unnumbered chapters (titles) etc in TOC
  2011-11-29 11:20 Unnumbered chapters (titles) etc in TOC Marcin Borkowski
@ 2011-11-29 11:34 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-11-29 11:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 29.11.2011 um 12:20 schrieb Marcin Borkowski:

> Hi,
> 
> I tried this:
> 
> \definecombinedlist[content][chapter,title,subject,section]
> \setuphead[title,subject][incrementnumber=list]
> 
> \starttext
> \placecontent
> 
> \title{Unnumbered chapter}
> \subject{First}
> \subject{Second}
> 
> \chapter{Numbered chapter}
> \section{Third}
> \section{Fourth}
> 
> \stoptext
> 
> and I have a few questions.
> 
> 1. If I replace \definecombinedlist with \setupcombinedlist (which seems
> natural, given that "content" is already defined), it stops working;
> why?

\setupcombinedlist does two things:

1. It passes the argument to \setuplist for each heading in the list,
2. It is used to set certain options for the given list

> 2. The \setuphead line seem to be necessary; why?

Old option from MkII where this was needed. because combinedlist was a little bit different.

> 3. And the worst: indenting of \titles and \subjects is the same (and of
> \subsubjects also, if I add them).  How to change this?

\title, \subject etc. use the default values for the “width” key while \chapter etc.
have explicit settings, you can change this with

  \setuplist[<heading>][width=<dimension>]

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
___________________________________________________________________________________


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

end of thread, other threads:[~2011-11-29 11:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-29 11:20 Unnumbered chapters (titles) etc in TOC Marcin Borkowski
2011-11-29 11:34 ` Wolfgang Schuster

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