From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6038 Path: main.gmane.org!not-for-mail From: Marko Schuetz Newsgroups: gmane.comp.tex.context Subject: Re: escaping from \starttyping...\stoptyping Date: Thu, 08 Nov 2001 11:47:00 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <20011108114700B.marko@kinetic.ki.informatik.uni-frankfurt.de> References: <20011107224838X.marko@kinetic.ki.informatik.uni-frankfurt. de> <5.1.0.14.1.20011108101715.03172bf0@server-1> Reply-To: marko@ki.informatik.uni-frankfurt.de NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035396590 6819 80.91.224.250 (23 Oct 2002 18:09:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:09:50 +0000 (UTC) Cc: marko@ki.informatik.uni-frankfurt.de, ntg-context@ntg.nl Original-To: pragma@wxs.nl In-Reply-To: <5.1.0.14.1.20011108101715.03172bf0@server-1> Xref: main.gmane.org gmane.comp.tex.context:6038 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6038 Hans, From: Hans Hagen Subject: Re: escaping from \starttyping...\stoptyping Date: Thu, 08 Nov 2001 10:19:29 +0100 > At 10:48 PM 11/7/2001 +0100, Marko Schuetz wrote: > >I want to use ConTeXt macros from within typing, like > > > > > >\define[1]\mysquare{#1$^2$} > > > >\starttyping > >this is verbatim text /mysquare{j} > >\stoptyping > > > >it works with macros that do not take arguments, but with arguments > >the open curly brace seems to be considered for the macro name and an > >undefined ... error is produced. > > > >A related problem is that I cannot have e.g. a comma after a macro > >name because then also the name is not recognized. > > > >Help will be appreciated! :-) > > I admit that it looks ugly but look at this: > > \startRAW > \def\mathematics#1% %%\ N usage: \type {\mathematics{x^2}} > {\ifmmode#1\else$#1$\fi} %%\ N becomes: \mathematics{X^2} > \stopRAW ??? I don't understand. Wherever I put \startRAW ... \stopRAW I get an undefined control sequence error for \startRAW. I tried \startTEX/\stopTEX, but the %%\ does not seem to escape... > the %%\ serves as an escape and N is the escape-to-tex handler > > [see verb-ini.tex/core-ver.tex for more details] I had a look in there, but did not understand what was going on. Marko