ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Typing in new command problems
@ 2003-09-23 14:00 ^Nitram^
  2003-09-23 14:33 ` Patrick Gundlach
  2003-09-23 21:28 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: ^Nitram^ @ 2003-09-23 14:00 UTC (permalink / raw)


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

-- 
Best regards
Martin

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

end of thread, other threads:[~2003-09-23 21:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-23 14:00 Typing in new command problems ^Nitram^
2003-09-23 14:33 ` Patrick Gundlach
2003-09-23 16:37   ` Hans Hagen
2003-09-23 16:56     ` Patrick Gundlach
2003-09-23 21:28 ` Hans Hagen

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