From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52080 Path: news.gmane.org!not-for-mail From: Derek CORDEIRO Newsgroups: gmane.comp.tex.context Subject: Layers don't repeat in Mk IV Date: Tue, 4 Aug 2009 22:22:31 +0530 Message-ID: <33c64e670908040952o1eff5e3cj4196dc28c154d30b@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1938288970==" X-Trace: ger.gmane.org 1249404804 2864 80.91.229.12 (4 Aug 2009 16:53:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 16:53:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 04 18:53:16 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1MYNGF-0007n0-DC for gctc-ntg-context-518@m.gmane.org; Tue, 04 Aug 2009 18:53:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AE32AC9A63; Tue, 4 Aug 2009 18:53:16 +0200 (CEST) Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mXYO69T5FkEG; Tue, 4 Aug 2009 18:52:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3CABCC9A7C; Tue, 4 Aug 2009 18:52:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F1F45C9A7C for ; Tue, 4 Aug 2009 18:52:54 +0200 (CEST) Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ya9py4GumX8l for ; Tue, 4 Aug 2009 18:52:34 +0200 (CEST) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.251]) by balder.ntg.nl (Postfix) with ESMTP id 7818FC9A63 for ; Tue, 4 Aug 2009 18:52:34 +0200 (CEST) Original-Received: by rv-out-0708.google.com with SMTP id f25so1288848rvb.14 for ; Tue, 04 Aug 2009 09:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=dab2+MbBq7KO7r9nVvPFJGtvmOV7ori5+xGn2DcpzEg=; b=IXq5NIDKfBpqoP7Dc1Ha7dNdZWWNqlt8mO4Lbs+2twaVMicpjvLZn+6hnmoS8PkTi+ zMNFv03BAJw4+WmGcbMLrFfZADfGJedZeyCxCGRikLAMqEmAMKoejCJk9WpNNBzZy4KL uW62g7DqtiuDobwC4V38/lotERV0N5ltG6zNo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IvZxCex/n0UydQRnwbYBGQKqZE4onCyuVUUfdH0uAtdbUXP0MoTzkNsTpR86ZuIFAw Z0ifYwkTzGuOknT/t3gzT+3GzSVHEZEMtFLxO9ZKnXuL9XMZaWeNmh4MtTaRDAh9SnoG 5Szs2LPfkE2oO1Eqe5DfVcqOIQ/srGGz6C3rs= Original-Received: by 10.140.141.21 with SMTP id o21mr5558698rvd.92.1249404751045; Tue, 04 Aug 2009 09:52:31 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:52080 Archived-At: --===============1938288970== Content-Type: multipart/alternative; boundary=000e0cd16eb05de47e047053b6d6 --000e0cd16eb05de47e047053b6d6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I've been trying to use layers for a simple logo that repeats on all pages. Something along the lines of the code below: \definelayer[mybg][x=0mm, y=0mm,width=\paperwidth, height=\paperheight,repeat=yes] \setlayer [mybg] [hoffset=1cm, voffset=1cm] {\framed[frame=on, width=3cm, height=2cm]{\externalfigure[cow][width=1cm] }} \setupbackgrounds[page][background=mybg] \starttext \dorecurse{6}{\input tufte\par} \stoptext It works as expected using Mk II but does not work under Mk IV: The layer appears only on the first page. Please Help, Derek --000e0cd16eb05de47e047053b6d6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I've been trying to use layers for a simple logo that repeats on all pa= ges. Something along the lines of the code below:

\definelayer[mybg]= [x=3D0mm, y=3D0mm,width=3D\paperwidth, height=3D\paperheight,repeat=3Dyes]<= br>\setlayer=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [mybg]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 [hoffset=3D1cm, voffset=3D1cm]
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {\framed= [frame=3Don, width=3D3cm, height=3D2cm]{\externalfigure[cow][width=3D1cm]}}
\setupbackgrounds[page][background=3Dmybg]

\starttext
\do= recurse{6}{\input tufte\par}
\stoptext

It works as expected using Mk II but does not work under M= k IV: The layer appears only on the first page.

Please= Help,
Derek
--000e0cd16eb05de47e047053b6d6-- --===============1938288970== 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 ___________________________________________________________________________________ --===============1938288970==--