ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \setuphead and \startchapter request
Date: Mon, 19 Mar 2012 17:09:20 +0100	[thread overview]
Message-ID: <74072644-CEF0-497B-AAB1-2EE7DB2EFAB9@googlemail.com> (raw)
In-Reply-To: <20120319161621.36d03e4d@sole.extra.cea.fr>


Am 19.03.2012 um 16:16 schrieb Alan BRASLAU:

> Wolfgang,
> 
> Thank you for the suggestions.
> However, I have tried many such, things…


Is this what you want?

\setuphead[title][incrementnumber=list]
\setuplist[title][width=2em] % default value for chapter entry

\setuphead[chapter][insidesection=\texsetup{chapter:list}]

\startsetups[chapter:list]

  \doif{\structureuservariable{list}}{yes}{\placelist[section]}

\stopsetups

\setupinteraction[state=start]

\placebookmarks[chapter,title]

\starttext

\startfrontmatter

\starttitle[saveinlist=no,title=Content]

\placelist[chapter,title]

\stoptitle

\stopfrontmatter

\startbodymatter

\starttitle[title=This is a \tex{title}]

\input knuth

\stoptitle

\startchapter[title=This is a \tex{chapter}][list=yes]

\startsection[title=Tufte]

\input tufte

\stopsection

\startsection[title=Ward]

\input ward

\stopsection

\stopchapter

\startchapter[title=This is another \tex{chapter}]

\startsection[title=Knuth]

\input knuth

\stopsection

\startsection[title=Zapf]

\input zapf

\stopsection

\stopchapter

\stopbodymatter

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


      reply	other threads:[~2012-03-19 16:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-19 11:45 Alan BRASLAU
2012-03-19 11:50 ` Wolfgang Schuster
2012-03-19 15:16   ` Alan BRASLAU
2012-03-19 16:09     ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=74072644-CEF0-497B-AAB1-2EE7DB2EFAB9@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).