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 | [EMAIL PROTECTED]
                      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
-------------------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to