From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37075 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Semi-transparent banners for a cover. Date: Sun, 28 Oct 2007 14:02:00 +0100 Message-ID: <20071028140200.3f669998.schuster.wolfgang@googlemail.com> References: <200710271751.15196.john@wexfordpress.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1193578538 3832 80.91.229.12 (28 Oct 2007 13:35:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2007 13:35:38 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 28 14:35:39 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Im8Ig-0001Ag-SV for gctc-ntg-context-518@m.gmane.org; Sun, 28 Oct 2007 14:35:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8A7D41FBF6; Sun, 28 Oct 2007 14:35:23 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18812-01-23; Sun, 28 Oct 2007 14:35:23 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 424E31FB8F; Sun, 28 Oct 2007 14:02:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 179CF1FB8F for ; Sun, 28 Oct 2007 14:02:18 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12860-01-7 for ; Sun, 28 Oct 2007 14:02:07 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by ronja.ntg.nl (Postfix) with ESMTP id 230331FB77 for ; Sun, 28 Oct 2007 14:02:07 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id h2so873138ugf for ; Sun, 28 Oct 2007 06:02:06 -0700 (PDT) Original-Received: by 10.67.29.12 with SMTP id g12mr1294059ugj.1193576526549; Sun, 28 Oct 2007 06:02:06 -0700 (PDT) Original-Received: from rover ( [62.180.205.38]) by mx.google.com with ESMTPS id y37sm2891808iky.2007.10.28.06.02.03 (version=SSLv3 cipher=OTHER); Sun, 28 Oct 2007 06:02:04 -0700 (PDT) In-Reply-To: <200710271751.15196.john@wexfordpress.com> X-Mailer: Sylpheed 2.4.7 (GTK+ 2.10.14; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37075 Archived-At: On Sat, 27 Oct 2007 17:51:14 -0400 John Culleton 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 ___________________________________________________________________________________