From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46797 Path: news.gmane.org!not-for-mail From: "Bart C. Wise" Newsgroups: gmane.comp.tex.context Subject: Re: Framing the text area of a part page w/ tikz/pgf. Date: Wed, 14 Jan 2009 12:35:34 -0700 Message-ID: <200901141235.34223.bntgcontext@wiseguysweb.com> References: <200901141053.22707.bntgcontext@wiseguysweb.com> <200901141142.24911.bntgcontext@wiseguysweb.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2134888400==" X-Trace: ger.gmane.org 1231961856 5983 80.91.229.12 (14 Jan 2009 19:37:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2009 19:37:36 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 14 20:38:47 2009 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 1LNBZX-0004DK-Nv for gctc-ntg-context-518@m.gmane.org; Wed, 14 Jan 2009 20:38:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F6221FDF2; Wed, 14 Jan 2009 20:37:21 +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 03991-02-3; Wed, 14 Jan 2009 20:36:21 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 406361FDE7; Wed, 14 Jan 2009 20:36:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC77D1FDE7 for ; Wed, 14 Jan 2009 20:36: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 03991-02-2 for ; Wed, 14 Jan 2009 20:35:43 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id EA1311FDDA for ; Wed, 14 Jan 2009 20:35:41 +0100 (CET) Original-Received: from out02.mta.xmission.com (out02.mta.xmission.com [166.70.13.232]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0EJZeBT000521 for ; Wed, 14 Jan 2009 20:35:40 +0100 Original-Received: from mx04.mta.xmission.com ([166.70.13.214]) by out02.mta.xmission.com with esmtp (Exim 4.62) (envelope-from ) id 1LNBWc-0002b7-Rx for ntg-context@ntg.nl; Wed, 14 Jan 2009 12:35:38 -0700 Original-Received: from bwise1.provo.novell.com ([137.65.171.141] helo=bwise1.localnet) by mx04.mta.xmission.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1LNBj9-0001fo-2R for ntg-context@ntg.nl; Wed, 14 Jan 2009 12:48:35 -0700 User-Agent: KMail/1.10.3 (Linux/2.6.27-11-generic; KDE/4.1.4; x86_64; ; ) In-Reply-To: X-XM-SPF: eid=; ; ; mid=; ; ; hst=mx04.mta.xmission.com; ; ; ip=137.65.171.141; ; ; frm=bntgcontext@wiseguysweb.com; ; ; spf=none X-SA-Exim-Connect-IP: 137.65.171.141 X-SA-Exim-Rcpt-To: ntg-context@ntg.nl X-SA-Exim-Mail-From: bntgcontext@wiseguysweb.com X-Spam-DCC: XMission; sa03 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;ntg-context@ntg.nl X-Spam-Relay-Country: X-SA-Exim-Version: 4.2.1 (built Thu, 07 Dec 2006 04:40:56 +0000) X-SA-Exim-Scanned: Yes (on mx04.mta.xmission.com) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=166.70.13.232; country=US; region=UT; city=Salt Lake City; latitude=40.7242; longitude=-111.8787; metrocode=770; areacode=801; http://maps.google.com/maps?q=40.7242,-111.8787&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 165417137 - fd56e2b1a275 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46797 Archived-At: --===============2134888400== Content-Type: multipart/alternative; boundary="Boundary-00=_G6jbJ7cYcobWjsw" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-00=_G6jbJ7cYcobWjsw Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit On Wednesday 14 January 2009 12:03:51 pm Wolfgang Schuster wrote: > Am 14.01.2009 um 19:42 schrieb Bart C. Wise: > > Ultimately I want to load an image and have it framed for the > > background on the part page. I like the ability that tikz gives me > > to adjust the opacity of the image, which is why I tried to find a > > solution using tikz. > > So I can find a solution without tikz, but is there one that will > > work with tikz? > > How about this? > > \setupexternalfigures[location={local,global,default}] > > \setupcolors[state=start] > > \definecolor[partwhite][s=1,t=.8,a=1] > > \defineoverlay[partimage][\overlayfigure{mill}] > > \defineframedtext > [partframed] > [width=\textwidth, > height=\textheight, > rulethickness=5pt, > background={partimage,color}, > backgroundcolor=partwhite, > top=\vfill, > bottom=\vfill\vfill] > > \setuphead > [part] > [before=\startpartframed, > after=\stoppartframed, > align=middle, > footer=high, > header=high, > placehead=yes] > > \starttext > \part{This is part one} > \stoptext > Wolfgang, Thanks! That one works. And much more elegant than what I was developing. Just so I understand: "background={partimage,color}" : This creates the background from both the image and the backgroundcolor, correct? What does the "s=1" and the "a=1" do in defining the color partwhite? I can't find anything on the web. Bart --Boundary-00=_G6jbJ7cYcobWjsw Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit

On Wednesday 14 January 2009 12:03:51 pm Wolfgang Schuster wrote:

> Am 14.01.2009 um 19:42 schrieb Bart C. Wise:

> > Ultimately I want to load an image and have it framed for the

> > background on the part page. I like the ability that tikz gives me

> > to adjust the opacity of the image, which is why I tried to find a

> > solution using tikz.

> > So I can find a solution without tikz, but is there one that will

> > work with tikz?

>

> How about this?

>

> \setupexternalfigures[location={local,global,default}]

>

> \setupcolors[state=start]

>

> \definecolor[partwhite][s=1,t=.8,a=1]

>

> \defineoverlay[partimage][\overlayfigure{mill}]

>

> \defineframedtext

> [partframed]

> [width=\textwidth,

> height=\textheight,

> rulethickness=5pt,

> background={partimage,color},

> backgroundcolor=partwhite,

> top=\vfill,

> bottom=\vfill\vfill]

>

> \setuphead

> [part]

> [before=\startpartframed,

> after=\stoppartframed,

> align=middle,

> footer=high,

> header=high,

> placehead=yes]

>

> \starttext

> \part{This is part one}

> \stoptext

>

Wolfgang,

Thanks! That one works. And much more elegant than what I was developing.

Just so I understand:

"background={partimage,color}" : This creates the background from both the image and the backgroundcolor, correct?

What does the "s=1" and the "a=1" do in defining the color partwhite? I can't find anything on the web.

Bart

--Boundary-00=_G6jbJ7cYcobWjsw-- --===============2134888400== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============2134888400==--