ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* chapter page question
@ 2009-02-14 10:46 Alan Stone
  2009-02-14 10:57 ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Alan Stone @ 2009-02-14 10:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 123 bytes --]

Hi,

What's the way to test whether a page is a (start of a new) chapter page ?
Didn't find it on&offline.

-- 
Best,
Alan

[-- Attachment #1.2: Type: text/html, Size: 214 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 10:46 chapter page question Alan Stone
@ 2009-02-14 10:57 ` Wolfgang Schuster
  2009-02-14 11:57   ` Alan Stone
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2009-02-14 10:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.02.2009 um 11:46 schrieb Alan Stone:

> What's the way to test whether a page is a (start of a new) chapter  
> page ?
> Didn't find it on&offline.

Why and for what do you need this information?

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 10:57 ` Wolfgang Schuster
@ 2009-02-14 11:57   ` Alan Stone
  2009-02-14 12:23     ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Alan Stone @ 2009-02-14 11:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 418 bytes --]

On Sat, Feb 14, 2009 at 11:57 AM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 14.02.2009 um 11:46 schrieb Alan Stone:
>
> What's the way to test whether a page is a (start of a new) chapter page ?
>> Didn't find it on&offline.
>>
>
> Why and for what do you need this information?


To put different text in the margin/edge top/header/... whether a page is a
chapter page or not.


> Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1001 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 11:57   ` Alan Stone
@ 2009-02-14 12:23     ` Wolfgang Schuster
  2009-02-14 13:14       ` Alan Stone
  2009-02-14 19:26       ` Alan Stone
  0 siblings, 2 replies; 16+ messages in thread
From: Wolfgang Schuster @ 2009-02-14 12:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.02.2009 um 12:57 schrieb Alan Stone:

>>> What's the way to test whether a page is a (start of a new)  
>>> chapter page ?
>>> Didn't find it on&offline.
>>
>> Why and for what do you need this information?
>
> To put different text in the margin/edge top/header/... whether a  
> page is a
> chapter page or not.

\setupheadertexts[\doifoddpageelse{right page}{left page}]

\definetext[chapter][header][chapter page]

