[NTG-context] \setuphead and \startchapter request

2012-03-19 Thread Alan BRASLAU
I would like to use, for example,

\setuphead [chapter] [after={\placecontent\blank}]

But sometimes, I would like to use something like

\startchapter [number=no,incrementnumber=no,after=,
title={Conclusions of the first part}]

\stopchapter


1. I request to have after=, (and other setup head keywords)
taken into account, or some other mechanism, so as here
not to \placecontent for a specific instance of \startchapter.

2. If I have:
\setuplabeltext [chapter=Chapter ] % with trailing space; blank by default
would there be some way to specify chapter=, (or another mechanism)
to have the Chapter label blank for a specific instance of \startchapter?

Thanks

Alan
___
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] \setuphead and \startchapter request

2012-03-19 Thread Wolfgang Schuster

Am 19.03.2012 um 12:45 schrieb Alan BRASLAU:

 I would like to use, for example,
 
 \setuphead [chapter] [after={\placecontent\blank}]
 
 But sometimes, I would like to use something like
 
 \startchapter [number=no,incrementnumber=no,after=,
   title={Conclusions of the first part}]
 
 \stopchapter

You know \starttitle, it’s the unnumbered version of \startchapter.

 1. I request to have after=, (and other setup head keywords)
 taken into account, or some other mechanism, so as here
 not to \placecontent for a specific instance of \startchapter.

We have the following key for \setuphead:

- beforesection (called before \startchapter),
- insidesection (called after \startchapter) and
- aftersection (called after \stopchapter)

 2. If I have:
 \setuplabeltext [chapter=Chapter ] % with trailing space; blank by default
 would there be some way to specify chapter=, (or another mechanism)
 to have the Chapter label blank for a specific instance of \startchapter?

The easiest way is to create a new heading for this purpose.

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
___


Re: [NTG-context] \setuphead and \startchapter request

2012-03-19 Thread Alan BRASLAU
Wolfgang,

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



On Mon, 19 Mar 2012 12:50:14 +0100
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 
 Am 19.03.2012 um 12:45 schrieb Alan BRASLAU:
 
  I would like to use, for example,
  
  \setuphead [chapter] [after={\placecontent\blank}]
  
  But sometimes, I would like to use something like
  
  \startchapter [number=no,incrementnumber=no,after=,
  title={Conclusions of the first part}]
  
  \stopchapter
 
 You know \starttitle, it’s the unnumbered version of \startchapter.

Yes, of course, but \starttitle does not, by design, add an entry
to the TOC, nor a bookmark. And

\starttitle [title={Conclusions}]
\writetolist[chapter]{}{Conclusions}% works
\bookmark{Conclusions}% Does not work!

is less elegant than

\startchapter [number=no,incrementnumber=no,title={Conclusions}]

(but does have the advantage of suppressing the Chapter label.)


 We have the following key for \setuphead:
 
 - beforesection (called before \startchapter),
 - insidesection (called after \startchapter) and
 - aftersection (called after \stopchapter)

You suggest that I use insidesection={\placecontent\blank}
rather than after={\placecontent\blank}. OK, this works.

However, in both cases, the contents get placed after the above
\starttitle (or \startchapter) commands, something that one really does
not want. Alternately, adding \placecontent\blank everywhere else is
sloppy.


  2. If I have:
  \setuplabeltext [chapter=Chapter ] % with trailing space; blank by
  default would there be some way to specify chapter=, (or another
  mechanism) to have the Chapter label blank for a specific instance
  of \startchapter?
 
 The easiest way is to create a new heading for this purpose.

I do not really want to create new headings for this purpose,
if I can avoid it, and should be unnecessary.
The suggestion would be for specific instances of \startchapter etc.
to be able to take \setuphead keywords as local definitions.

Alan
___
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] \setuphead and \startchapter request

2012-03-19 Thread Wolfgang Schuster

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
___