ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Kip Warner <kip@thevertigo.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Page Backgrounds
Date: Mon, 09 Jul 2012 17:28:05 -0700	[thread overview]
Message-ID: <1341880085.550.53.camel@kip-laptop> (raw)
In-Reply-To: <BF9C95FA-542D-4A48-86EA-3800581BA651@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 627 bytes --]

On Mon, 2012-07-09 at 10:06 +0200, Wolfgang Schuster wrote:
> \setupexternalfigures[directory=Makeup/Images]
> 
> \defineoverlay
>   [backgroundimage]
>   [{\ifnum\rawcountervalue[userpage]=1\relax
>       \overlayfigure{Cover}%
>     \else
>       \overlayfigure{Background}%
>     \fi}]
> 
> \setupbackgrounds[page][background=backgroundimage]
> 
> \starttext
> \dorecurse{4}{\input knuth\page}
> \stoptext
> 
> Wolfgang

Thanks Wolfgang. That did it. Although I did change userpage to
realpage.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2012-07-10  0:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09  2:47 Kip Warner
2012-07-09  7:45 ` Hans Hagen
2012-07-09  8:06 ` Wolfgang Schuster
2012-07-10  0:28   ` Kip Warner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-11-13 10:26 page backgrounds olivier Turlier
2007-11-13 15:52 ` Wolfgang Schuster
2007-11-13 18:12 ` Peter Rolf
2007-11-14 15:46   ` olivier Turlier
2003-11-17 15:11 Thomas A. Schmitz
2003-11-17 13:09 Thomas A. Schmitz
2003-11-17 14:03 ` Otared Kavian
2003-11-17 14:41   ` Patrick Gundlach
2003-11-17 14:43   ` Patrick Gundlach
2003-11-17 14:08 ` Patrick Gundlach
2003-11-03 21:05 reset \use[sub]path Hans Hagen
2003-11-15 21:36 ` page backgrounds Thomas A.Schmitz
2003-11-16 20:08   ` Thomas A.Schmitz
2003-11-17  9:59     ` Patrick Gundlach
2003-11-16 22:32   ` Patrick Gundlach

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=1341880085.550.53.camel@kip-laptop \
    --to=kip@thevertigo.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).