% The \definetext command works like \setup(header/footer/...)texts and
% has 3–7 arguments, the first argument is a keyword (you can use  
whatever
% you want, the second is the location of the text and all other  
arguments
% are reseved for the content.

\setuphead
   [chapter]
   [header=chapter]

\starttext
\dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}}
\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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 12:23     ` Wolfgang Schuster
@ 2009-02-14 13:14       ` Alan Stone
  2009-02-14 13:40         ` Wolfgang Schuster
  2009-02-14 18:17         ` Alan Stone
  2009-02-14 19:26       ` Alan Stone
  1 sibling, 2 replies; 16+ messages in thread
From: Alan Stone @ 2009-02-14 13:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2070 bytes --]

On Sat, Feb 14, 2009 at 1:23 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 14.02.2009 um 12:57 schrieb Alan Stone:
>
>  What's the way to test whether a page is a (start of a new) chapter page
>>>> ?
>>>> Didn't find it on&offline.
>>>>
>>>
>>> Why and for what do you need this information?
>>>
>>
>> To put different text in the margin/edge top/header/... whether a page is
>> a
>> chapter page or not.
>>
>
> \setupheadertexts[\doifoddpageelse{right page}{left page}]
>
> \definetext[chapter][header][chapter page]
>
> % The \definetext command works like \setup(header/footer/...)texts and
> % has 3–7 arguments, the first argument is a keyword (you can use whatever
> % you want, the second is the location of the text and all other arguments
> % are reseved for the content.


from what I understand...

- the location is limited to the text header/footer => what about
margin/edge top/header/footer/bottom ?

- all other arguments are reserved for content => for which content and
where ? if i put
\definetext[chapter][header][chapter page][x1][x2][x3][x4] the "chapter
page" header is replaced by "right page" !?


> \setuphead
>  [chapter]
>  [header=chapter]
>
> \starttext
> \dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}}
> \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
>
> ___________________________________________________________________________________
>



-- 
Best,
Alan

* TeX engine = LuaTeX
* ConTeXt  minimals ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.22  int:
english/english
* Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home

[-- Attachment #1.2: Type: text/html, Size: 3482 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 13:14       ` Alan Stone
@ 2009-02-14 13:40         ` Wolfgang Schuster
  2009-02-14 14:33           ` Alan Stone
  2009-02-14 18:17         ` Alan Stone
  1 sibling, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2009-02-14 13:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.02.2009 um 14:14 schrieb Alan Stone:

>> \setupheadertexts[\doifoddpageelse{right page}{left page}]
>>
>> \definetext[chapter][header][chapter page]
>>
>> % The \definetext command works like \setup(header/footer/...)texts  
>> and
>> % has 3–7 arguments, the first argument is a keyword (you can use  
>> whatever
>> % you want, the second is the location of the text and all other  
>> arguments
>> % are reseved for the content.
>
>
> from what I understand...
>
> - the location is limited to the text header/footer => what about
> margin/edge top/header/footer/bottom ?

You can place text in the header, footer and text area:

\definetext[text for header area][header][...]
\definetext[text for text area]  [text]  [...]
\definetext[text for footer area][footer][...]

\setuphead
   [...]
   [header=text for header area,
    text=text for text area,
    fotter=text for header area]

You can also control where the text in this area should appear:

\definetext[text for header area][header][...]              % centered  
text in the text column
\definetext[text for header area][header][...][...]         % left and  
right text in the text column
\definetext[text for header area][header][text]  [...][...] % left and  
right text in the text column
\definetext[text for header area][header][margin][...][...] % left and  
right margin in the text column
\definetext[text for header area][header][edge]  [...][...] % left and  
right edge in the text column

> - all other arguments are reserved for content => for which content  
> and
> where ? if i put
> \definetext[chapter][header][chapter page][x1][x2][x3][x4] the  
> "chapter
> page" header is replaced by "right page" !?

Your setting is ignored because with all seven argument the third one
has to be either text, margin or edge.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 13:40         ` Wolfgang Schuster
@ 2009-02-14 14:33           ` Alan Stone
  2009-02-14 14:47             ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Alan Stone @ 2009-02-14 14:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2237 bytes --]

Ahaaa... thanks for clearing up the mist. So that makes...

\definetext[text for header/text/footer
area][header/text/footer][edge/margin/text][left][right]

What are arguments 6 and 7 for ?

Alan


On Sat, Feb 14, 2009 at 2:40 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 14.02.2009 um 14:14 schrieb Alan Stone:
>
>  \setupheadertexts[\doifoddpageelse{right page}{left page}]
>>>
>>> \definetext[chapter][header][chapter page]
>>>
>>> % The \definetext command works like \setup(header/footer/...)texts and
>>> % has 3–7 arguments, the first argument is a keyword (you can use
>>> whatever
>>> % you want, the second is the location of the text and all other
>>> arguments
>>> % are reseved for the content.
>>>
>>
>>
>> from what I understand...
>>
>> - the location is limited to the text header/footer => what about
>> margin/edge top/header/footer/bottom ?
>>
>
> You can place text in the header, footer and text area:
>
> \definetext[text for header area][header][...]
> \definetext[text for text area]  [text]  [...]
> \definetext[text for footer area][footer][...]
>
> \setuphead
>  [...]
>  [header=text for header area,
>   text=text for text area,
>   fotter=text for header area]
>
> You can also control where the text in this area should appear:
>
> \definetext[text for header area][header][...]              % centered text
> in the text column
> \definetext[text for header area][header][...][...]         % left and
> right text in the text column
> \definetext[text for header area][header][text]  [...][...] % left and
> right text in the text column
> \definetext[text for header area][header][margin][...][...] % left and
> right margin in the text column
> \definetext[text for header area][header][edge]  [...][...] % left and
> right edge in the text column
>
> - all other arguments are reserved for content => for which content and
>> where ? if i put
>> \definetext[chapter][header][chapter page][x1][x2][x3][x4] the "chapter
>> page" header is replaced by "right page" !?
>>
>
> Your setting is ignored because with all seven argument the third one
> has to be either text, margin or edge.
>
>
> Wolfgang
>

[-- Attachment #1.2: Type: text/html, Size: 3171 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 14:33           ` Alan Stone
@ 2009-02-14 14:47             ` Wolfgang Schuster
  2009-02-14 15:02               ` Alan Stone
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2009-02-14 14:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.02.2009 um 15:33 schrieb Alan Stone:

