Re: [NTG-context] Strange behavior with \startbodymatter ... \stopbodymatter

2021-12-28 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 28.12.2021 um 15:34:

Hi,
In my file cours_premiere.tex if I indicate

 \startbodymatter
      \component[probabilites.tex]
 \stopbodymatter

I get the following error message

tex error     > tex error on line 49 in file ./cours_premiere.tex: 
Undefined control sequence \pgfmath@settrigformat



  \pgfmath@settrigformat
    \pgfmath@settrigformat \pgfmath@settrigformat

        \stopbodymatter

39                [criterium=all,
40                interaction=all,
41                 alternative=c]
42
43 \stoptitle
44
45         \stopfrontmatter
46
47         \startbodymatter
48 \component[probabilites.tex]
49 >>      \stopbodymatter
50
51
52     \stopproduct
The control sequence at the end of the top line of your error message 
was never
\def'ed. You can just continue as I'll forget about whatever was 
undefined.

mtx-context     | fatal error: return code: 1

TeX Output exited abnormally with code 1 at Tue Dec 28 15:31:31


On the other hand, if I indicate

\component[probabilites.tex]

 the file compiles without error.


The error is about tikz/pgf and the mentioned command comes from 
pgfplots. To investigate further you have to create a minimal (non) 
working example.


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
___


[NTG-context] Strange behavior with \startbodymatter ... \stopbodymatter

2021-12-28 Thread Fabrice Couvreur via ntg-context
Hi,
In my file cours_premiere.tex if I indicate

 \startbodymatter
\component[probabilites.tex]
 \stopbodymatter

I get the following error message

tex error   > tex error on line 49 in file ./cours_premiere.tex:
Undefined control sequence \pgfmath@settrigformat


\pgfmath@settrigformat
\pgfmath@settrigformat \pgfmath@settrigformat

\stopbodymatter

39[criterium=all,
40interaction=all,
41 alternative=c]
42
43   \stoptitle
44
45 \stopfrontmatter
46
47     \startbodymatter
48 \component[probabilites.tex]
49 >>  \stopbodymatter
50
51
52 \stopproduct
The control sequence at the end of the top line of your error message was
never
\def'ed. You can just continue as I'll forget about whatever was undefined.
mtx-context | fatal error: return code: 1

TeX Output exited abnormally with code 1 at Tue Dec 28 15:31:31


On the other hand, if I indicate

\component[probabilites.tex]

 the file compiles without error.
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
___


Re: [NTG-context] \startbodymatter forcing new page in document

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

Taco Hoekwater via ntg-context schrieb am 15.11.2021 um 15:28:

On 15 Nov 2021, at 15:07, A A via ntg-context  wrote:

Dear All,

The following code generates a title and some fake text:

\setuppagenumbering[location=right]

\usemodule[visual]

\usebtxdataset[bibliography.bib]
\starttext
\title{test}
\fakewords{1000}{1200}

\stoptext

The following code does the same, but wraps the fakewords in a bodymatter 
environment:

\setuppagenumbering[location=right]

\usemodule[visual]

\usebtxdataset[bibliography.bib]
\starttext
\title{test}
\startbodymatter
\fakewords{1000}{1200}
\stopbodymatter

\stoptext


In the first case, the title remains on the same page as the fake text. In the 
second case, a new page is forced after the title. Why does this occur?

\startbodymatter starts a sectionblock (the “bodypart” block, to be exact) and
by default these blocks all switch to a ‘right’ page. Add this in your preamble 
to
get rid of the page switch:

\setupsectionblock[bodypart][page=no]


The better solution in my opinion is to put the title *in* the sectionblock.

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] \startbodymatter forcing new page in document

2021-11-15 Thread Taco Hoekwater via ntg-context


> On 15 Nov 2021, at 15:07, A A via ntg-context  wrote:
> 
> Dear All,
> 
> The following code generates a title and some fake text:
> 
> \setuppagenumbering[location=right]
> 
> \usemodule[visual]
> 
> \usebtxdataset[bibliography.bib]
> \starttext
> \title{test}
> \fakewords{1000}{1200}
> 
> \stoptext
> 
> The following code does the same, but wraps the fakewords in a bodymatter 
> environment:
> 
> \setuppagenumbering[location=right]
> 
> \usemodule[visual]
> 
> \usebtxdataset[bibliography.bib]
> \starttext
> \title{test}
> \startbodymatter
> \fakewords{1000}{1200}
> \stopbodymatter
> 
> \stoptext
> 
> 
> In the first case, the title remains on the same page as the fake text. In 
> the second case, a new page is forced after the title. Why does this occur? 

