From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67512 Path: news.gmane.org!not-for-mail From: Kumar Appaiah Newsgroups: gmane.comp.tex.context Subject: Re: LinearShade trouble Date: Wed, 30 Mar 2011 01:59:14 -0500 Message-ID: <20110330065914.GA23545@bluemoon.alumni.iitm.ac.in> References: <20110330063812.GA21577@bluemoon.alumni.iitm.ac.in> <4D92D22F.60700@wxs.nl> 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: dough.gmane.org 1301468386 26232 80.91.229.12 (30 Mar 2011 06:59:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2011 06:59:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 30 08:59:35 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4pNN-0000hj-Q2 for gctc-ntg-context-518@m.gmane.org; Wed, 30 Mar 2011 08:59:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 17FD7CAB43; Wed, 30 Mar 2011 08:59:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZlGQnc+fDBp5; Wed, 30 Mar 2011 08:59:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84E67CAB2F; Wed, 30 Mar 2011 08:59:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4F115CAB2F for ; Wed, 30 Mar 2011 08:59:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PNSai6EI6442 for ; Wed, 30 Mar 2011 08:59:03 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 3D4FCCAAFF for ; Wed, 30 Mar 2011 08:59:03 +0200 (CEST) Original-Received: from ironclad.mail.utexas.edu (ironclad.mail.utexas.edu [146.6.25.7]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2U6xNud007524 for ; Wed, 30 Mar 2011 08:59:25 +0200 X-IronPort-MID: 92766471 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAJrUkk2AUyAI/2dsb2JhbAClUne8eIVqBIU+iyI Original-Received: from exf03.austin.utexas.edu ([128.83.32.8]) by ironclad.mail.utexas.edu with ESMTP; 30 Mar 2011 01:59:16 -0500 Original-Received: from bluemoon.WORKGROUP (146.6.107.4) by wmail.austin.utexas.edu (128.83.32.8) with Microsoft SMTP Server (TLS) id 8.2.255.0; Wed, 30 Mar 2011 01:59:15 -0500 Original-Received: from kumar by bluemoon.WORKGROUP with local (Exim 4.74) (envelope-from ) id 1Q4pN4-00069X-Ix for ntg-context@ntg.nl; Wed, 30 Mar 2011 01:59:14 -0500 Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <4D92D22F.60700@wxs.nl> X-OS: Linux bluemoon 2.6.38-1-amd64 x86_64 X-Operating-System: Linux bluemoon 2.6.38-1-amd64 x86_64 X-Editor: GNU Emacs 23.2.1 User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.6.25.7; country=US; region=TX; city=Austin; postalcode=78705; latitude=30.2961; longitude=-97.7369; metrocode=635; areacode=512; http://maps.google.com/maps?q=30.2961,-97.7369&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dEpiXn1U - 11f200b7033f - 20110330 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:67512 Archived-At: Dear Hans, On Wed, Mar 30, 2011 at 08:48:15AM +0200, Hans Hagen wrote: > >I have been having troubles with LinearShade with ConTeXt for quite a > >while, even with the latest version. > > > >Steps to reproduce: > >There is a test.tex at the bottom of this e-mail: > >http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580447#5 > > > >Copy paste it into the ConTeXt Live interface at the ConTeXt > >Garden. Result is blank. > > best post the minimal example here and tell us what version you run; > the benchmark is context mkiv as of today (not much has changed in > mkii anyway) Thanks. Here's the code: \setuppapersize[S6][S6] \setuppagenumbering[state=stop] \switchtobodyfont[modern,20pt] \setupcolors[state=start] \setupbackgrounds[page][background=color,backgroundcolor=darkblue] \startcolor[white] \setuptolerance[verytolerant,stretch] \definecolor[a][r=0,g=0,b=1] \definecolor[b][r=0,g=0,b=0.05] \startuniqueMPgraphic{LinearShade} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; linear_shade(p,6,\MPcolor{a},\MPcolor{b}) ; \stopuniqueMPgraphic \defineoverlay[shaded][\useMPgraphic{LinearShade}] \setupbackgrounds[page][background={shaded}] \starttext Here's my first presentation in \CONTEXT! Isn't it amazing? \stoptext This is from an old ConTeXt example I copied from your documentation (I don't recall exactly). Thanks! Kumar -- Kumar Appaiah ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________