From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16529 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Layout definitions .. Date: Wed, 22 Sep 2004 23:34:01 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <4151EFC9.9020004@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1095925396 25226 80.91.229.6 (23 Sep 2004 07:43:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2004 07:43:16 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 23 09:43:11 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CAOFy-0005bI-00 for ; Thu, 23 Sep 2004 09:43:10 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B615712772; Thu, 23 Sep 2004 09:43:09 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30527-03-2; Thu, 23 Sep 2004 09:43:06 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8382512775; Thu, 23 Sep 2004 09:43:06 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D72F12772 for ; Thu, 23 Sep 2004 09:43:05 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30527-03 for ; Thu, 23 Sep 2004 09:43:04 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id EB86112788 for ; Thu, 23 Sep 2004 09:39:59 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i8N7dwrS012782 for ; Thu, 23 Sep 2004 09:39:58 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 915B21A4BC; Thu, 23 Sep 2004 09:39:54 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 2DF571A4BC for ; Thu, 23 Sep 2004 07:39:52 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on mailrelay01.solcon.nl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16529 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16529 Dirar BOUGATEF wrote: > 2. I would like to define a new layout that does not contain left and > right margins. > This layout is going to divide my page to 4 parts as a matrix of 2x2. > How can i do that ? > Is there anyway to identify each part of them in the same way as we > identify the left and right margins within the default layout ? > Is this in relation with margin and opposite blocks ? depends on what you want to do; an option is to make A6 pages and to impose the pages; another option is to use layers: \setuplayout [page] \definelayer[lt] \setuplayer[lt][width=.5\textwidth,height=.5\textheight] \definelayer[lb] \setuplayer[lb][width=.5\textwidth,height=.5\textheight] \definelayer[rt] \setuplayer[rt][width=.5\textwidth,height=.5\textheight] \definelayer[rb] \setuplayer[rb][width=.5\textwidth,height=.5\textheight] \definelayer[pp] \setuplayer[pp][width=\textwidth,height=\textheight] \startsetups buildpage \setlayer[pp][preset=lefttop] {\tightlayer[lt]} \setlayer[pp][preset=righttop] {\tightlayer[rt]} \setlayer[pp][preset=leftbottom] {\tightlayer[lb]} \setlayer[pp][preset=rightbottom]{\tightlayer[rb]} \startstandardmakeup \tightlayer[pp] \stopstandardmakeup \stopsetups \starttext \setlayerframed[lt][preset=middle,rotation=45]{welcome} \setlayerframed[rt][preset=middle,rotation=315]{to} \setlayerframed[rb][preset=middle,rotation=225]{context's} \setlayerframed[lb][preset=middle,rotation=135]{layers} \setups[buildpage] \stoptext (something for the wiki archive) Hans