From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13464 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Typing in new command problems Date: Tue, 23 Sep 2003 23:28:30 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <5.2.0.9.1.20030923232807.02291008@localhost> References: <95a64885.488595a6@poczta.teleton.pl> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1064355484 7054 80.91.224.253 (23 Sep 2003 22:18:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2003 22:18:04 +0000 (UTC) Cc: Pawel Jackowski na Onet Original-X-From: ntg-context-admin@ntg.nl Wed Sep 24 00:18:01 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A1vTt-0001AW-00 for ; Wed, 24 Sep 2003 00:18:01 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id F245110B5D; Wed, 24 Sep 2003 00:17:58 +0200 (MEST) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id 808C310B1C for ; Wed, 24 Sep 2003 00:11:19 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h8NMB6918552; Wed, 24 Sep 2003 00:11:06 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 125BE18502; Wed, 24 Sep 2003 00:11:12 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id DBDBA184F8; Tue, 23 Sep 2003 22:11:09 +0000 (UTC) X-Sender: hagen-mail@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: ntg-context@ntg.nl In-Reply-To: <95a64885.488595a6@poczta.teleton.pl> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13464 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13464 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 -------------------------------------------------------------------------