ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* LinearShade trouble
@ 2011-03-30  6:38 Kumar Appaiah
  2011-03-30  6:48 ` Hans Hagen
  2011-03-30  7:04 ` Marco
  0 siblings, 2 replies; 5+ messages in thread
From: Kumar Appaiah @ 2011-03-30  6:38 UTC (permalink / raw)
  To: ntg-context

Dear ConTeXt list,

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.

But what I expect (produced with an ancient version of ConTeXt, Debian
version 2008.05.21-1):

http://people.debian.org/~akumar/dump/test_expected.pdf

Could you please let me know where things are going wrong? The mail
has the log files attached.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: LinearShade trouble
  2011-03-30  6:38 LinearShade trouble Kumar Appaiah
@ 2011-03-30  6:48 ` Hans Hagen
  2011-03-30  6:59   ` Kumar Appaiah
  2011-03-30  7:04 ` Marco
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2011-03-30  6:48 UTC (permalink / raw)
  To: ntg-context

On 30-3-2011 8:38, Kumar Appaiah 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)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: LinearShade trouble
  2011-03-30  6:48 ` Hans Hagen
@ 2011-03-30  6:59   ` Kumar Appaiah
  0 siblings, 0 replies; 5+ messages in thread
From: Kumar Appaiah @ 2011-03-30  6:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: LinearShade trouble
  2011-03-30  6:38 LinearShade trouble Kumar Appaiah
  2011-03-30  6:48 ` Hans Hagen
@ 2011-03-30  7:04 ` Marco
  2011-03-30  7:23   ` Kumar Appaiah
  1 sibling, 1 reply; 5+ messages in thread
From: Marco @ 2011-03-30  7:04 UTC (permalink / raw)
  To: ntg-context

On 2011-03-30 Kumar Appaiah <a.kumar@alumni.iitm.ac.in> wrote:

> Dear ConTeXt list,
> 
> 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.
> 
> But what I expect (produced with an ancient version of ConTeXt, Debian
> version 2008.05.21-1):
> 
> http://people.debian.org/~akumar/dump/test_expected.pdf
> 
> Could you please let me know where things are going
> wrong? The mail has the log files attached.

You have a problem with metapost not being run. Search the
contextgarden for write18 for the solution.

BTW: You cannot use the contextgarden to check if you code
is working. The same restrictions as on your system apply.
Consider using mkiv as Hans suggested.

Marco


___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: LinearShade trouble
  2011-03-30  7:04 ` Marco
@ 2011-03-30  7:23   ` Kumar Appaiah
  0 siblings, 0 replies; 5+ messages in thread
From: Kumar Appaiah @ 2011-03-30  7:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Mar 30, 2011 at 09:04:41AM +0200, Marco wrote:
> > 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.
> > 
> > But what I expect (produced with an ancient version of ConTeXt, Debian
> > version 2008.05.21-1):
> > 
> > http://people.debian.org/~akumar/dump/test_expected.pdf
> > 
> > Could you please let me know where things are going
> > wrong? The mail has the log files attached.
> 
> You have a problem with metapost not being run. Search the
> contextgarden for write18 for the solution.
> 
> BTW: You cannot use the contextgarden to check if you code
> is working. The same restrictions as on your system apply.
> Consider using mkiv as Hans suggested.

Indeed, this was the solution. I added metafun to
shell_escape_commands, and that did the trick!

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-30  7:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-30  6:38 LinearShade trouble Kumar Appaiah
2011-03-30  6:48 ` Hans Hagen
2011-03-30  6:59   ` Kumar Appaiah
2011-03-30  7:04 ` Marco
2011-03-30  7:23   ` Kumar Appaiah

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).