> Ahaaa... thanks for clearing up the mist. So that makes...
>
> \definetext[text for header/text/footer
> area][header/text/footer][edge/margin/text][left][right]
>
> What are arguments 6 and 7 for ?

To set different texts for left pages. Seldom needed because in
a doublesided document a chapter start normally at a right page.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 14:47             ` Wolfgang Schuster
@ 2009-02-14 15:02               ` Alan Stone
  0 siblings, 0 replies; 16+ messages in thread
From: Alan Stone @ 2009-02-14 15:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 751 bytes --]

So it seems, although there's also \setuptop and \setupbottom, that
definetext doesn't accept top and bottom. Any idea why that's so (samewise
for setuphead which doesn't accept top and bottom arguments either,
according to the manual) ?

Alan


On Sat, Feb 14, 2009 at 3:47 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 14.02.2009 um 15:33 schrieb Alan Stone:
>
> Ahaaa... thanks for clearing up the mist. So that makes...
>>
>> \definetext[text for header/text/footer
>> area][header/text/footer][edge/margin/text][left][right]
>>
>> What are arguments 6 and 7 for ?
>>
>
> To set different texts for left pages. Seldom needed because in
> a doublesided document a chapter start normally at a right page.
>
>
> Wolfgang
>

[-- Attachment #1.2: Type: text/html, Size: 1322 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 13:14       ` Alan Stone
  2009-02-14 13:40         ` Wolfgang Schuster
@ 2009-02-14 18:17         ` Alan Stone
  2009-02-14 18:28           ` Wolfgang Schuster
  1 sibling, 1 reply; 16+ messages in thread
From: Alan Stone @ 2009-02-14 18:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1293 bytes --]

The underneath example works with
\def\myHeader{\iftuut chapter\else high\fi}

How do you make it work with\def\myHeader{\doifmodelse{a}{chapter}{high}} ?
( without resorting to \doifmodeelse{a}{\tuuttrue}{\tuutfalse} )

\showframe

\newif\iftuut
%\tuuttrue
\tuutfalse

\setuppagenumbering[location=footer]

\setupheadertexts[\doifoddpageelse{right page}{left page}]

\definetext[chapter][header][chapter page]

\def\myHeader{\doifmodelse{a}{chapter}{high}}
%\def\myHeader{\iftuut chapter\else high\fi}

\setuphead
 [chapter]
% [header=chapter]
% [header=high]
 [header=\myHeader]

\starttext
\dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}}
\stoptext

---

 ! Undefined control sequence.
\myHeader ->\doifmodelse
                         {a}{chapter}{high}
\doifvaluesomething ...inga {\csname #1\endcsname
                                                  }\ifx \!!stringa \empty
\e...
<argument> ...ething {\??ko \v!chapter \c!header }
                                                   {\setuplayouttext
[\v!hea...
\firstoftwoarguments #1#2->#1

<argument> ...BB {\v!chapter }\v!header \c!header
                                                  \dohandlepagebreakBB
{\v!c...
\firstofoneargument #1->#1

...
l.23 ...apter #1}\dorecurse{20}{\input knuth\par}}

---

Alan

[-- Attachment #1.2: Type: text/html, Size: 3029 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 18:17         ` Alan Stone
@ 2009-02-14 18:28           ` Wolfgang Schuster
  2009-02-14 19:17             ` Alan Stone
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2009-02-14 18:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.02.2009 um 19:17 schrieb Alan Stone:

> The underneath example works with \def\myHeader{\iftuut chapter\else  
> high\fi}
>
> How do you make it work with\def\myHeader{\doifmodelse{a}{chapter} 
> {high}} ?
> ( without resorting to \doifmodeelse{a}{\tuuttrue}{\tuutfalse} )

[...]

>  ! Undefined control sequence.
> \myHeader ->\doifmodelse

\doifmodeelse (a 'e' is missing in the command)

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 18:28           ` Wolfgang Schuster
@ 2009-02-14 19:17             ` Alan Stone
  2009-02-14 19:25               ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Alan Stone @ 2009-02-14 19:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1313 bytes --]

