From: Kumar Appaiah <a.kumar@alumni.iitm.ac.in>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: LinearShade trouble
Date: Wed, 30 Mar 2011 01:59:14 -0500 [thread overview]
Message-ID: <20110330065914.GA23545@bluemoon.alumni.iitm.ac.in> (raw)
In-Reply-To: <4D92D22F.60700@wxs.nl>
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:
<file>
\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
</file>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-03-30 6:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-30 6:38 Kumar Appaiah
2011-03-30 6:48 ` Hans Hagen
2011-03-30 6:59 ` Kumar Appaiah [this message]
2011-03-30 7:04 ` Marco
2011-03-30 7:23 ` Kumar Appaiah
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=20110330065914.GA23545@bluemoon.alumni.iitm.ac.in \
--to=a.kumar@alumni.iitm.ac.in \
--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).