\startbodymatter starts a sectionblock (the “bodypart” block, to be exact) and
by default these blocks all switch to a ‘right’ page. Add this in your preamble 
to
get rid of the page switch:

\setupsectionblock[bodypart][page=no]



> 
> Regards,
> 
> Amine
> 
> ___
> 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
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] \startbodymatter forcing new page in document

2021-11-15 Thread A A via ntg-context
Dear All,

The following code generates a title and some fake text:










*\setuppagenumbering[location=right]\usemodule[visual]\usebtxdataset[bibliography.bib]\starttext\title{test}\fakewords{1000}{1200}\stoptext*

The following code does the same, but wraps the fakewords in a *bodymatter *
environment:







*\setuppagenumbering[location=right]\usemodule[visual]\usebtxdataset[bibliography.bib]\starttext\title{test}*


*\startbodymatter\fakewords{1000}{1200}\stopbodymatter*

*\stoptext*


In the first case, the title remains on the same page as the fake text. In
the second case, a new page is forced after the title. Why does this occur?

Regards,

Amine
___
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] Section heading colors lost with \startbodymatter

2015-07-28 Thread Hans Hagen

On 7/28/2015 5:45 AM, Rik Kabel wrote:

> Actually, some color can come through, as in the following example. The

\setupmarginrules color remains even in bodymatter mode (the \setupbar
color does not).


It was a side effect of the fix for pablos bookmarks (deep down some 
argument got messed up in the lua-tex interface) ... fixed in beta.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Section heading colors lost with \startbodymatter

2015-07-27 Thread Rik Kabel

On 2015-07-27 22:50, Rik Kabel wrote:

On 2015-07-27 19:28, Rik Kabel wrote:
This worked (the numbers were darkgray and there was a red dot 
separator) until the last beta or two. With the new betas, those 
colors disappear in the bodymatter mode and in appendices mode


% When start/stop bodymatter is enabled, the number color and
%   separator colors are lost. When they are disabled, all is
%   as expected
%
\defineseparatorset[reddot][][{\color[red]{·}}]
\setuphead[chapter][sectionseparatorset=reddot,numbercolor=darkgray]
\setuphead[section][sectionseparatorset=reddot,numbercolor=darkgray]
\starttext
% \startbodymatter % enable and lose colors
\startchapter[title={Chapter}]
  \startsection[title={Section}]
  \stopsection
\stopchapter
% \stopbodymatter  % enable and lose colors
\stoptext


--
Rik

Duh! All color is gone, not just section heads. New MWE:

\starttext
  %\startbodymatter % enable and lose colors
Some text \color[red]{and some red text}.
  %\stopbodymatter  % enable and lose colors
\stoptext


