* \setuphead and \startchapter request @ 2012-03-19 11:45 Alan BRASLAU 2012-03-19 11:50 ` Wolfgang Schuster 0 siblings, 1 reply; 4+ messages in thread From: Alan BRASLAU @ 2012-03-19 11:45 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setuphead and \startchapter request 2012-03-19 11:45 \setuphead and \startchapter request Alan BRASLAU @ 2012-03-19 11:50 ` Wolfgang Schuster 2012-03-19 15:16 ` Alan BRASLAU 0 siblings, 1 reply; 4+ messages in thread From: Wolfgang Schuster @ 2012-03-19 11:50 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setuphead and \startchapter request 2012-03-19 11:50 ` Wolfgang Schuster @ 2012-03-19 15:16 ` Alan BRASLAU 2012-03-19 16:09 ` Wolfgang Schuster 0 siblings, 1 reply; 4+ messages in thread From: Alan BRASLAU @ 2012-03-19 15:16 UTC (permalink / raw) To: ntg-context 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.wolfgang@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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setuphead and \startchapter request 2012-03-19 15:16 ` Alan BRASLAU @ 2012-03-19 16:09 ` Wolfgang Schuster 0 siblings, 0 replies; 4+ messages in thread From: Wolfgang Schuster @ 2012-03-19 16:09 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-19 16:09 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-03-19 11:45 \setuphead and \startchapter request Alan BRASLAU 2012-03-19 11:50 ` Wolfgang Schuster 2012-03-19 15:16 ` Alan BRASLAU 2012-03-19 16:09 ` 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).