Am 06.12.2012 19:18, schrieb Wolfgang Schuster:
Am 06.12.2012 um 19:05 schrieb Aditya Mahajan
: On Thu, 6 Dec 2012, Peter Rolf wrote:
Hi all,
a first version of the 'drops'-module (MkIV only) is available at
https://www.wuala.com/indiego/public/ConTeXt/drops/?key=caiCGLasLFmJ
Taken from the included documentation.. [..] 'drops' is a small extension for ConTeXt, that allows you to add drop shadows to rectangular regions (so called boxshadows). A working installation of ImageMagick (IM) is required to create the shadow graphics. The supported color spaces are CMYK, RGB and Gray, the file formats are limited to PNG and JPG. [..] Read the manual for detailed information.
Nice.
The module would be cleaner with a MkIV rewrite and I would drop the option to accept each module parameter with \usemodule.
Will look into that. I have to fix several remaining problems (IM related) first, before I can think about a 'cleanup' :-D
I would also create a new namespace for the \setupdrops command because currently it uses the “module” namespace.
\def\dosetupdrops[#1]% {\iffirstargument\getparameters[\??module drops:][#1,{\c!setup=}]\else % never parameter 'setup' \ctxlua{thirddata.drops.resetdrops()}\fi} % reset all parameters to their default, when no argument is given
Ok. Can you explain why that is a problem?
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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________