Actually, some color can come through, as in the following example. The 
\setupmarginrules color remains even in bodymatter mode (the \setupbar 
color does not).


   \setupmarginrules[rulethickness=1pt]
   \setupmarginrules[1][rulecolor=red]
   \setupbar[overstrike][color=red]
   \define[1]\RR {\startmarginrule[1]\RRR#1\stopmarginrule}
   \definehighlight [RRR][style={\setbar[overstrike]}]
   \starttext
   % \startbodymatter % enable and lose colors
Some text \color[red]{and some red text}.\par

   Here is some text that shows all color is not gone.
  \RR{Here is some text that shows all color is not gone.
   Here is some text that shows all color is not gone.}
   Here is some text that shows all color is not gone.\par

   % \stopbodymatter  % enable and lose colors
   \stoptext

--
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Section heading colors lost with \startbodymatter

2015-07-27 Thread Rik Kabel

On 2015-07-27 19:28, Rik Kabel wrote:
This worked (the numbers were darkgray and there was a red dot 
separator) until the last beta or two. With the new betas, those 
colors disappear in the bodymatter mode and in appendices mode


% When start/stop bodymatter is enabled, the number color and
%   separator colors are lost. When they are disabled, all is
%   as expected
%
\defineseparatorset[reddot][][{\color[red]{·}}]
\setuphead[chapter][sectionseparatorset=reddot,numbercolor=darkgray]
\setuphead[section][sectionseparatorset=reddot,numbercolor=darkgray]
\starttext
% \startbodymatter % enable and lose colors
\startchapter[title={Chapter}]
  \startsection[title={Section}]
  \stopsection
\stopchapter
% \stopbodymatter  % enable and lose colors
\stoptext


--
Rik

Duh! All color is gone, not just section heads. New MWE:

   \starttext
  %\startbodymatter % enable and lose colors
Some text \color[red]{and some red text}.
  %\stopbodymatter  % enable and lose colors
   \stoptext

--
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Section heading colors lost with \startbodymatter

2015-07-27 Thread Rik Kabel
This worked (the numbers were darkgray and there was a red dot 
separator) until the last beta or two. With the new betas, those colors 
disappear in the bodymatter mode and in appendices mode


   % When start/stop bodymatter is enabled, the number color and
   %   separator colors are lost. When they are disabled, all is
   %   as expected
   %
   \defineseparatorset[reddot][][{\color[red]{·}}]
   \setuphead[chapter][sectionseparatorset=reddot,numbercolor=darkgray]
   \setuphead[section][sectionseparatorset=reddot,numbercolor=darkgray]
   \starttext
   % \startbodymatter % enable and lose colors
\startchapter[title={Chapter}]
  \startsection[title={Section}]
  \stopsection
\stopchapter
   % \stopbodymatter  % enable and lose colors
   \stoptext


--
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] startbodymatter question

2008-07-24 Thread Alan Stone
Simple and effective.

Thanks.
Alan

P.S. It's (again) in the manual. 
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-24 Thread Wolfgang Schuster
On Wed, Jul 23, 2008 at 5:37 PM, Alan Stone
<[EMAIL PROTECTED]> wrote:
>> You need
>>
>> \setupsectionblock[bodypart][page=yes]
>> \setupsectionblock[backpart][page=yes,before={\page[left]}]
>
> I tried that Wolfgang.
>
> However I'd like the pages setup like in my last example with, in a double
> sided document, the back page on the [(next even page) + 2]. So, refering to
> the output of the last example: page 10 being a blank page without page
> number and, as is, the back page on page 10 + 2 = page 12.

No problem

\setupsectionblock[bodypart][page=yes]
\setupsectionblock[backpart][page=yes,before={\page[yes,empty,left]}]

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Wolfgang Schuster
On Wed, Jul 23, 2008 at 7:24 PM, John Devereux
<[EMAIL PROTECTED]> wrote:
> "Wolfgang Schuster" <[EMAIL PROTECTED]> writes:
>
>> On Wed, Jul 23, 2008 at 5:19 PM, John Devereux
>> <[EMAIL PROTECTED]> wrote:
>
> [...]
>
>>>
>>> I have been struggling with some similar issues (in MkII). I was
>>> getting an extra page at the end of a document which came and went for
>>> reasons that were unclear to me. And then there was the issue (bug?)
>>> about "getting to the back page of a booklet" which you helped me with
>>> before.(It's towards the end of
>>> )
>>>
>>> Was this actually a bug?
>>
>> The extra page at the end of a document in MkII in is related to marks
>> and there is no perfect solution for this.
>>
>> If the effect with \page[quadruple] to go the last page in booklet is
>> wanted or not could be only answered by Hans.
>>
>>> While your solution seemed to work well originally, it seems to be
>>> fragile now when used in a more complicated document. It seems to work
>>> OK when I don't use a sectionblock for the back cover, so perhaps it
>>> is related.
>>
>> This should be the same problem as in Alans example, \page[quadruple]
>> moves you to the last page in document but \stopbackmatter or
>> \stopappendices insert a additonal page at the end but you can get rid of
>> this with \setupsectionblock[appendix|backmatter][page=yes|no].
>
> This does not seem to make a difference. If I enclose the two back
> cover pages in \startbackmatter...\stopbackmatter then a spurious
> extra blank page is generated after the "back cover".

