![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
At 16:00 23/09/2003 +0200, you wrote:
Hi,
I try to define new command with typing in this way: \def\Command#1% { \framed[options] { \starttyping #1 \stoptyping } } and use it in this way: \Command{\getbuffer[name]} but I have an error: ! Argument of \copyverbatimline has an extra }.
If I change to \def\Command#1#2% I have: ! Paragraph ended before \Command was complete.
How I can do it - put ConTeXt code to own frame ?...
definetyping [MyCode] [before=\startMyFrame, after=\stopMyFrame] \defineframedtext [MyFrame] [width=fit] \startMyCode \Command{\getbuffer[name]} \stopMyCode (btw, this kind of framed texts knwo quite well how to get rid of white space) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------