ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Background on the "page" of the first page
@ 2001-01-06 17:05 Tobias Burnus
  2001-01-06 21:25 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Tobias Burnus @ 2001-01-06 17:05 UTC (permalink / raw)


Hi,

I'd like to have a fency background and a colour on the first (and with
doublesided also on the last page). Somehow I cannot figure out how to
do so. I either get an error message, or not the whole page has that
background or all pages have that background. (I tried
\backgrounds[page][state=stop] after the first page with no success.)

Tobias
-- 
This above all: To thine own self be true / And it must follow as
the night the day / Thou canst not then be false to any man.


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

* Re: Background on the "page" of the first page
  2001-01-06 17:05 Background on the "page" of the first page Tobias Burnus
@ 2001-01-06 21:25 ` Hans Hagen
  2001-01-07 16:42   ` Hraban
  2001-01-08 20:01   ` transparent PNG on a coloured background Tobias Burnus
  0 siblings, 2 replies; 5+ messages in thread
From: Hans Hagen @ 2001-01-06 21:25 UTC (permalink / raw)
  Cc: NTG-ConTeXt

At 06:05 PM 1/6/01 +0100, Tobias Burnus wrote:
>Hi,
>
>I'd like to have a fency background and a colour on the first (and with
>doublesided also on the last page). Somehow I cannot figure out how to
>do so. I either get an error message, or not the whole page has that
>background or all pages have that background. (I tried
>\backgrounds[page][state=stop] after the first page with no success.)

Just do: 

\setupbackgrounds
  [page][background=color,backgroundcolor=red]

.....

\setupbackgrounds
  [page][background=]

So, there is no state involved. See s-pre-*.tex for more examples. 

Hans 
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: Background on the "page" of the first page
  2001-01-06 21:25 ` Hans Hagen
@ 2001-01-07 16:42   ` Hraban
  2001-01-07 23:27     ` Hans Hagen
  2001-01-08 20:01   ` transparent PNG on a coloured background Tobias Burnus
  1 sibling, 1 reply; 5+ messages in thread
From: Hraban @ 2001-01-07 16:42 UTC (permalink / raw)


Hans Hagen wrote:
> >I'd like to have a fency background and a colour on the first (and with
> >doublesided also on the last page). Somehow I cannot figure out how to

If you want a picture as background, try this:

You need a picture "bild.pdf" that has the same proportions as your page.

\useexternalfigure[hintergrund][bild][width=21.5cm]
% width about 5 mm wider than the page, that it can be cropped
\defineoverlay[titelbild][{\externalfigure[hintergrund]}]
% becomes automatically centered

\setupbackgrounds[page][background=titelbild]
% instead of page you may say rightpage or leftpage

\setupbackgrounds	[rightpage][background=]
% switch it off afterwards

-- 
*corvus tecum*
  -_hraban_-
---
Grüßlis vom Hraban!
---
Henning Hraban Ramm
Ebenreuther Str.22b
D  90482  Nuernberg
Tel. (0911) 5487697
---
http://angerweit.tikon.ch/
http://www.planet-interkom.de/fiee.visuelle/formelsammlung.html


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

* Re: Background on the "page" of the first page
  2001-01-07 16:42   ` Hraban
@ 2001-01-07 23:27     ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2001-01-07 23:27 UTC (permalink / raw)
  Cc: ConTeXt

At 05:42 PM 1/7/01 +0100, Hraban wrote:
>Hans Hagen wrote:
>> >I'd like to have a fency background and a colour on the first (and with
>> >doublesided also on the last page). Somehow I cannot figure out how to
>
>If you want a picture as background, try this:
>
>You need a picture "bild.pdf" that has the same proportions as your page.
>
>\useexternalfigure[hintergrund][bild][width=21.5cm]
>% width about 5 mm wider than the page, that it can be cropped
>\defineoverlay[titelbild][{\externalfigure[hintergrund]}]
>% becomes automatically centered
>
>\setupbackgrounds[page][background=titelbild]
>% instead of page you may say rightpage or leftpage
>
>\setupbackgrounds	[rightpage][background=]
>% switch it off afterwards

There is a better way -) 

First, you can use \overlaywidth and \overlayheight as dimensions, so that
you don't have to have explicit sizes: 

\defineoverlay[titelbild][{\externalfigure[hintergrund][width=\overlaywidth,
height=\overlayheight]}]

a bit shorter is: 

  \defineoverlay[titelbild][\overlayfigure{hintergrund}]

Concerning the .5cm overshoot, 

  \setupbackgrounds[page][background=titelbild,backgroundoffset=2.5mm]

will do the trick. 

-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* transparent PNG on a coloured background
  2001-01-06 21:25 ` Hans Hagen
  2001-01-07 16:42   ` Hraban
@ 2001-01-08 20:01   ` Tobias Burnus
  1 sibling, 0 replies; 5+ messages in thread
From: Tobias Burnus @ 2001-01-08 20:01 UTC (permalink / raw)
  Cc: NTG-ConTeXt

Hi Hans, hi all,

I now have a problem with a logo (PNG file) which is round and has a
transparent background. I simply insert it using \externalfigure and the
background of the transparent parts is white (not the colour of that
page).

Tobias


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

end of thread, other threads:[~2001-01-08 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-06 17:05 Background on the "page" of the first page Tobias Burnus
2001-01-06 21:25 ` Hans Hagen
2001-01-07 16:42   ` Hraban
2001-01-07 23:27     ` Hans Hagen
2001-01-08 20:01   ` transparent PNG on a coloured background Tobias Burnus

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