LinearShade trouble
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
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 -----------------------------------------------------------------
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
On 2011-03-30 Kumar Appaiah
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
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
participants (3)
-
Hans Hagen
-
Kumar Appaiah
-
Marco