ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Khaled Hosny <khaledhosny@eglug.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Background for current page only
Date: Sat, 4 Apr 2009 02:08:01 +0200	[thread overview]
Message-ID: <20090404000801.GC4586@khaled-laptop> (raw)
In-Reply-To: <49D67D4B.5010908@wxs.nl>


[-- Attachment #1.1.1: Type: text/plain, Size: 1138 bytes --]

On Fri, Apr 03, 2009 at 11:19:07PM +0200, Hans Hagen wrote:
> Khaled Hosny wrote:
>> How to set a background for the current page only? \setupbackgrounds
>> sets backgrounds for all pages, I don't seem to find a way to turn it
>> on/off for certain pages (\setupbackgrounds[state=start/stop] has no
>> effect).
>
> state=start|stop|repeat
>
> by default the one for the page is repeat
>
> \setupbackgrounds[page][state=...]
> \setupbackgrounds[leftpage][state=...]
> \setupbackgrounds[rightpage][state=...]
>
> etc

I think I missing something here, in the following example I expect the
2nd page (and any subsequent page) not to have a background, but that is
not what I get. I tried every combination of state=start|stop|repeat,
but nothing seem to change at all.

\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=lightgray]

\starttext
\setupbackgrounds[page][state=start]
\input tufte
\page
\setupbackgrounds[page][state=stop]
\input tufte
\stoptext

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer

[-- Attachment #1.1.2: bck.pdf --]
[-- Type: application/pdf, Size: 29624 bytes --]

[-- Attachment #1.1.3: bck.tex --]
[-- Type: text/x-tex, Size: 234 bytes --]

\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=lightgray,state=repeat]

\starttext
\setupbackgrounds[page][state=start]
\input tufte
\page
\setupbackgrounds[page][state=stop]
\input tufte
\stoptext

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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-04-04  0:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-03 20:54 Khaled Hosny
2009-04-03 21:19 ` Hans Hagen
2009-04-04  0:08   ` Khaled Hosny [this message]
2009-04-04  8:45 ` Wolfgang Schuster
2009-04-04 14:41   ` Khaled Hosny

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=20090404000801.GC4586@khaled-laptop \
    --to=khaledhosny@eglug.org \
    --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).