ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* back to Context
@ 2009-08-08 14:49 Ciro Soto
  2009-08-09 20:30 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Ciro Soto @ 2009-08-08 14:49 UTC (permalink / raw)
  To: context

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.

thank you
Ciro

-- Links of your interest:
http://www-personal.engin.umd.umich.edu/~cirosoto/
http://www.TheGuitarMakerExploration.com
https://www.createspace.com/3392936
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: back to Context
  2009-08-08 14:49 back to Context Ciro Soto
@ 2009-08-09 20:30 ` Hans Hagen
  2009-08-09 21:11   ` Ciro Soto
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2009-08-09 20:30 UTC (permalink / raw)
  To: ciro, mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: back to Context
  2009-08-09 20:30 ` Hans Hagen
@ 2009-08-09 21:11   ` Ciro Soto
  0 siblings, 0 replies; 3+ messages in thread
From: Ciro Soto @ 2009-08-09 21:11 UTC (permalink / raw)
  To: context

Thank you, Hans.
I would had never figured out that combination of commands.
I'll play with that starting point.

Ciro


-- Links of your interest:
http://www-personal.engin.umd.umich.edu/~cirosoto/
http://www.TheGuitarMakerExploration.com
https://www.createspace.com/3392936



On Sun, Aug 9, 2009 at 4:30 PM, Hans Hagen<pragma@wxs.nl> wrote:
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-09 21:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-08 14:49 back to Context Ciro Soto
2009-08-09 20:30 ` Hans Hagen
2009-08-09 21:11   ` Ciro Soto

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).