From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82505 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: Makeup layout Date: Wed, 15 May 2013 13:57:50 +0200 Message-ID: References: <5192FA7D.6000502@gmail.com> <8BFB011E-2156-40B4-B794-24E746811A95@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1368619118 17511 80.91.229.3 (15 May 2013 11:58:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 May 2013 11:58:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 15 13:58:38 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UcaLt-0007kG-W3 for gctc-ntg-context-518@m.gmane.org; Wed, 15 May 2013 13:58:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0E81E101E7; Wed, 15 May 2013 13:58:37 +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 VhpVthnNmCyL; Wed, 15 May 2013 13:58:35 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0E675101E4; Wed, 15 May 2013 13:58:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBF9F101E4 for ; Wed, 15 May 2013 13:58: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 Q44HY+sZD+pa for ; Wed, 15 May 2013 13:58:32 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 8E242101E0 for ; Wed, 15 May 2013 13:58:22 +0200 (CEST) Original-Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4FBwL0v022006 for ; Wed, 15 May 2013 13:58:22 +0200 Original-Received: by mail-ee0-f44.google.com with SMTP id b57so990999eek.17 for ; Wed, 15 May 2013 04:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=yNu9lY63DD/uJbRvnoqulCGF1mqXD8QY9sYfiaBocg4=; b=r+GHGi/Q32+d9RK9rxzqVow41COQt54LYu4FuoDdMDR5b/JdwoscCaJhYaW4Q6Rgqw STa3OXaEtZOFycKD/Sk55ao/cXowHQodR90UeMZHVmhvO0l34VZAPfPfMDRDsaNeOQbW Tpxppt58ayWKJL2Cyp+RyKbG+T3Y1k9w0AUqozBnpDmD5NMsW4IfPWF8CWpQkMYg/g06 OhCzlvgeplElLaZ8SCp8WWFHIbKHkPh10Aw3L0CxzcIKH6keYbA4VH/+aFoEBpe56TOp ZZQ7B92N98S7AieHBiZLZLMecHrVW3GlHDVTwyPGAqfFlQkooTSUMT503O7JifX0bntW WpWg== X-Received: by 10.14.3.137 with SMTP id 9mr103389027eeh.0.1368619101792; Wed, 15 May 2013 04:58:21 -0700 (PDT) Original-Received: by 10.15.110.3 with HTTP; Wed, 15 May 2013 04:57:50 -0700 (PDT) In-Reply-To: <8BFB011E-2156-40B4-B794-24E746811A95@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.44; 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: 03JAbWmu1 - c08192a0accb - 20130515 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:82505 Archived-At: Hi Andrew, Andrew wrote: > I have heard that layers can be used. But there > is no section on layers in the current reference > manual. Where does one find information on this > aspect of ConTeXt? You are right that there is no complete, from-the-ground-up, description and explanation of the layers mechanism. A reasonably good text, however, is in the MetaFun manual [1,2]: section 5.3 (Positional graphics > More layers). The "Pseudo columns" (pdfpages 11-13) section of the "It's in the details" manual [13 is shorter and covers only a few specific use cases, but it's a nice little start and has some information that the MetaFun manual does not have. The MWE below is based mainly on that text. NB: I rarely use layers, so the MWE may not reflect best practices. [1] print version: http://www.pragma-ade.com/general/manuals/metafun-p.pdf [2] screen version: http://www.pragma-ade.com/general/manuals/metafun-s.pdf [3] http://www.pragma-ade.com/general/manuals/details.pdf I hope this will help you on your way a bit! Best wishes, Sietse \setuppapersize[A6] \setuplayout [columns=3, % add a horizontal grid, 3 equal columns columndistance=12pt,]% 12 pt(?) distance between them % The layer `textlayer` will be the background % of the `text` typesetting area. \definelayer[textlayer] \setupbackgrounds [text] [background=textlayer] \showgrid % make the mechanism visible \starttext % Start the title page, sans page number etc. \startstandardmakeup % Using column and line positions the left end of the box's % baseline \setlayer [textlayer] [column=3,line=10,location=grid] {\ruledvtop {\hsize\layoutcolumnwidth \definedfont[Regular sa 2]nitty-\par gritty}} % Using x and y offsets the top left of the box from the top % left corner \setlayer [textlayer] [x=1cm, y=1cm] {\blackrule[width=1cm, height=1cm]} \setlayer [textlayer] [x=1cm, line=10] {\ruledvtop {\hsize\layoutcolumnwidth \definedfont[Regular sa 2]This \par is}} \stopstandardmakeup \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________