ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ciro@kavyata.com, mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: back to Context
Date: Sun, 09 Aug 2009 22:30:20 +0200	[thread overview]
Message-ID: <4A7F31DC.30704@wxs.nl> (raw)
In-Reply-To: <297ee2eb0908080749h336dc553m4127f6b17858a0a2@mail.gmail.com>

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
___________________________________________________________________________________


  reply	other threads:[~2009-08-09 20:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-08 14:49 Ciro Soto
2009-08-09 20:30 ` Hans Hagen [this message]
2009-08-09 21:11   ` Ciro Soto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A7F31DC.30704@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ciro@kavyata.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).