From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62181 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Two layer in a document Date: Thu, 30 Sep 2010 19:42:34 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285868598 13813 80.91.229.12 (30 Sep 2010 17:43:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2010 17:43:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 30 19:43:16 2010 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.69) (envelope-from ) id 1P1N9t-0006SR-Ud for gctc-ntg-context-518@m.gmane.org; Thu, 30 Sep 2010 19:43:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3847BCA721; Thu, 30 Sep 2010 19:43:05 +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 M+wkyxYyn02A; Thu, 30 Sep 2010 19:42:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BE0F8CA6EA; Thu, 30 Sep 2010 19:42:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 370E0CA6EA for ; Thu, 30 Sep 2010 19:42:52 +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 zinrfwZCiYkw for ; Thu, 30 Sep 2010 19:42:40 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id B52AECA69A for ; Thu, 30 Sep 2010 19:42:40 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8UHgdxi004878 for ; Thu, 30 Sep 2010 19:42:40 +0200 Original-Received: by fxm10 with SMTP id 10so2068664fxm.14 for ; Thu, 30 Sep 2010 10:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=VbdkFnzIArpXQqZTiqOXc+HXYfYJV8e7jx+VnRu3D34=; b=XxejnAYxErf+8+oqmha+OrnS9LnJoGJHugm/I5C/iTzytqzFs87aFzFkjQKSZA732r pBPhVpyVoyMswGpvD+d/vbGCzp6A26CFcEXG2MhYCiar8Z/HZho0nOgjzIxv12LzI2ut cHseyVPuWO9YjMx2F2QsaIMilp8mS8JIRBUzg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=nrQInB3CIBVkeM/ZI26VlkP+ZEdDh9exWEF9NHHWXg0EJHcEQDW10veGpLgWIYx9Lk X+rZoMeLOvwVCgdC88csXkcrtUOmLKwXs5a3bq78VnrLbR8MOWADawbjRv/QcMjVQ0H8 lcxTmcMemxCSA7yDmdFHMqTZast+5KoXy4aCA= Original-Received: by 10.223.116.68 with SMTP id l4mr4203719faq.98.1285868559588; Thu, 30 Sep 2010 10:42:39 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B293C28.dip.t-dialin.net [91.41.60.40]) by mx.google.com with ESMTPS id 14sm79143fav.2.2010.09.30.10.42.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Sep 2010 10:42:37 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bDd5GDwJ - 60d940ce4b11 - 20100930 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:62181 Archived-At: Am 30.09.2010 um 11:49 schrieb Daniel Grycman: > Hi list, > > I am typesetting a template for internal documentation. In the header of > the document I want to put two different figure. One on the left side and > the other on the right side. When I compile the source the output shows > only the figure on the left side. > > \enableregime[utf-8] > \mainlanguage[de] > \setupcolors [state=start] > \setupoutput[pdftex] > \setuppapersize[A4][A4] > \usemodule [simplefonts,r,tikz,edtsnc,chart] > \setmainfont [rubscalatz] > \setsansfont [rubflama] > \setuphead [chapter][number=no, style=bold, textcommand=\ss] > \setuphead [section][number=no, style=bold, textcommand=\ss] > \setuphead [subsection][number=no] > \setuphead [subsubsection][number=no] > \setuplayout > [top=0cm,rightmargin=2.3cm,footer=1.0cm,header=5cm,topspace=0mm,height=29.9 > 577cm,width=16.25cm,leftmargindistance=0cm,rightmargindistance=0cm] > > \setupbackgrounds[footer][background=color,backgroundcolor=gray] > \setupbackgrounds[text][rightmargin][background=color,backgroundcolor=gray] > \setupbackgrounds[header][rightmargin][background=color,backgroundcolor=gra > y] None of these settings is necessary for a minimal example, leave them out next time. > \definelayer[logo][width=\paperwidth,height=\paperheight,state=repeat] > \setupbackgrounds[page][righttop][background={foreground,logo}] > \setlayer[logo][preset=righttop,hoffset=1cm,state=start] > {\externalfigure[label][height=4cm,3.5cm]} > \definelayer[marke][width=6.5cm,height=0.3cm,state=repeat] > \setupbackgrounds[page][lefttop][background={foreground,marke}] > \setlayer[marke][preset=lefttop,hoffset=1.3cm,voffset=1.4cm,state=repeat] > {\externalfigure[wortmarke][height=0.3cm,width=6.5cm]} One layer is enough for both pictures, try also to make it more readable next time. \definelayer[logo][width=\paperwidth,height=\paperheight,state=repeat] \setupbackgrounds[page][background={foreground,logo}] \setlayer [logo] [preset=righttop, hoffset=1cm] {\externalfigure[label][height=4cm,3.5cm]} \setlayer [logo] [preset=lefttop, hoffset=1.3cm, voffset=1.4cm] {\externalfigure[wortmarke][height=0.3cm,width=6.5cm]} \starttext \dorecurse{20}{\input knuth\par} \stoptext Wolfgang ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________