Re: [NTG-context] No pagebreak before chapter
On 2021-12-23 14:15, juh via ntg-context wrote: Dear all, if I don't want pagebreaks before a chapter, I can do this: \setuphead [chapter,title] [style=\tfb, align=center, number=no, after=, page=no, sectionsegments=chapter, header=empty] In my project this does not work. All chapters start on a new page. What can I do to debug my code? I search for "page=" or "pagebreak" but found no configuration that can cause chapters to insert a pagebreak before. Merry Chrismas to all of you! juh Pagebreak before chapter heading is the default behavior, so you are not likely to find an explicit instance of it being set. Do the other settings in your \setuphead come through (align, style, number? What is the scope of the \setuphead command -- is it restricted to a particular section block (frontpart, bodypart, backpart, appendix)? Is this command overridden by a later \setuphead command within the same scope? -- Rik ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] No pagebreak before chapter
Dear all, if I don't want pagebreaks before a chapter, I can do this: \setuphead [chapter,title] [style=\tfb, align=center, number=no, after=, page=no, sectionsegments=chapter, header=empty] In my project this does not work. All chapters start on a new page. What can I do to debug my code? I search for "page=" or "pagebreak" but found no configuration that can cause chapters to insert a pagebreak before. Merry Chrismas to all of you! juh ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \head inside \itemize
Thanks, Wolfgang, perfectly works! I added an example to the Wiki. > On Dec 21, 2021, at 18:03, Wolfgang Schuster > wrote: > > Benjamin Buchmuller via ntg-context schrieb am 21.12.2021 um 14:04: >> Not sure if this is the behavior to expect, but I would like to get >> formatted inline headers in itemize like: > > The syntax for \starthead is > > \starthead {...} ... \stophead > > where the argument within the braces is mandatory. > >> – Unformatted item. >> – *Head One.* Something bla bla. >> – *Head Two.* Other bla bla. >> >> From: >> >> \setupitemize[each][2, headintext] >> % \setupitemize[each][headstyle={\groupedcommand{\bf}{.\space\tf}}] >> \setupitemize[each][headcolor=red, headstyle=bold] >> >> \startitemize >> \item Unformatted item. >> \head Head One \par Something bla bla. >> \starthead Head Two \stophead Other bla bla. % Even worse: No inline any >> more. >> \stopitemize >> >> However, headstyle= and headcolor= seem to spill all over … Is it a feature >> or a bug? > > No bug, just a user error. When you put the head text in the argument of > \starthead everything works as expected. > > \starttext > > \startitemize[headintext][headstyle=bold] > \startitem Unformatted item. \stopitem > \starthead {Head One.} Something bla bla. \stophead > \starthead {Head Two.} Other bla bla. \stophead > \stopitemize > > \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___