ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Repeating page backgrounds
@ 2010-01-25 16:39 Willi Egger
  2010-01-25 16:55 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Willi Egger @ 2010-01-25 16:39 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 404 bytes --]

Hi,

I thought that \setupbackgrounds[page][state=repeat] would result in  
placing the defined background on every page. - It seems that I miss  
something or the mechanism is broken.

Se attached sample-file.

This is LuaTeX, Version beta-0.50.0-2009122422
Context current version: 2010.01.25 11:09

The example gives the page background on the first page only with  
MKII as well as with MKIV.


Willi

[-- Attachment #2: test-repeat-pagebackground.tex --]
[-- Type: application/octet-stream, Size: 449 bytes --]

% Context file
% Filename: test.tex
% Willi Egger
% 25-01-2010
% Copyright (c) 2009 BOEDE. All rights reserved.

\definelayer[PageLayer][width=\paperwidth,height=\paperheight,position=no,preset=lefttop]
\setupcolors[state=start]
\setlayer
   [PageLayer]
	[x=80mm,y=150mm]
	{\externalfigure[cow][width=60mm,height=60mm]}

\setupbackgrounds[page][background=PageLayer,state=repeat]

\starttext
\dorecurse{3}{This is page \recurselevel\page}
\stoptext

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





[-- Attachment #4: Type: text/plain, Size: 486 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Repeating page backgrounds
  2010-01-25 16:39 Repeating page backgrounds Willi Egger
@ 2010-01-25 16:55 ` Wolfgang Schuster
  2010-01-25 17:14   ` Willi Egger
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2010-01-25 16:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Am 25.01.10 17:39, schrieb Willi Egger:
> Hi,
>
> I thought that \setupbackgrounds[page][state=repeat] would result in 
> placing the defined background on every page. - It seems that I miss 
> something or the mechanism is broken.
This is the normal behaviour for layers, what you want is

\definelayer[PageLayer][...,state=repeat]


See also http://wiki.contextgarden.net/Layers#State

Wolfgang


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

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

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

* Re: Repeating page backgrounds
  2010-01-25 16:55 ` Wolfgang Schuster
@ 2010-01-25 17:14   ` Willi Egger
  0 siblings, 0 replies; 3+ messages in thread
From: Willi Egger @ 2010-01-25 17:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks Wolfgang, indeed.

Willi
On Jan 25, 2010, at 5:55 PM, Wolfgang Schuster wrote:

> Am 25.01.10 17:39, schrieb Willi Egger:
>>
>> Hi,
>>
>> I thought that \setupbackgrounds[page][state=repeat] would result  
>> in placing the defined background on every page. - It seems that I  
>> miss something or the mechanism is broken.
> This is the normal behaviour for layers, what you want is
>
> p, li { white-space: pre-wrap; }
> \definelayer[PageLayer][...,state=repeat]
>
> See also http://wiki.contextgarden.net/Layers#State
>
> 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  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2010-01-25 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-25 16:39 Repeating page backgrounds Willi Egger
2010-01-25 16:55 ` Wolfgang Schuster
2010-01-25 17:14   ` Willi Egger

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