Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Wolfgang Schuster via ntg-context

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

___
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] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Fabrice Couvreur via ntg-context
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
>
> ___
>
___
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] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Wolfgang Schuster via ntg-context

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
___


Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
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
>
> ___
>
___
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] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Pablo Rodriguez via ntg-context
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
___


Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
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 
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
>>
>> ___
>>
>
___
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] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
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
>
> ___
>
___
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] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Pablo Rodriguez via ntg-context
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
___


[NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
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
___
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
___