Unfortunately, it doesn't resolve the problem...


 ! Undefined control sequence.
\cleanuplabel #1->\begingroup \let :
                                    \lettercolon \xdef \cleanlabel
{#1}\endg...
\docheckformode #1#2#3->\cleanuplabel {#3}
                                          \protect \checkedmodefalse
\rawpro...
\myHeader ->\doifmodeelse {a}
                             {chapter}{high}
\doifvaluesomething ...inga {\csname #1\endcsname
                                                  }\ifx \!!stringa \empty
\e...
<argument> ...ething {\??ko \v!chapter \c!header }
                                                   {\setuplayouttext
[\v!hea...
\firstoftwoarguments #1#2->#1

...
l.23 ...apter #1}\dorecurse{20}{\input knuth\par}}

?


context.cmd --modes=a test

Alan



On Sat, Feb 14, 2009 at 7:28 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 14.02.2009 um 19:17 schrieb Alan Stone:
>
> The underneath example works with \def\myHeader{\iftuut chapter\else
>> high\fi}
>>
>> How do you make it work with\def\myHeader{\doifmodelse{a}{chapter}{high}}
>> ?
>> ( without resorting to \doifmodeelse{a}{\tuuttrue}{\tuutfalse} )
>>
>
> [...]
>
>  ! Undefined control sequence.
>> \myHeader ->\doifmodelse
>>
>
> \doifmodeelse (a 'e' is missing in the command)
>
>
> Wolfgang
>

[-- Attachment #1.2: Type: text/html, Size: 3679 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 19:17             ` Alan Stone
@ 2009-02-14 19:25               ` Wolfgang Schuster
  0 siblings, 0 replies; 16+ messages in thread
From: Wolfgang Schuster @ 2009-02-14 19:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.02.2009 um 20:17 schrieb Alan Stone:

> Unfortunately, it doesn't resolve the problem...
>
>
>  ! Undefined control sequence.
> \cleanuplabel #1->\begingroup \let :
>                                     \lettercolon \xdef \cleanlabel  
> {#1}\endg...
> \docheckformode #1#2#3->\cleanuplabel {#3}
>                                           \protect \checkedmodefalse  
> \rawpro...
> \myHeader ->\doifmodeelse {a}
>                              {chapter}{high}
> \doifvaluesomething ...inga {\csname #1\endcsname
>                                                   }\ifx \!!stringa  
> \empty \e...
> <argument> ...ething {\??ko \v!chapter \c!header }
>                                                    {\setuplayouttext  
> [\v!hea...
> \firstoftwoarguments #1#2->#1
>
> ...
> l.23 ...apter #1}\dorecurse{20}{\input knuth\par}}

>

I had only looked at the error message and not at your example.
Passing tests to values is often a problem because you don't know
what happens in the internals and only only low level commands like
\iftrue, \ifdim ... works without problems.

The best you can do is to write:

\startmode[a]
\setuphead[chapter][header=chapter]
\stopmode

\startnotmode[a]
\setuphead[chapter][header=high]
\stopnotmode

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 12:23     ` Wolfgang Schuster
  2009-02-14 13:14       ` Alan Stone
@ 2009-02-14 19:26       ` Alan Stone
  2009-02-15 10:04         ` Wolfgang Schuster
  1 sibling, 1 reply; 16+ messages in thread
From: Alan Stone @ 2009-02-14 19:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1276 bytes --]

I also would like to be able to choose a different font and/or fontsize
(\switchtobodyfont[...]), style and/or color (\color[...]) for chapter
pages' header area (margin/edge/text) and non-chapter pages.

Hence, I guess... back to my initial question.

Alan

On Sat, Feb 14, 2009 at 1:23 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 14.02.2009 um 12:57 schrieb Alan Stone:
>
>  What's the way to test whether a page is a (start of a new) chapter page
>>>> ?
>>>> Didn't find it on&offline.
>>>>
>>>
>>> Why and for what do you need this information?
>>>
>>
>> To put different text in the margin/edge top/header/... whether a page is
>> a
>> chapter page or not.
>>
>
> \setupheadertexts[\doifoddpageelse{right page}{left page}]
>
> \definetext[chapter][header][chapter page]
>
> % The \definetext command works like \setup(header/footer/...)texts and
> % has 3–7 arguments, the first argument is a keyword (you can use whatever
> % you want, the second is the location of the text and all other arguments
> % are reseved for the content.
>
> \setuphead
>  [chapter]
>  [header=chapter]
>
> \starttext
> \dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}}
> \stoptext
>
>
> Wolfgang
>

[-- Attachment #1.2: Type: text/html, Size: 2072 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-14 19:26       ` Alan Stone
@ 2009-02-15 10:04         ` Wolfgang Schuster
  2009-02-15 12:59           ` Alan Stone
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2009-02-15 10:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.02.2009 um 20:26 schrieb Alan Stone:

> I also would like to be able to choose a different font and/or  
> fontsize (\switchtobodyfont[...]), style and/or color (\color[...])  
> for chapter pages' header area (margin/edge/text) and non-chapter  
> pages.


You can format the text in \definetext.

\startsetups header:chapter:middle
   \startcolor[red]
   \it Chapter page
   \stopcolor
\stopsetups

\definetext[chapter][header][\setups{chapter:header:middle}]

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: chapter page question
  2009-02-15 10:04         ` Wolfgang Schuster
@ 2009-02-15 12:59           ` Alan Stone
  0 siblings, 0 replies; 16+ messages in thread
From: Alan Stone @ 2009-02-15 12:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 374 bytes --]

On Sun, Feb 15, 2009 at 11:04 AM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> You can format the text in \definetext.
>
> \startsetups header:chapter:middle
>  \startcolor[red]
>  \it Chapter page
>  \stopcolor
> \stopsetups
>
> \definetext[chapter][header][\setups{chapter:header:middle}]


 Das ist ubersupercool !  :O)

Thanks,
Alan


>  Wolfgang
>

[-- Attachment #1.2: Type: text/html, Size: 903 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-02-15 12:59 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-14 10:46 chapter page question Alan Stone
2009-02-14 10:57 ` Wolfgang Schuster
2009-02-14 11:57   ` Alan Stone
2009-02-14 12:23     ` Wolfgang Schuster
2009-02-14 13:14       ` Alan Stone
2009-02-14 13:40         ` Wolfgang Schuster
2009-02-14 14:33           ` Alan Stone
2009-02-14 14:47             ` Wolfgang Schuster
2009-02-14 15:02               ` Alan Stone
2009-02-14 18:17         ` Alan Stone
2009-02-14 18:28           ` Wolfgang Schuster
2009-02-14 19:17             ` Alan Stone
2009-02-14 19:25               ` Wolfgang Schuster
2009-02-14 19:26       ` Alan Stone
2009-02-15 10:04         ` Wolfgang Schuster
2009-02-15 12:59           ` Alan Stone

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).