ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: Semi-transparent banners for a cover.
Date: Sun, 28 Oct 2007 14:02:00 +0100	[thread overview]
Message-ID: <20071028140200.3f669998.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <200710271751.15196.john@wexfordpress.com>

On Sat, 27 Oct 2007 17:51:14 -0400
John Culleton <john@wexfordpress.com> wrote:

> A project specifies that for the cover of a brochure there be a photograph as 
> the background (doable in Context), and semi-transparent rectangles across 
> the page highlighting the various strings of text. The rectangles darken but 
> do not completely block out the underlying illustration.   It is a layer 
> cake, a photo, with semi-transparent rectangles laid across it, and type 
> within the rectangles. 
> 
> This is a job more easily done in Gimp etc. but my question is, can it be done 
> in Context at all?  How do I create the semi-transparent elements?  

Hi John,

you can define a color for the transparent background of the text and
place it with the cover text at the background.

\setupcolors[state=start]
\setupexternalfigures[location=global]

\definecolor[coverred][r=1,a=1,t=.5]

\defineoverlay[coverimage][\overlayfigure{mill}]

\definelayer
  [covertitle]
  [width=\paperwidth,
   height=\paperheight]

\setlayerframed
  [covertitle]
  [hoffset=0cm,
   voffset=8cm]
  [frame=off,
   width=\paperwidth,
   height=6cm,
   background=color,
   backgroundcolor=coverred,
   align={middle,lohi}]
  {\tfd Cover Text}

\starttext

\setupbackgrounds[page][background={coverimage,covertitle}]

\startstandardmakeup
\stopstandardmakeup

\stoptext

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________


      parent reply	other threads:[~2007-10-28 13:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-27 21:51 John Culleton
2007-10-28 11:32 ` Peter Rolf
2007-10-28 13:02 ` Wolfgang Schuster [this message]

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=20071028140200.3f669998.schuster.wolfgang@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).