From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42245 Path: news.gmane.org!not-for-mail From: Uwe Koloska Newsgroups: gmane.comp.tex.context Subject: Re: No output for layers Date: Wed, 9 Jul 2008 01:09:19 +0200 Message-ID: <200807090109.19398.ml@koloro.de> References: <6BC0894C-843D-48E9-B867-BFE371397A84@mpq.mpg.de> <115224fb0807080528r4b33dc6i7040324cafd52b63@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215558674 9424 80.91.229.12 (8 Jul 2008 23:11:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2008 23:11:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 09 01:12:00 2008 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 1KGMLo-0006kS-BJ for gctc-ntg-context-518@m.gmane.org; Wed, 09 Jul 2008 01:12:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 38C481FD7E; Wed, 9 Jul 2008 01:11:05 +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 17624-05-22; Wed, 9 Jul 2008 01:10:06 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6A2801FD59; Wed, 9 Jul 2008 01:10:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8CA871FD59 for ; Wed, 9 Jul 2008 01:10:03 +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 23575-03-2 for ; Wed, 9 Jul 2008 01:09:21 +0200 (CEST) Original-Received: from dd16232.kasserver.com (dd16232.kasserver.com [85.13.137.72]) by ronja.ntg.nl (Postfix) with ESMTP id DF29D1FCE3 for ; Wed, 9 Jul 2008 01:09:20 +0200 (CEST) Original-Received: from bilbo.auenland (dslb-092-078-050-011.pools.arcor-ip.net [92.78.50.11]) by dd16232.kasserver.com (Postfix) with ESMTP id 666801875A11C for ; Wed, 9 Jul 2008 01:09:27 +0200 (CEST) Original-Received: from gandalf.auenland (gandalf.auenland [192.168.0.90]) by bilbo.auenland (Postfix) with ESMTP id D317513AEFD for ; Wed, 9 Jul 2008 01:00:58 +0200 (CEST) User-Agent: KMail/1.9.9 In-Reply-To: <115224fb0807080528r4b33dc6i7040324cafd52b63@mail.gmail.com> Content-Disposition: inline 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:42245 Archived-At: Hello, Am Dienstag, 8. Juli 2008 schrieb Wolfgang Schuster: > On Tue, Jul 8, 2008 at 2:17 PM, Oliver Buerschaper > > --- > > \definelayer > > [mylayer] > > [x=78mm, > > y=3mm, > > height=43.5mm, > > width=128mm] > > > > \starttext > > > > \setlayer[mylayer][preset=middle]{Hello world!} > > > > \stoptext > > --- The layer is now only defined and has some content, but is not related to any page element. So you has to define it as the background of some pageelement: \setupbackgrounds[page][background=mylayer] or you have to "flush" it (but I don't know what this is supposed to do, maybe it's just another way of calling the OTR -- see below) \flushlayer[mylayer] > You have to invoke the OTR. OTR = Output Routine Without invoking the OTR nothing is generated. (but you can leave out \starttext \stoptext -- why?) > You could use > > \startstandardmakeup > \stopstandardmakeup > > or > > \page[empty] Both of these produce an empty page (without pagenumber) and the layer at the intended position. > or > > \dontleavehmode > > or > > \null > > or These two variants produce pages with the standard layout (in this easy setup this consists only of the page number at the top). The last alternative I know of: instead of defining the layer as background for the page, you can just call \flushlayer[mylayer] But this positions the layer relative to the textarea (and not the pagearea) and produces a standard layout with pagenumber, too, if you don't use standardmakeup. This has helped, to make some concepts regarding layers clear to me;-) Regards Uwe ___________________________________________________________________________________ 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 ___________________________________________________________________________________