From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52152 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: back to Context Date: Sun, 09 Aug 2009 22:30:20 +0200 Message-ID: <4A7F31DC.30704@wxs.nl> References: <297ee2eb0908080749h336dc553m4127f6b17858a0a2@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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249849861 1123 80.91.229.12 (9 Aug 2009 20:31:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Aug 2009 20:31:01 +0000 (UTC) To: ciro@kavyata.com, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 09 22:30:49 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 1MaF2W-0007qv-Eb for gctc-ntg-context-518@m.gmane.org; Sun, 09 Aug 2009 22:30:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9C70AC9A81; Sun, 9 Aug 2009 22:30:46 +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 WH-You6vTb5L; Sun, 9 Aug 2009 22:30:41 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D246EC9A70; Sun, 9 Aug 2009 22:30:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B5BF7C9A70 for ; Sun, 9 Aug 2009 22:30:35 +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 3XRyk3wbOerq for ; Sun, 9 Aug 2009 22:30:21 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 30D9DC9A63 for ; Sun, 9 Aug 2009 22:30:21 +0200 (CEST) Original-Received: from [10.100.1.107] (unverified [10.100.1.107]) by controller-1 (SurgeMail 3.9e) with ESMTP id 32399-1840426 for multiple; Sun, 09 Aug 2009 22:30:21 +0200 User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <297ee2eb0908080749h336dc553m4127f6b17858a0a2@mail.gmail.com> X-Originating-IP: 10.100.1.107 X-Authenticated-User: hagen@controller-1 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:52152 Archived-At: Ciro Soto wrote: > I started a small project of ~100 pages and tried to do it with > Scribus since it required pictures, inserts, etc. > I found that Scribus was not going to be able to handle the task so > easily. So I am back to Context. > > Here is my task: in the right pages, I want the text (~50 pages of > text) and in the left pages I would like > a picture and a quotation coming from the right page (this quotation I > am willing to do manually). > My question is, how do I make one \setuplayout for the odd pages, and > another for the even pages? > I may use pictures that bleed over the upper left corner of the left page. > > I used the option \placefigure [opposite], which puts the picture in > the opposite page, very nice. However, > I have two problems with it: it may put the picture in the right page > (opposite to the text in the left page), > and I can't make the picture bleed because my \setuplayout is for both pages. > > I can work with what I have done so far, but I wonder if my task is > possible with the current Context macros. a starting point ... \setuppagenumbering[alternative=doublesided] \setuplayout[odd] [width=5cm,state=start] \setuplayout[even][width=15cm,state=start] \definelayer[whatever][doublesided=yes] \setupbackgrounds[text][background=whatever] \appendtoks\ifodd\realpageno\else\null\page\fi\to\everyafteroutput \starttext \dorecurse{10}{\input tufte \par \setlayer[whatever][left][preset=lefttop]{left}} \stoptext (the appendtoks is somewhat hacky, maybe we should have it as built in feature) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________