From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13446 Path: main.gmane.org!not-for-mail From: Patrick Gundlach Newsgroups: gmane.comp.tex.context Subject: Re: Typing in new command problems Date: Tue, 23 Sep 2003 16:33:15 +0200 Organization: privat Sender: ntg-context-admin@ntg.nl Message-ID: 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 X-Trace: sea.gmane.org 1064328321 27899 80.91.224.253 (23 Sep 2003 14:45:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2003 14:45:21 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Sep 23 16:45:19 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 1A1oPn-0002OW-00 for ; Tue, 23 Sep 2003 16:45:19 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 2DC5010B2B; Tue, 23 Sep 2003 16:45:16 +0200 (MEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by ref.ntg.nl (Postfix) with ESMTP id C176910B25 for ; Tue, 23 Sep 2003 16:38:11 +0200 (MEST) Original-Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1A1oIr-0004p1-00 for ntg-context@ntg.nl; Tue, 23 Sep 2003 16:38:09 +0200 Original-Received: from [62.72.92.74] (helo=levana) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1A1oIr-0003cl-00 for ntg-context@ntg.nl; Tue, 23 Sep 2003 16:38:09 +0200 Original-Received: from [192.168.1.2] (helo=schnee.local) by levana with esmtp (Exim 3.35 #1 (Debian)) id 1A1oE9-0000XR-00 for ; Tue, 23 Sep 2003 16:33:17 +0200 Original-Received: from schnee.local (localhost [127.0.0.1]) by schnee.local (8.12.9/8.12.9) with ESMTP id h8NEXGBK007147 for ; Tue, 23 Sep 2003 16:33:16 +0200 (CEST) Original-Received: (from pg@localhost) by schnee.local (8.12.9/8.12.2/Submit) id h8NEXGGM007146; Tue, 23 Sep 2003 16:33:16 +0200 (CEST) X-Authentication-Warning: schnee.local: pg set sender to patrick@gundla.ch using -f Original-To: ntg-context@ntg.nl X-Lieblings-Musik: the_capricorns In-Reply-To: <95a64885.488595a6@poczta.teleton.pl> (nitram@emil.teleton.pl's message of "Tue, 23 Sep 2003 16:00:39 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (darwin) 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:13446 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13446 "^Nitram^" writes: Hi, > I try to define new command with typing in this way: > \def\Command#1% > { > \framed[options] > { > \starttyping > #1 > \stoptyping > } > } Don't mess with verbatim stuff in commands. Don't ask why, just don't do it ;-) And: TeX != C. Don't write C-like TeX-braces: { \this { \that { This will give you a hard time looking for unwanted spaces. Use % or better: write \def\Command#1% {\framed[...]% > How I can do it - put ConTeXt code to own frame ?... \definetyping [nitram] [before=\startframedtext, after=\stopframedtext] \starttext \startnitram crazy \stopnitram \stoptext Patrick -- Silent is the goldfish in its bowl