From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3748 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Background on the "page" of the first page Date: Mon, 08 Jan 2001 00:27:48 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010108002748.01aed820@200.1.1.1> References: <3.0.6.32.20010106222541.01babc50@pop.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394467 19746 80.91.224.250 (23 Oct 2002 17:34:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:34:27 +0000 (UTC) Cc: ConTeXt Original-To: angerweit@gmx.net In-Reply-To: <3A589C5F.EAF4F636@gmx.net> Xref: main.gmane.org gmane.comp.tex.context:3748 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3748 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 -------------------------------------------------------------------------