ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* left page / right page layout
@ 2009-02-11 15:39 Antoine Junod
  0 siblings, 0 replies; only message in thread
From: Antoine Junod @ 2009-02-11 15:39 UTC (permalink / raw)
  To: ntg-context

Dear list,

One more (last) problem regarding layout I can't resolve by myself:

I've got a little booklet (2 A5 pages on one A4 sheet). The outside
margins are colored in blue. I would like to color the left outside
margin in yellow and keep the right outside margin in blue.

I've read and tried to adapt the 'Alternative backgrounds' example on
the wiki without any success. When I try to use leftpage (or
rightpage) in \setupbackgrounds, the background of the whole left page
is colored.

Here is what I have right now:

Thanks a lot for your reply,
-AJ

\definepapersize[pca4][width=212mm,height=299mm]
\definepapersize[pca5][width=149.5mm, height=212mm]

\setuppapersize[pca5][pca4]
\setuparranging[2UP,rotated]
\setuppagenumbering
 [alternative=doublesided]

\definelayout
        [default]
        [leftmargin=0mm,rightmargin=25.5mm,
         topspace=0mm,backspace=10mm,
         width=115mm,height=middle]

\setuplayout[location=middle]
\setuplayout[default]

\setupbodyfont[sansserif,10pt]

\enableregime[utf]
\setupcolors[state=start]

\setupbackgrounds
        [text,header,footer] % with leftpage here, doesn't work
        [rightmargin]
        [background=color,backgroundcolor=blue]

\starttext
Hop
\page[yes]
foo
\page[yes]
bar
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-11 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11 15:39 left page / right page layout Antoine Junod

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