From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6369 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: xml, verbatim Date: Tue, 18 Dec 2001 20:03:20 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20011218195933.03234988@server-1> References: <200112181813.fBIID8A18411@sol.cs.uni-dortmund.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035396894 9860 80.91.224.250 (23 Oct 2002 18:14:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:14:54 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Patrick Gundlach In-Reply-To: <200112181813.fBIID8A18411@sol.cs.uni-dortmund.de> Xref: main.gmane.org gmane.comp.tex.context:6369 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6369 At 07:13 PM 12/18/2001 +0100, Patrick Gundlach wrote: >Hi, > >I'd like to use the "verbatim" environment from html and typset >it using \starttyping ... \stoptyping like this > >[...] 11 > > 22 > 33 44 55 [...] >shoud be typeset like this: > >11 >\starttyping > 22 >\stoptyping >33 44 55 > >(I hope you get the idea) This has to do with the fact that the verbatim env changes catcodes and expects to see a \stoptyping. Since i knew that you would come up with this question some day ... \defineXMLcommand [pre] {\processtaggeddisplayverbatim{}} is about the shortest def i can come up with, try: \startbuffer
does
this look \like 
ok
\stopbuffer \processXMLbuffer Somehow this whole
 thing is a bit fuzzy, since it is not clear what 
should expand. If you want expansion,

   \defineXMLgrouped [pre] {\tttf\obeylines\obeyspaces}

is a good alternative.

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
-------------------------------------------------------------------------