From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35685 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: Background image Date: Mon, 06 Aug 2007 13:02:06 +0200 Message-ID: <46B6FFAE.9070408@gmx.net> References: <1186331269.12049.6.camel@carnifex> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000609010204040801070809" X-Trace: sea.gmane.org 1186398145 2540 80.91.229.12 (6 Aug 2007 11:02:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2007 11:02:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 06 13:02:20 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1II0Lr-0005Ty-8U for gctc-ntg-context-518@m.gmane.org; Mon, 06 Aug 2007 13:02:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EFC101FF14; Mon, 6 Aug 2007 13:02:18 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07087-08-7; Mon, 6 Aug 2007 13:02:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B2FA51FE6A; Mon, 6 Aug 2007 13:02:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A883A1FE6A for ; Mon, 6 Aug 2007 13:02:07 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07087-08-6 for ; Mon, 6 Aug 2007 13:02:03 +0200 (CEST) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id AB40C1FE49 for ; Mon, 6 Aug 2007 13:02:03 +0200 (CEST) Original-Received: (qmail invoked by alias); 06 Aug 2007 11:02:02 -0000 Original-Received: from i577B9EEF.versanet.de (EHLO [192.168.1.3]) [87.123.158.239] by mail.gmx.net (mp003) with SMTP; 06 Aug 2007 13:02:02 +0200 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX18pLMFUEcMp4FXpo3rq2V3S9Yn+X0hHyyBhDyUMTi J74X+U2cJssrfo User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <1186331269.12049.6.camel@carnifex> X-Enigmail-Version: 0.95.3 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:35685 Archived-At: This is a multi-part message in MIME format. --------------000609010204040801070809 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Pascal, I spend more than one hour on this, to find a clean solution. So please add this to the wiki. And if you can, send my a copy of the nice background image (never mind if not). I felt in love with this, while testing your example. Anyhow, the cut markings are still lying under the picture (Hans?), the rest should work. The automatical scaling of the image uses a tricky method from this mailing list http://archive.contextgarden.net/message/20070719.232314.12cb4f5f.en.html Best wishes, Peter BTW: do you set a bleed|crop-box? Pascal de Bruijn schrieb: > Hi, > > I'm trying to layout a book for Lulu.com. I'm working with a 9"x6" paper > size, which is going to be printed on 9.25"x6.25" stock paper to enable > full bleed printing. > > I have managed to get a background image using a background layer. > However, I don't seem to be able to get it to the right size. > > Sample files: > http://area42.pcode.nl/context/ > > In the PDF you can see, that I'm stuck with a white edge. I need the > background picture to fill my entire page with no white left. I also > need to crop marks to remain on top of the background image. > > The supplied background image has the same height/width ratio as the > stock page. However I would like TeX to stretch the ratio if necessary. > > I'd appreciate any suggestion on how to achieve this. > > Regards, > Pascal de Bruijn --------------000609010204040801070809 Content-Type: text/plain; name="lulu.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lulu.tex" \definepapersize[Lulu-Print][width=6.00in,height=9.00in] \definepapersize[Lulu-Stock][width=6.25in,height=9.25in] % [ paper ] [ printpaper ] \setuppapersize[Lulu-Print][Lulu-Stock] \setuplayout[location=middle,marking=on] \setuppagenumbering[alternative=doublesided] \setupbackgrounds[leftpage] [background={Watermark-Left,layer-with-marking}]% background doesn't work \setupbackgrounds[rightpage][background={Watermark-Right,layer-with-marking}] \definelayer[Watermark-Left] [repeat=yes,width=\printpaperwidth,height=\printpaperheight, hoffset=-.5\dimexpr\printpaperwidth-\paperwidth, voffset=-.5\dimexpr\printpaperheight-\paperheight] \definelayer[Watermark-Right] [repeat=yes,width=\printpaperwidth,height=\printpaperheight, hoffset=-.5\dimexpr\printpaperwidth-\paperwidth, voffset=-.5\dimexpr\printpaperheight-\paperheight] \setlayer[Watermark-Left][preset=topleft] {\externalfigure[lowres][maxwidth=\printpaperwidth,maxheight=\printpaperheight,width=10in]}% width > maxwidth; value doesn't matter \setlayer[Watermark-Right][preset=topleft] {\externalfigure[lowres][maxwidth=\printpaperwidth,maxheight=\printpaperheight,width=10in]} \starttext \showframe Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fus\-ce commodo. Curabitur quis metus. Cras lacus ipsum, lacinia eu, eleifend in, pellentesque quis, tellus. Sed eget sem a ipsum nonummy aliquam. Curabitur ut nibh a lectus sagittis bibendum. Praesent egestas sapien eu risus. Suspendisse a quam. Nunc volutpat posuere orci. Duis ultrices cursus tellus. Phasellus ante sapien, pharetra ac, malesuada condimentum, viverra sit amet, ligula. Donec nisl libero, placerat nec, euismod eget, euismod lobortis, eros. Nam posuere interdum neque. Maecenas a lacus. Etiam semper viverra libero. Proin ornare accumsan erat. Ut fringilla. Morbi pretium risus nec urna. Nunc nec ligula vel risus sodales lobortis. Fusce consectetuer, risus elementum tincidunt vulputate, arcu turpis porta sem, vitae feugiat arcu est non elit. Nulla facilisi. Duis interdum quam ac purus. Morbi commodo lacus lacinia tortor. Suspendisse potenti. Nullam dapibus risus at dolor. Donec ac felis eu urna varius venenatis. Quisque ac sapien id quam tempor auctor. Donec vel ipsum. Phasellus lorem lacus, iaculis tristique, pellentesque vitae, cursus sed, leo. Morbi massa metus, facilisis at, placerat a, varius in, justo. Vestibulum vehicula consectetuer sapien. In sodales, orci ac convallis sollicitudin, pede ligula luctus erat, ut elementum tellus libero vel urna. Sed scelerisque diam a leo vehicula nonummy. Donec velit dui, volutpat ornare, auctor vel, ultricies eu, nulla. Aliquam quis nisi a nulla tristique semper. Phasellus varius mi at sapien. Integer ornare, mi id consequat nonummy, sem purus pellentesque nibh, eu lobortis neque elit a purus. Nullam nisi. Pellentesque cursus lectus lobortis sem. Sed felis. Ut justo libero, malesuada non, congue sit amet, hendrerit eget, velit. Curabitur iaculis, diam non tincidunt cursus, tortor odio varius mauris, sed pharetra augue urna ac erat. Maecenas eu sapien. Suspendisse vel magna nec metus tempor consectetuer. Sed mollis tincidunt lorem. Sed tempus adipiscing tellus. Sed elit odio, venenatis ac, dignissim at, vehicula eget, ante. \stoptext --------------000609010204040801070809 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --------------000609010204040801070809--