* How not to display the header of the chapter page on the page with the table of contents ? @ 2021-08-15 10:49 Fabrice Couvreur via ntg-context 2021-08-15 14:19 ` Pablo Rodriguez via ntg-context 0 siblings, 1 reply; 9+ messages in thread From: Fabrice Couvreur via ntg-context @ 2021-08-15 10:49 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 226 bytes --] Hello, Wolfgang created a heading https://mailman.ntg.nl/pipermail/ntg-context/2021/102870.html for the chapters of my book. How can I prevent this header from appearing on the page with the table of contents ? Thanks Fabrice [-- Attachment #1.2: Type: text/html, Size: 1306 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How not to display the header of the chapter page on the page with the table of contents ? 2021-08-15 10:49 How not to display the header of the chapter page on the page with the table of contents ? Fabrice Couvreur via ntg-context @ 2021-08-15 14:19 ` Pablo Rodriguez via ntg-context 2021-08-15 15:01 ` Fabrice Couvreur via ntg-context 0 siblings, 1 reply; 9+ messages in thread From: Pablo Rodriguez via ntg-context @ 2021-08-15 14:19 UTC (permalink / raw) To: Fabrice Couvreur via ntg-context; +Cc: Pablo Rodriguez On 8/15/21 12:49 PM, Fabrice Couvreur via ntg-context wrote: > Hello, > Wolfgang created a > heading https://mailman.ntg.nl/pipermail/ntg-context/2021/102870.html > for the chapters of my book. > How can I prevent this header from appearing on the page with the table > of contents ? Hi Fabrice, a simple way would be: \startsectionblockenvironment[bodypart] \setuphead [chapter] [align=flushright, textcommand=\groupedcommand{\blank[medium]}{}, numbercolor=darkgray, textstyle=ChapterTextStyle, numberstyle=ChapterNumberStyle, before=\startChapterFrame, after=\stopChapterFrame, header=high] \stopsectionblockenvironment Then use frontmatter and bodymatter. Just in case it might help, Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How not to display the header of the chapter page on the page with the table of contents ? 2021-08-15 14:19 ` Pablo Rodriguez via ntg-context @ 2021-08-15 15:01 ` Fabrice Couvreur via ntg-context 2021-08-15 16:02 ` Fabrice Couvreur via ntg-context 0 siblings, 1 reply; 9+ messages in thread From: Fabrice Couvreur via ntg-context @ 2021-08-15 15:01 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 1563 bytes --] Hi Pablo, Thanks, it works. Fabrice Le dim. 15 août 2021 à 16:20, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit : > On 8/15/21 12:49 PM, Fabrice Couvreur via ntg-context wrote: > > Hello, > > Wolfgang created a > > heading https://mailman.ntg.nl/pipermail/ntg-context/2021/102870.html > > for the chapters of my book. > > How can I prevent this header from appearing on the page with the table > > of contents ? > > Hi Fabrice, > > a simple way would be: > > \startsectionblockenvironment[bodypart] > \setuphead > [chapter] > [align=flushright, > textcommand=\groupedcommand{\blank[medium]}{}, > numbercolor=darkgray, > textstyle=ChapterTextStyle, > numberstyle=ChapterNumberStyle, > before=\startChapterFrame, > after=\stopChapterFrame, > header=high] > \stopsectionblockenvironment > > Then use frontmatter and bodymatter. > > Just in case it might help, > > Pablo > -- > http://www.ousia.tk > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 3253 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How not to display the header of the chapter page on the page with the table of contents ? 2021-08-15 15:01 ` Fabrice Couvreur via ntg-context @ 2021-08-15 16:02 ` Fabrice Couvreur via ntg-context 2021-08-15 16:33 ` Pablo Rodriguez via ntg-context 0 siblings, 1 reply; 9+ messages in thread From: Fabrice Couvreur via ntg-context @ 2021-08-15 16:02 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 1844 bytes --] A small note : this method works if I compile the project but if I compile only one chapter, the header no longer appears. Le dim. 15 août 2021 à 17:01, Fabrice Couvreur <fabrice1.couvreur@gmail.com> a écrit : > Hi Pablo, > Thanks, it works. > Fabrice > > Le dim. 15 août 2021 à 16:20, Pablo Rodriguez via ntg-context < > ntg-context@ntg.nl> a écrit : > >> On 8/15/21 12:49 PM, Fabrice Couvreur via ntg-context wrote: >> > Hello, >> > Wolfgang created a >> > heading https://mailman.ntg.nl/pipermail/ntg-context/2021/102870.html >> > for the chapters of my book. >> > How can I prevent this header from appearing on the page with the table >> > of contents ? >> >> Hi Fabrice, >> >> a simple way would be: >> >> \startsectionblockenvironment[bodypart] >> \setuphead >> [chapter] >> [align=flushright, >> textcommand=\groupedcommand{\blank[medium]}{}, >> numbercolor=darkgray, >> textstyle=ChapterTextStyle, >> numberstyle=ChapterNumberStyle, >> before=\startChapterFrame, >> after=\stopChapterFrame, >> header=high] >> \stopsectionblockenvironment >> >> Then use frontmatter and bodymatter. >> >> Just in case it might help, >> >> Pablo >> -- >> http://www.ousia.tk >> >> ___________________________________________________________________________________ >> 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 >> >> ___________________________________________________________________________________ >> > [-- Attachment #1.2: Type: text/html, Size: 3733 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How not to display the header of the chapter page on the page with the table of contents ? 2021-08-15 16:02 ` Fabrice Couvreur via ntg-context @ 2021-08-15 16:33 ` Pablo Rodriguez via ntg-context 2021-08-15 16:45 ` Fabrice Couvreur via ntg-context 2021-08-15 17:03 ` Wolfgang Schuster via ntg-context 0 siblings, 2 replies; 9+ messages in thread From: Pablo Rodriguez via ntg-context @ 2021-08-15 16:33 UTC (permalink / raw) To: Fabrice Couvreur via ntg-context; +Cc: Pablo Rodriguez On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote: > A small note : this method works if I compile the project but if I > compile only one chapter, the header no longer appears. Hi Fabrice, I have never used projects and chapters (or whatever the right name is). I’m not sure I get what you’re experiencing: with a single chapter, do you have the fancy layout or not? It would make sense that the fancy chapter doesn’t appear only compiling a chapter. I guess there is no \startbodymatter...\stopbodymatter wrapping it. Another approach would be: \setuphead [chapter] [align=flushright, textcommand=\groupedcommand{\blank[medium]}{}, numbercolor=darkgray, textstyle=ChapterTextStyle, numberstyle=ChapterNumberStyle, before=\startChapterFrame, after=\stopChapterFrame, header=high] \setuphead [title] [header=empty, align=, textcommand=, textstyle=, style=\tfc, before={\blank[2*big]}, after={\blank[2*big]}] I hope it helps, Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How not to display the header of the chapter page on the page with the table of contents ? 2021-08-15 16:33 ` Pablo Rodriguez via ntg-context @ 2021-08-15 16:45 ` Fabrice Couvreur via ntg-context 2021-08-15 17:03 ` Wolfgang Schuster via ntg-context 1 sibling, 0 replies; 9+ messages in thread From: Fabrice Couvreur via ntg-context @ 2021-08-15 16:45 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 1862 bytes --] Hi Pablo, The second solution works as I want it to Thanks Fabrice Le dim. 15 août 2021 à 18:33, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit : > On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote: > > A small note : this method works if I compile the project but if I > > compile only one chapter, the header no longer appears. > > Hi Fabrice, > > I have never used projects and chapters (or whatever the right name is). > > I’m not sure I get what you’re experiencing: with a single chapter, do > you have the fancy layout or not? > > It would make sense that the fancy chapter doesn’t appear only compiling > a chapter. I guess there is no \startbodymatter...\stopbodymatter > wrapping it. > > Another approach would be: > > \setuphead > [chapter] > [align=flushright, > textcommand=\groupedcommand{\blank[medium]}{}, > numbercolor=darkgray, > textstyle=ChapterTextStyle, > numberstyle=ChapterNumberStyle, > before=\startChapterFrame, > after=\stopChapterFrame, > header=high] > > \setuphead > [title] > [header=empty, > align=, > textcommand=, > textstyle=, > style=\tfc, > before={\blank[2*big]}, > after={\blank[2*big]}] > > I hope it helps, > > Pablo > > -- > http://www.ousia.tk > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 3514 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How not to display the header of the chapter page on the page with the table of contents ? 2021-08-15 16:33 ` Pablo Rodriguez via ntg-context 2021-08-15 16:45 ` Fabrice Couvreur via ntg-context @ 2021-08-15 17:03 ` Wolfgang Schuster via ntg-context 2021-08-16 10:18 ` Fabrice Couvreur via ntg-context 1 sibling, 1 reply; 9+ messages in thread From: Wolfgang Schuster via ntg-context @ 2021-08-15 17:03 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster, Pablo Rodriguez Pablo Rodriguez via ntg-context schrieb am 15.08.2021 um 18:33: > On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote: >> A small note : this method works if I compile the project but if I >> compile only one chapter, the header no longer appears. > Hi Fabrice, > > I have never used projects and chapters (or whatever the right name is). > > I’m not sure I get what you’re experiencing: with a single chapter, do > you have the fancy layout or not? > > It would make sense that the fancy chapter doesn’t appear only compiling > a chapter. I guess there is no \startbodymatter...\stopbodymatter > wrapping it. > > Another approach would be: > > [...] Setting values for \title is a way to avoid the chapter setup for the table of contents etc. but there is a way to set values which are used only when you process a component file. To make it work one has to load the environment file after \startcomponent because you can use the *component mode to check whether the parent file is a product or a component. %%%% begin product \startproduct [*] \environment [...] \startfrontmatter ... \stopfrontmatter \startbodymatter \component [...] \stopbodymatter \stopproduct %%%% end product %%%% begin component \startcomponent [*] \environment [...] ... \stopcomponent %%%% end component %%%% begin environment \startenvironment [*] \startsetups [section:chapter] \setuphead [chapter] [...] \stopsetups \startsectionblockenvironment [bodypart] \directsetup{section:chapter} \stopsectionblockenvironment \doifmode{*component}{\directsetup{section:chapter}} \stopenvironment %%%% end environment 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How not to display the header of the chapter page on the page with the table of contents ? 2021-08-15 17:03 ` Wolfgang Schuster via ntg-context @ 2021-08-16 10:18 ` Fabrice Couvreur via ntg-context 2021-08-16 16:17 ` Wolfgang Schuster via ntg-context 0 siblings, 1 reply; 9+ messages in thread From: Fabrice Couvreur via ntg-context @ 2021-08-16 10:18 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 3772 bytes --] Hi Wolfgang, Pablo's solution works, but I tried yours without success. Here are the main lines of my project %%%% begin product \startproduct[terminale-manual] \project[terminale-environment] \startdocument \startfrontmatter ... \stopfrontmatter \startbodymatter \component[terminale_recurrence] ... \stopbodymatter \stopdocument \stopproduct %%%% end product %%%% begin project \startproject[terminale-environment] \environment[terminale-style] ... \stopproject %%%% end project %%%% begin component \project[terminale-environment] \startcomponent[terminale_recurrence] ... \endcomponent %%%% end component %%%% begin environment \startenvironment[terminale-style] ... \startsetups [section:chapter] \setuphead [chapter] [align=flushright, textcommand=\groupedcommand{\blank[medium]}{}, numbercolor=darkgray, textstyle=ChapterTextStyle, numberstyle=ChapterNumberStyle, before=\startChapterFrame, after=\stopChapterFrame, header=high] \stopsetups \startsectionblockenvironment [bodypart] \directsetup{section:chapter} \stopsectionblockenvironment \doifmode{*component}{\directsetup{section:chapter}} ... \endenvironment %%%% end environment Le dim. 15 août 2021 à 19:03, Wolfgang Schuster via ntg-context < ntg-context@ntg.nl> a écrit : > Pablo Rodriguez via ntg-context schrieb am 15.08.2021 um 18:33: > > On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote: > >> A small note : this method works if I compile the project but if I > >> compile only one chapter, the header no longer appears. > > Hi Fabrice, > > > > I have never used projects and chapters (or whatever the right name is). > > > > I’m not sure I get what you’re experiencing: with a single chapter, do > > you have the fancy layout or not? > > > > It would make sense that the fancy chapter doesn’t appear only compiling > > a chapter. I guess there is no \startbodymatter...\stopbodymatter > > wrapping it. > > > > Another approach would be: > > > > [...] > > Setting values for \title is a way to avoid the chapter setup for the > table of contents etc. > but there is a way to set values which are used only when you process a > component file. > > To make it work one has to load the environment file after > \startcomponent because you > can use the *component mode to check whether the parent file is a > product or a component. > > %%%% begin product > \startproduct [*] > > \environment [...] > > \startfrontmatter > ... > \stopfrontmatter > > \startbodymatter > \component [...] > \stopbodymatter > > \stopproduct > %%%% end product > > %%%% begin component > \startcomponent [*] > > \environment [...] > > ... > > \stopcomponent > %%%% end component > > %%%% begin environment > \startenvironment [*] > > \startsetups [section:chapter] > > \setuphead > [chapter] > [...] > > \stopsetups > > \startsectionblockenvironment [bodypart] > \directsetup{section:chapter} > \stopsectionblockenvironment > > \doifmode{*component}{\directsetup{section:chapter}} > > \stopenvironment > %%%% end environment > > 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 > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 9745 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How not to display the header of the chapter page on the page with the table of contents ? 2021-08-16 10:18 ` Fabrice Couvreur via ntg-context @ 2021-08-16 16:17 ` Wolfgang Schuster via ntg-context 0 siblings, 0 replies; 9+ messages in thread From: Wolfgang Schuster via ntg-context @ 2021-08-16 16:17 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster [-- Attachment #1.1: Type: text/plain, Size: 710 bytes --] Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 12:18: > Hi Wolfgang, > Pablo's solution works, but I tried yours without success. Here are > the main lines of my project > > %%%% begin project > \startproject[terminale-environment] > > \environment[terminale-style] > ... > \stopproject > %%%% end project Do you need a project file? > %%%% begin component > \project[terminale-environment] > > \startcomponent[terminale_recurrence] > ... > \endcomponent > %%%% end component You ignored the order for \startcomponent and \project. The environment (or project) file has to be loaded *after* \startcomponent, otherwise the *component mode is set after the style is already loaded. Wolfgang [-- Attachment #1.2: Type: text/html, Size: 3442 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2021-08-16 16:17 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-08-15 10:49 How not to display the header of the chapter page on the page with the table of contents ? Fabrice Couvreur via ntg-context 2021-08-15 14:19 ` Pablo Rodriguez via ntg-context 2021-08-15 15:01 ` Fabrice Couvreur via ntg-context 2021-08-15 16:02 ` Fabrice Couvreur via ntg-context 2021-08-15 16:33 ` Pablo Rodriguez via ntg-context 2021-08-15 16:45 ` Fabrice Couvreur via ntg-context 2021-08-15 17:03 ` Wolfgang Schuster via ntg-context 2021-08-16 10:18 ` Fabrice Couvreur via ntg-context 2021-08-16 16:17 ` Wolfgang Schuster via ntg-context
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).