From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87898 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Letter module Date: Sun, 29 Jun 2014 10:00:03 +0200 Message-ID: <5E8ECE47-C9D5-499C-B929-560171B202D7@gmail.com> References: <20140625153056.GA28882@sartre.localdomain> <20140626135520.GB1848@sartre.localdomain> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1404028839 4874 80.91.229.3 (29 Jun 2014 08:00:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Jun 2014 08:00:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 29 10:00:35 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X1A2M-00026Z-1s for gctc-ntg-context-518@m.gmane.org; Sun, 29 Jun 2014 10:00:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A93A10294 for ; Sun, 29 Jun 2014 10:00:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kHe0Lb42dEo8 for ; Sun, 29 Jun 2014 10:00:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 73EF210226 for ; Sun, 29 Jun 2014 10:00:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5C867101E9 for ; Sun, 29 Jun 2014 10:00:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HDLjfjZDKrcU for ; Sun, 29 Jun 2014 10:00:18 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 4C95C101E6 for ; Sun, 29 Jun 2014 10:00:13 +0200 (CEST) Original-Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s5T8PvYU010671 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 29 Jun 2014 10:25:58 +0200 Original-Received: by mail-wi0-f171.google.com with SMTP id n15so4611069wiw.10 for ; Sun, 29 Jun 2014 01:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=8BaqqrNaceyRmqTD3x9gVx8p16zrg5VBLbI2sHbr4fk=; b=y0l70RhPM+mJFHX5JFNOLErIN92FTjI1l6n/uQ7LVOghq2LYMFQ03JKi7QtnkWLAuJ fWjRccnFW1ME5CeJUFW1j/3Cjqqq9OZ5Q2PQixouGdnBcHE5iPSc2Ra6+vJQQsaJp5oF bE587szlui5mA1VPfn338lBUuDTQ9TLCfw1Q2yK18HTDR/MIsCnjZHVnHDLF42UtcdBQ H21YE/0jyqriQrU74cb7GccXAfD7DCNhLO0ns98RzyQ01WkX385uNN0E8VXmUXHcgEot L6GuNw2vSX1onTNB6eb3o4gOfEY6zqBHdk+NYT2pOpEcNvDfQ2wJgSYJzwyj+2gPmoMx KAUg== X-Received: by 10.180.75.212 with SMTP id e20mr22571120wiw.5.1404028812041; Sun, 29 Jun 2014 01:00:12 -0700 (PDT) Original-Received: from keima.localdomain (x2f29cdc.dyn.telefonica.de. [2.242.156.220]) by mx.google.com with ESMTPSA id ey16sm16843359wid.14.2014.06.29.01.00.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Jun 2014 01:00:11 -0700 (PDT) In-Reply-To: <20140626135520.GB1848@sartre.localdomain> X-Mailer: Apple Mail (2.1878.2) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22b; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01Mk8pWSz - 30744f9aaa98 - 20140629 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87898 Archived-At: Am 26.06.2014 um 15:55 schrieb Mo Abrahams : > Hello again, > = > I managed to get the backaddress looking how I wanted by reading again > through the main ConTeXt manual. I've also got my letterhead loading as > the page background to some degree like so: > = > \defineletterelement[layer][lettermain][Stationery]{\externalfigure[lette= rhead][width=3D210mm,height=3D297mm]} > = > \setupletterlayer > [lettermain] > [x=3D0mm, > y=3D0mm, > alternative=3DStationery] > = > but there seems to be a tiny border around it rather than being flush to > the edges of the page. I've tried other methods using layers and > \setupbackgrounds but they seem to have no effect at all. > = > Can someone help with that? > = > I still haven't worked out how to remove the lavel above the date, and > to make matters worse it doesn't seem to be affected by changing the > document language either! To put a image in the background you can use the =93backgroundimage=94 key = for the \setupletteroptions command, the image will then be placed in the back of each page. \usemodule[letter] \setupexternalfigures[location=3Ddefault] = \setupletteroptions[backgroundimage=3Dmill] \startletter \dorecurse{6}{\input knuth\par} \stopletter You can also use the =93lettermain=94 and =93letternext=94 layers when you = want more control about the placement of the backgrounds. What=92s missing in your setup above is to remove the o= ffset for background which can be done with \setupletterframe[=85][offset=3Doverlay], to control on which = page the image is shown you can use the =93state=94 key for \setupletterlayer. \usemodule[letter] \setupexternalfigures[location=3Ddefault] = \startsetups[letter:layer:lettermain] \externalfigure[mill][width=3D210mm,height=3D297mm] \stopsetups \setupletterlayer [lettermain] [x=3D0mm, y=3D0mm, %state=3Drepeat, alternative=3Dsetups] \setupletterframe [lettermain] [offset=3Doverlay] \startletter \dorecurse{6}{\input knuth\par} \stopletter Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________