From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46798 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Framing the text area of a part page w/ tikz/pgf. Date: Wed, 14 Jan 2009 20:47:13 +0100 Message-ID: References: <200901141053.22707.bntgcontext@wiseguysweb.com> <200901141142.24911.bntgcontext@wiseguysweb.com> <200901141235.34223.bntgcontext@wiseguysweb.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231962692 9212 80.91.229.12 (14 Jan 2009 19:51:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2009 19:51:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 14 20:52:44 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 1LNBmv-0001xV-MV for gctc-ntg-context-518@m.gmane.org; Wed, 14 Jan 2009 20:52:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 588231FDD2; Wed, 14 Jan 2009 20:51:11 +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 11324-02; Wed, 14 Jan 2009 20:51:11 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1C1A51FDD5; Wed, 14 Jan 2009 20:48:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3113C1FDD5 for ; Wed, 14 Jan 2009 20:48:04 +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 06379-02-2 for ; Wed, 14 Jan 2009 20:47:24 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id 26DA31FDD2 for ; Wed, 14 Jan 2009 20:47:24 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0EJlNA0014545 for ; Wed, 14 Jan 2009 20:47:23 +0100 Original-Received: by fg-out-1718.google.com with SMTP id 19so370378fgg.8 for ; Wed, 14 Jan 2009 11:47:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:to:in-reply-to :content-type:content-transfer-encoding:mime-version:subject:date :references:x-mailer:from; bh=fU10pRQR8/4e7j2Urn0k/X9lGb3f7RxJoz9zpHumZLM=; b=R0/z8IGFWA2G7wxGEPG86iEbWiPq89MSC8jGYqiJPnv4c9gRi+m/U9E4uq2JMZqRGv J8xWwuyScQ+UudIldjBaDkatCIgisnw/AdrkMAmu1vvDXHnIr3XYdzxzlzpFa9qG3sBo Bt1vVF1zpUa8MW5Zo/iukJlX/nP7JQyZZ0uBo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:to:in-reply-to:content-type:content-transfer-encoding :mime-version:subject:date:references:x-mailer:from; b=tvfp0DrAMHn/GTuRDXnKRuqL62njjOFDeScAmMl/SJhLU93kK8XcSNTnsjBiYnL2ht BOND4bUdDdrxbGmJMQRTy5yBf4B5+3ENn/tz9/EQ/5rrk5gB8hWlMbpSo+ljO3cV//hd Bjn43yeacbRbkFSZs9cKXWT2koWVKIue+XKK0= Original-Received: by 10.86.86.12 with SMTP id j12mr895570fgb.33.1231962442888; Wed, 14 Jan 2009 11:47:22 -0800 (PST) Original-Received: from ?10.70.168.9? (8.106.113.82.net.de.o2.com [82.113.106.8]) by mx.google.com with ESMTPS id d4sm30072706fga.41.2009.01.14.11.47.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 14 Jan 2009 11:47:22 -0800 (PST) In-Reply-To: <200901141235.34223.bntgcontext@wiseguysweb.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.154; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 165421751 - d854e09d2f89 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:46798 Archived-At: Am 14.01.2009 um 20:35 schrieb Bart C. Wise: > 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 > > > > 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? Yes, I used here two layers for the background, one for the image and another one for the color which is before the image. > What does the "s=1" and the "a=1" do in defining the color > partwhite? I can't find anything on the web. I used s=1 to define a white color and the other two to make it transparent. http://wiki.contextgarden.net/Colors#Transparent_Colors 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 ___________________________________________________________________________________