From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1461 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Commands in verbatim Date: Tue, 21 Dec 1999 17:37:19 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.19991221173719.016511d0@pop.wxs.nl> References: <3.0.6.32.19991220165848.007e95c0@pop.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035392286 512 80.91.224.250 (23 Oct 2002 16:58:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:58:06 +0000 (UTC) Cc: pragma@wxs.nl (Hans Hagen) Original-To: Zeljko Vrba In-Reply-To: <199912211208.NAA24702@fly.srk.fer.hr> Xref: main.gmane.org gmane.comp.tex.context:1461 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1461 At 01:08 PM 12/21/99 +0100, Zeljko Vrba wrote: >I put this in my file: >\setuptyping[option=commands,escape=?] >(I want ? to be escape character because it will not interfere with other >characters I'll be using in verbatim) > >then this: >\starttyping > ?underbar{if} expr .. >\stoptyping > >and get this error message: > >! Undefined control sequence. > \underbar{if} Since all chars are letters, the {} are not handled. Another escape is using <> and option=slanted. >regular cmr font. BTW, /bf (?bf) works fine. ?underbar if just places a >single underbar, like this: > _if >(this is typeset by ?underbar if). I'd like > if > -- >Is it possible to do it? You could try: \def\Key#1#2x{\underbar{#2}} (the spaces are important) .... ?Key ifx that way the x acts as sentinel. Even better: \def\IfKey{\underbar{if}} .... ?IfKey .... I would go for the last alternative. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------