Did this happen also with MkIV or only in MkII?

> I tried all combinations of
>
>   \setupsectionblock[backmatter|backpart][page=no|yes]
>
> ("backpart" in the \setup corresponds to "backmatter" in the text,
> yes? Another thing that was confusing me!)

My fault, I meant 'backpart' but I need a example to help you.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-23 Thread John Devereux
"Wolfgang Schuster" <[EMAIL PROTECTED]> writes:

> On Wed, Jul 23, 2008 at 5:19 PM, John Devereux
> <[EMAIL PROTECTED]> wrote:

[...]

>>
>> I have been struggling with some similar issues (in MkII). I was
>> getting an extra page at the end of a document which came and went for
>> reasons that were unclear to me. And then there was the issue (bug?)
>> about "getting to the back page of a booklet" which you helped me with
>> before.(It's towards the end of
>> )
>>
>> Was this actually a bug?
>
> The extra page at the end of a document in MkII in is related to marks
> and there is no perfect solution for this.
>
> If the effect with \page[quadruple] to go the last page in booklet is
> wanted or not could be only answered by Hans.
>
>> While your solution seemed to work well originally, it seems to be
>> fragile now when used in a more complicated document. It seems to work
>> OK when I don't use a sectionblock for the back cover, so perhaps it
>> is related.
>
> This should be the same problem as in Alans example, \page[quadruple]
> moves you to the last page in document but \stopbackmatter or
> \stopappendices insert a additonal page at the end but you can get rid of
> this with \setupsectionblock[appendix|backmatter][page=yes|no].

This does not seem to make a difference. If I enclose the two back
cover pages in \startbackmatter...\stopbackmatter then a spurious
extra blank page is generated after the "back cover".

I tried all combinations of

   \setupsectionblock[backmatter|backpart][page=no|yes]

("backpart" in the \setup corresponds to "backmatter" in the text,
yes? Another thing that was confusing me!)


-- 

John Devereux
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Alan Stone
Stated otherwise...

If, in a double sided document, the last chapter/appendix/whatever's last
page

= an even page (p) -> back page = on page (p) + 2

= an odd page (p)  -> back page =  on page (p) + 3

with

whatever pages = non to the main part of the document related pages -> makup
pages ?

Alan


On Wed, Jul 23, 2008 at 5:37 PM, Alan Stone <[EMAIL PROTECTED]>
wrote:

> You need
>>
>> \setupsectionblock[bodypart][page=yes]
>> \setupsectionblock[backpart][page=yes,before={\page[left]}]
>
>
> I tried that Wolfgang.
>
> However I'd like the pages setup like in my last example with, in a double
> sided document, the back page on the [(next even page) + 2]. So, refering to
> the output of the last example: page 10 being a blank page without page
> number and, as is, the back page on page 10 + 2 = page 12.
>
> 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Alan Stone
>
> You need
>
> \setupsectionblock[bodypart][page=yes]
> \setupsectionblock[backpart][page=yes,before={\page[left]}]


I tried that Wolfgang.

However I'd like the pages setup like in my last example with, in a double
sided document, the back page on the [(next even page) + 2]. So, refering to
the output of the last example: page 10 being a blank page without page
number and, as is, the back page on page 10 + 2 = page 12.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Wolfgang Schuster
On Wed, Jul 23, 2008 at 5:19 PM, John Devereux
<[EMAIL PROTECTED]> wrote:
> "Wolfgang Schuster" <[EMAIL PROTECTED]> writes:
>
>> On Wed, Jul 23, 2008 at 3:33 PM, Alan Stone
>> <[EMAIL PROTECTED]> wrote:
 \setupsectionblock[bodypart][page=yes]
 \setupsectionblock[backpart][page=yes]

 or for the backpart

 \setupsectionblock[backpart][page=yes,before={\page[left]}]
