ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: context example source
Date: Thu, 28 Oct 1999 09:35:54 +0100	[thread overview]
Message-ID: <38180AEA.AE37185E@wxs.nl> (raw)
In-Reply-To: <XFMail.991028083111.mlapsley@sthelier.sghms.ac.uk>

M Lapsley wrote:

> Sorry to bother you again, but I cannot work out how to import a graphic as a
> background:  I want to use a home made gradient.
> 
> Is this possible?

Sure, 

\defineoverlay
  [somename]
  [{\externalfigure
      [somefile]
      [width=\overlaywidth,
       height=\overlayheight]}]

\setupbackgrounds[page][background=somename]

You can have many of them, actually in each area ([text][text] and so
on), also stacked: 

  background={somename,nextpage}

with \defineoverlay[nextpage][\overlaybutton{nextpage}]

I think I'll make a \overlayfigure{name} too that defaults to the
width/height. 

(currently I'm playing with foregrounds too, which is needed for
advanced graphics, spanning overlays.)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


       reply	other threads:[~1999-10-28  8:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <XFMail.991028083111.mlapsley@sthelier.sghms.ac.uk>
1999-10-28  8:35 ` Hans Hagen [this message]
     [not found] <s814ab7f.033@info_server>
1999-10-25 23:04 ` Hans Hagen
     [not found] <XFMail.991025152559.mlapsley@sthelier.sghms.ac.uk>
1999-10-25 15:46 ` Hans Hagen

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=38180AEA.AE37185E@wxs.nl \
    --to=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).