From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15691 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: passing arguments to commands while typing Date: Wed, 14 Jul 2004 16:04:21 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <40F53D65.6060409@wxs.nl> References: <382a63c76b.3c76b382a6@ki.se> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1089813873 17006 80.91.224.253 (14 Jul 2004 14:04:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jul 2004 14:04:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 14 16:04:27 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BkkN0-0004NN-00 for ; Wed, 14 Jul 2004 16:04:27 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A87B11277C; Wed, 14 Jul 2004 16:04:26 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19220-05; Wed, 14 Jul 2004 16:04:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 739EE12778; Wed, 14 Jul 2004 16:04:24 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0D6FE12778 for ; Wed, 14 Jul 2004 16:04:24 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19224-04 for ; Wed, 14 Jul 2004 16:04:23 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 965A612775 for ; Wed, 14 Jul 2004 16:04:23 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i6EE4KOO007717 for ; Wed, 14 Jul 2004 16:04:20 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id E8DEB1A95B; Wed, 14 Jul 2004 16:04:22 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id EF17E1856D for ; Wed, 14 Jul 2004 14:04:21 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <382a63c76b.3c76b382a6@ki.se> X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on mailrelay01.solcon.nl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15691 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15691 Johan Sandblom wrote: >While documenting some Matlab code for barely computer literates I wish to use the positional graphics described in the MetaFun manual. Not sure if this is possible of course. I am not at all successful so far since I cannot get the escaping mechanism to accept my code. It appears that the /hpos works just fine but the {} generate problems. I have tried using <<>> in all ways I could think of but haven't been lucky yet. Is this possible? > >Minimal example: > >\setuppapersize[S6][S6] >\setuptyping[option=commands] >\starttext >\starttyping >test /hpos{word}{test} test >\stoptyping >\stoptext > > > \setuppapersize[S6][S6] \setuptyping[option=commands] \starttext \def\naturaltextext#1\relax {\bgroup \prettynaturalfont \def\ascii{#1}% \setnormalcatcodes \restorecatcodes \scantokens\expandafter{\ascii}\ifhmode\unskip\fi \egroup} \let\texy\naturaltextext \starttyping test /naturaltextext\hpos{word}{test}/relax test test /texy \rm is the word/relax test \stoptyping \MPxy{word} \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------