>>>
>>> Thanks Wolfgang.
>>>
>>> I've been playing with different bodypart and backpart setupsectionblock
>>> settings: number=yes/no, page=yes/no/right,
>>> before/after={\page[left/right]}]
>>>
>>> From what I observed and understand (from the manual and
>>> http://texshow.contextgarden.net/command/detail/296 )...
>>>
>>> number=yes/no : doesn't have any effect at all
>>
>> Removes the number from \chapter etc.
>>
>>> page=yes : starts (a section block on) a new (left or right) page
>>> page=no : doesn't have any effect at all
>>
>> Continues the next sectionblock on the same page as the lest block ends.
>>
>>> page=right: starts (a section block on) a (new) right page
>>>
>>> before/after : before/after starting the new page
>>>
>>> \page[left/right] : forces a left/right page
>>>
>>> The following
>>>
>>> \setupsectionblock[backpart][before={\page[left]}]
>>>
>>> gives more what I was looking after, however there's still
>>> a blank numbered page as the last chapter's last page
>>> which I've unsuccessfully been trying to get without page
>>> number.
>>
>> But only in MkII, if you have a problem with this in MkIV make a example.
>
> I have been struggling with some similar issues (in MkII). I was
> getting an extra page at the end of a document which came and went for
> reasons that were unclear to me. And then there was the issue (bug?)
> about "getting to the back page of a booklet" which you helped me with
> before.(It's towards the end of
> )
>
> Was this actually a bug?

The extra page at the end of a document in MkII in is related to marks
and there is no perfect solution for this.

If the effect with \page[quadruple] to go the last page in booklet is
wanted or not could be only answered by Hans.

> While your solution seemed to work well originally, it seems to be
> fragile now when used in a more complicated document. It seems to work
> OK when I don't use a sectionblock for the back cover, so perhaps it
> is related.

This should be the same problem as in Alans example, \page[quadruple]
moves you to the last page in document but \stopbackmatter or
\stopappendices insert a additonal page at the end but you can get rid of
this with \setupsectionblock[appendix|backmatter][page=yes|no].

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-23 Thread John Devereux
"Wolfgang Schuster" <[EMAIL PROTECTED]> writes:

> On Wed, Jul 23, 2008 at 3:33 PM, Alan Stone
> <[EMAIL PROTECTED]> wrote:
>>> \setupsectionblock[bodypart][page=yes]
>>> \setupsectionblock[backpart][page=yes]
>>>
>>> or for the backpart
>>>
>>> \setupsectionblock[backpart][page=yes,before={\page[left]}]
>>
>> Thanks Wolfgang.
>>
>> I've been playing with different bodypart and backpart setupsectionblock
>> settings: number=yes/no, page=yes/no/right,
>> before/after={\page[left/right]}]
>>
>> From what I observed and understand (from the manual and
>> http://texshow.contextgarden.net/command/detail/296 )...
>>
>> number=yes/no : doesn't have any effect at all
>
> Removes the number from \chapter etc.
>
>> page=yes : starts (a section block on) a new (left or right) page
>> page=no : doesn't have any effect at all
>
> Continues the next sectionblock on the same page as the lest block ends.
>
>> page=right: starts (a section block on) a (new) right page
>>
>> before/after : before/after starting the new page
>>
>> \page[left/right] : forces a left/right page
>>
>> The following
>>
>> \setupsectionblock[backpart][before={\page[left]}]
>>
>> gives more what I was looking after, however there's still
>> a blank numbered page as the last chapter's last page
>> which I've unsuccessfully been trying to get without page
>> number.
>
> But only in MkII, if you have a problem with this in MkIV make a example.

I have been struggling with some similar issues (in MkII). I was
getting an extra page at the end of a document which came and went for
reasons that were unclear to me. And then there was the issue (bug?)
about "getting to the back page of a booklet" which you helped me with
before.(It's towards the end of
)

Was this actually a bug?

While your solution seemed to work well originally, it seems to be
fragile now when used in a more complicated document. It seems to work
OK when I don't use a sectionblock for the back cover, so perhaps it
is related.

-- 

John Devereux
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Wolfgang Schuster
On Wed, Jul 23, 2008 at 4:46 PM, Alan Stone
<[EMAIL PROTECTED]> wrote:
> Correction ( disregard the previous example)...
>
> \setuppapersize [A4][A4]
>
> %\setuppagenumbering[alternative=singlesided]
> \setuppagenumbering[alternative=doublesided]
>
> \definepagebreak[myChapterPageBreak][yes,header,footer,right]
> \setuphead[chapter][page=myChapterPageBreak]
>
> \startsectionblockenvironment[frontpart]
> \setupheader[state=stop]
> \setupfooter[state=stop]
> \stopsectionblockenvironment
>
> \startsectionblockenvironment[bodypart]
> \setupheader[state=start]
> \setupfooter[state=start]
> \stopsectionblockenvironment
>
> \startsectionblockenvironment[backpart]
> \setupheader[state=stop]
> \setupfooter[state=stop]
> \stopsectionblockenvironment
>
> \setupsectionblock[backpart][before={\page[left]}]

You need

\setupsectionblock[bodypart][page=yes]
\setupsectionblock[backpart][page=yes,before={\page[left]}]

The output from your settings is weird but correct because the last page
of the bodymatter is a right page and with the default value for "page" you're
going to the next right page, in your case page 11.

On page 11 starts now the backmatter with empty header and footer lines,
your setting for the backmatter inserts the "\page[left]" command and because
we're at the moment on a right page the current page is empty and the back
page is placed on page 12.

You see, nothing is wrong with ConTeXt, only the settings for the sectionblocks
are a bit confusing and you have to take care of this.

> \starttext
>
> \startstandardmakeup
> Title
> \blank[3*big]
> Author
> \stopstandardmakeup
>
> \startfrontmatter
> Table of Contents
> \blank[3*big]
> \placecontent
> \stopfrontmatter
>
> \startbodymatter
> \chapter{Chapter 1}
> \section{Section 1.1}
> \input knuth
> \blank
> \input knuth
> \blank
> \input knuth
>
> \section{Section 1.2}
> \input tufte
> \blank
> \input tufte
> \blank
> \input tufte
>
> \section{Section 1.3}
> \input zapf
> \blank
> \input zapf
> \blank
> \input zapf
>
> \chapter{Chapter 2}
> \section{Section 2.1}
> \input knuth
> \blank
> \input knuth
> \blank
> \input knuth
>
> \section{Section 2.2}
> \input tufte
> \blank
> \input tufte
> \blank
> \input tufte
>
> \section{Section 2.3}
> \input zapf
> \blank
> \input zapf
> \blank
> \input zapf
> \stopbodymatter
>
> \startbackmatter
> back page
> \stopbackmatter
>
> \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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Alan Stone
Correction ( disregard the previous example)...

\setuppapersize [A4][A4]

%\setuppagenumbering[alternative=singlesided]
\setuppagenumbering[alternative=doublesided]

\definepagebreak[myChapterPageBreak][yes,header,footer,right]
\setuphead[chapter][page=myChapterPageBreak]

\startsectionblockenvironment[frontpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setupheader[state=start]
\setupfooter[state=start]
\stopsectionblockenvironment

\startsectionblockenvironment[backpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\setupsectionblock[backpart][before={\page[left]}]

\starttext

\startstandardmakeup
Title
\blank[3*big]
Author
\stopstandardmakeup

\startfrontmatter
Table of Contents
\blank[3*big]
\placecontent
\stopfrontmatter

\startbodymatter
\chapter{Chapter 1}
\section{Section 1.1}
\input knuth
\blank
\input knuth
\blank
\input knuth

\section{Section 1.2}
\input tufte
\blank
\input tufte
\blank
\input tufte

\section{Section 1.3}
\input zapf
\blank
\input zapf
\blank
\input zapf

\chapter{Chapter 2}
\section{Section 2.1}
\input knuth
\blank
\input knuth
\blank
\input knuth

\section{Section 2.2}
\input tufte
\blank
\input tufte
\blank
\input tufte

\section{Section 2.3}
\input zapf
\blank
\input zapf
\blank
\input zapf
\stopbodymatter

\startbackmatter
back page
\stopbackmatter

\stoptext
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Alan Stone
>
> But only in MkII, if you have a problem with this in MkIV make a example.


\setuppapersize [A4][A4]

%\setuppagenumbering[alternative=singlesided]
\setuppagenumbering[alternative=doublesided]

\definepagebreak[myChapterPageBreak][yes,header,footer,right]
\setuphead[chapter][page=myChapterPageBreak]

\startsectionblockenvironment[frontpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setupheader[state=start]
\setupfooter[state=start]
\stopsectionblockenvironment

\startsectionblockenvironment[backpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\setupsectionblock[backpart][before={\page[left]}]

\starttext

\startstandardmakeup
Title
\blank[3*big]
Author
\stopstandardmakeup

\startfrontmatter
Table of Contents
\blank[3*big]
\placecontent
\stopfrontmatter

\startbodymatter
\chapter{Chapter 1}
\section{Section 1.1}
\input knuth
\blank
\input knuth
\blank
\input knuth

\section{Section 1.2}
\input tufte
\blank
\input tufte
\blank
\input tufte

\section{Section 1.3}
\input zapf
\blank
\input zapf
\blank
\input zapf

\chapter{Chapter 2}
\section{Section 2.1}
\input knuth
\blank
\input knuth
\blank
\input knuth

\section{Section 2.2}
\input tufte
\blank
\input tufte
\blank
\input tufte

\section{Section 2.3}
\input zapf
\blank
\input zapf
\blank
\input zapf

\starthiding
\chapter{Chapter 3}
\section{Section 3.1}
\input knuth
\blank
\input knuth
\blank
\input knuth

\section{Section 3.2}
\input tufte
\blank
\input tufte
\blank
\input tufte

\section{Section 3.3}
\input zapf
\blank
\input zapf
\blank
\input zapf
\stopbodymatter
\stophiding

\startbackmatter
back page
\stopbackmatter

\stoptext
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Alan Stone
>
> \setupsectionblock[bodypart][page=yes]
> \setupsectionblock[backpart][page=yes]
>
> or for the backpart
>
> \setupsectionblock[backpart][page=yes,before={\page[left]}]


Thanks Wolfgang.

I've been playing with different bodypart and backpart setupsectionblock
settings: number=yes/no, page=yes/no/right,
before/after={\page[left/right]}]

>From what I observed and understand (from the manual and
http://texshow.contextgarden.net/command/detail/296 )...

number=yes/no : doesn't have any effect at all

page=yes : starts (a section block on) a new (left or right) page
page=no : doesn't have any effect at all
page=right: starts (a section block on) a (new) right page

before/after : before/after starting the new page

\page[left/right] : forces a left/right page

The following

\setupsectionblock[backpart][before={\page[left]}]

gives more what I was looking after, however there's still
a blank numbered page as the last chapter's last page
which I've unsuccessfully been trying to get without page
number.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Wolfgang Schuster
On Wed, Jul 23, 2008 at 3:33 PM, Alan Stone
<[EMAIL PROTECTED]> wrote:
>> \setupsectionblock[bodypart][page=yes]
>> \setupsectionblock[backpart][page=yes]
>>
>> or for the backpart
>>
>> \setupsectionblock[backpart][page=yes,before={\page[left]}]
>
> Thanks Wolfgang.
>
> I've been playing with different bodypart and backpart setupsectionblock
> settings: number=yes/no, page=yes/no/right,
> before/after={\page[left/right]}]
>
> From what I observed and understand (from the manual and
> http://texshow.contextgarden.net/command/detail/296 )...
>
> number=yes/no : doesn't have any effect at all

Removes the number from \chapter etc.

> page=yes : starts (a section block on) a new (left or right) page
> page=no : doesn't have any effect at all

Continues the next sectionblock on the same page as the lest block ends.

> page=right: starts (a section block on) a (new) right page
>
> before/after : before/after starting the new page
>
> \page[left/right] : forces a left/right page
>
> The following
>
> \setupsectionblock[backpart][before={\page[left]}]
>
> gives more what I was looking after, however there's still
> a blank numbered page as the last chapter's last page
> which I've unsuccessfully been trying to get without page
> number.

But only in MkII, if you have a problem with this in MkIV make a example.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startbodymatter question

2008-07-22 Thread Wolfgang Schuster
On Tue, Jul 22, 2008 at 7:55 PM, Alan Stone
<[EMAIL PROTECTED]> wrote:
> Hi,
> How do you get rid of the doublesided document's page number on the blank
> page
> inserted after the last chapter  ?
>
> Alan
>
> ConTeXt  ver: 2008.07.10 08:40 MKIV  fmt: 2008.7.10  int: english/english
>
> texmfstart texexec --lua test.tex
>
> --- start of code ---
>
> \setuppapersize [A4][A4]
>
> %\setuppagenumbering[alternative=singlesided]
> \setuppagenumbering[alternative=doublesided]
>
> \definepagebreak[myChapterPageBreak][yes,header,footer,right]
> \setuphead[chapter][page=myChapterPageBreak]
>
> \startsectionblockenvironment[frontpart]
> \setupheader[state=stop]
> \setupfooter[state=stop]
> \stopsectionblockenvironment
>
> \startsectionblockenvironment[bodypart]
> \setupheader[state=start]
> \setupfooter[state=start]
> \stopsectionblockenvironment
> \setupsectionblock[bodypart][page=no] % doesn't make a difference

\setupsectionblock[bodypart][page=yes]
\setupsectionblock[backpart][page=yes]

or for the backpart

\setupsectionblock[backpart][page=yes,before={\page[left]}]

> \startsectionblockenvironment[backpart]
> \setupheader[state=stop]
> \setupfooter[state=stop]
> \stopsectionblockenvironment
>
> \starttext
>
> \startstandardmakeup
> Title
> \blank[3*big]
>     Author
> \stopstandardmakeup
>
> \startfrontmatter
> Table of Contents
> \blank[3*big]
> \placecontent
> \stopfrontmatter
>
> \startbodymatter
> \chapter{Chapter 1}
> \section{Section 1.1}
> \input knuth
> \blank
> \input knuth
> \blank
> \input knuth
> \section{Section 1.2}
> \input tufte
> \blank
> \input tufte
> \blank
> \input tufte
> \section{Section 1.3}
> \input zapf
> \blank
> \input zapf
> \blank
> \input zapf
> \chapter{Chapter 2}
> \section{Section 2.1}
> \input knuth
> \blank
> \input knuth
> \blank
> \input knuth
> \section{Section 2.2}
> \input tufte
> \blank
> \input tufte
> \blank
> \input tufte
> \section{Section 2.3}
> \input zapf
> \blank
> \input zapf
> \blank
> \input zapf
> \stopbodymatter
>
> \startbackmatter
> back cover
> \stopbackmatter
>
> \stoptext
>
> --- end of code ---

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] startbodymatter question

2008-07-22 Thread Alan Stone
Hi,
How do you get rid of the doublesided document's page number on the blank
page
inserted after the last chapter  ?

Alan

 ConTeXt  ver: 2008.07.10 08:40 MKIV  fmt: 2008.7.10  int: english/english

texmfstart texexec --lua test.tex

--- start of code ---

\setuppapersize [A4][A4]

%\setuppagenumbering[alternative=singlesided]
\setuppagenumbering[alternative=doublesided]

\definepagebreak[myChapterPageBreak][yes,header,footer,right]
\setuphead[chapter][page=myChapterPageBreak]

\startsectionblockenvironment[frontpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setupheader[state=start]
\setupfooter[state=start]
\stopsectionblockenvironment
\setupsectionblock[bodypart][page=no] % doesn't make a difference

\startsectionblockenvironment[backpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\starttext

\startstandardmakeup
Title
\blank[3*big]
Author
\stopstandardmakeup

\startfrontmatter
Table of Contents
\blank[3*big]
\placecontent
\stopfrontmatter

\startbodymatter
\chapter{Chapter 1}
\section{Section 1.1}
\input knuth
\blank
\input knuth
\blank
\input knuth
\section{Section 1.2}
\input tufte
\blank
\input tufte
\blank
\input tufte
\section{Section 1.3}
\input zapf
\blank
\input zapf
\blank
\input zapf
\chapter{Chapter 2}
\section{Section 2.1}
\input knuth
\blank
\input knuth
\blank
\input knuth
\section{Section 2.2}
\input tufte
\blank
\input tufte
\blank
\input tufte
\section{Section 2.3}
\input zapf
\blank
\input zapf
\blank
\input zapf
\stopbodymatter

\startbackmatter
back cover
\stopbackmatter

\stoptext

--- end of code ---
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___