From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14485 Path: main.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: address labels Date: Sun, 11 Jan 2004 12:55:06 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <4001399A.9060003@boede.nl> References: <6.0.1.1.2.20040109191530.01e56cd8@server-1> <001a01c3d82e$f0e8f500$ca30fb3e@com> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020709070603070100030900" X-Trace: sea.gmane.org 1073822194 29194 80.91.224.253 (11 Jan 2004 11:56:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Jan 2004 11:56:34 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sun Jan 11 12:56:31 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AfeCl-00017f-00 for ; Sun, 11 Jan 2004 12:56:31 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 9D98110B4E; Sun, 11 Jan 2004 12:55:49 +0100 (MET) Original-Received: from smtpzilla3.xs4all.nl (smtpzilla3.xs4all.nl [194.109.127.139]) by ref.ntg.nl (Postfix) with ESMTP id 110A610B4D for ; Sun, 11 Jan 2004 12:54:35 +0100 (MET) Original-Received: from boede.nl (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by smtpzilla3.xs4all.nl (8.12.10/8.12.10) with ESMTP id i0BBt6ZY023560 for ; Sun, 11 Jan 2004 12:55:09 +0100 (CET) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <001a01c3d82e$f0e8f500$ca30fb3e@com> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14485 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14485 This is a multi-part message in MIME format. --------------020709070603070100030900 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi Robert, while composing my solution to your question Hans was of course faster and gives immediately multiple approaches. You might want to have a look at my solution because it is basically intended to print addres-labels. Because of restriction of the meilinglist the picture is not included, but you can simply replace the picture in the logo definition ... Success! Kind regards Willi R. Ermers wrote: >Hi contexers, > >I am trying to make context do what I want. What I needed this weekend, are >address labels, which I want to fill with my own logo (not the addresse's). > >Making one label is no problem, but I rather would like to have context make >and typeset a large number of them on a sheet, to be precise: 9x3 (sizes: >7mm x 32mm). > >Does anyone have a clue how this can be done? > >Kind regards, > >Robert Ermers > > --------------020709070603070100030900 Content-Type: text/plain; name="logos.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="logos.tex" % Etiketten for address labels format 45 by 100mm % Context file % filename: logos.tex % Willi Egger % january 2004 \setupoutput[pdftex] \mainlanguage[nl] \language[nl] \setuppagenumber[state=stop] \setupcolors[state=start] \usetypescript[modern][texnansi] \setupbodyfont[modern,ss,12pt] \definepapersize[Etiket][height=42.3mm,width=105mm] \setuppapersize [Etiket][A4,portrait] \setuppaper [topspace=0mm, backspace=0mm, dx=2mm, dy=0mm, nx=2, ny=7, margin=0, width=210mm, height=297mm] \setuplayout [topspace=4mm, backspace=8mm, margin=0mm, width=96mm, height=34mm, header=0mm, footer=0mm] \setuparranging[XY] \definelayer[Etiket][width=\textwidth, height=\textheight] \setupframedtexts[frame=off,width=\textwidth] \def\Logo% {\externalfigure[wooden_coptic][height=\textheight]} %\input adreslist %Contains the addresses as given below: % \startbuffer[Adr1] % \framedtext{% % \startlines % Mr. Robert Ermers \\ % \CONTEXT-technician\\ % Whereeverstreet 5\\ % 7000 \TEX land % \stoplines} % \stopbuffer \def\Addresses{10} \showframe \starttext \dorecurse{\Addresses}{% \setlayer [Etiket] [preset=leftbottom,location={right,top},y=-3mm,x=-3mm] {\switchtobodyfont[10pt]\getbuffer[Adr\recurselevel]} \setlayer [Etiket] [preset=lefttop,location={right,bottom}] {\switchtobodyfont[5pt]\Logo} \placelayer[Etiket]} \stoptext --------------020709070603070100030900--