From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6367 Path: main.gmane.org!not-for-mail From: Patrick Gundlach Newsgroups: gmane.comp.tex.context Subject: xml, verbatim Date: Tue, 18 Dec 2001 19:13:08 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <200112181813.fBIID8A18411@sol.cs.uni-dortmund.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035396892 9849 80.91.224.250 (23 Oct 2002 18:14:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:14:52 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:6367 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6367 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) I have tried: \defineXMLenvironment [pre] \starttyping \stoptyping but this lead me to Runaway argument? ! File ended while scanning use of \copyverbatimline. \par \relax \dodoreadfile ...normalinput \readfilename \relax \the \everyafterreadfile \processlocalfile ...#2}\processedfiles #1{#2}{}{} \doglobal \decrement \file... l.50 \processXMLfile {d2.html} any Ideas? Viele Grüße, Patrick Gundlach 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
-------------------------------------------------------------------------


From mboxrd@z Thu Jan  1 00:00:00 1970
X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6377
Path: main.gmane.org!not-for-mail
From: Patrick Gundlach 
Newsgroups: gmane.comp.tex.context
Subject: Re: xml, verbatim
Date: Fri, 21 Dec 2001 11:21:29 +0100
Sender: owner-ntg-context@let.uu.nl
Message-ID: <01122111212900.00357@levana>
References: <5.1.0.14.1.20011218195933.03234988@server-1>
NNTP-Posting-Host: coloc-standby.netfonds.no
Mime-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 8bit
X-Trace: main.gmane.org 1035396902 9982 80.91.224.250 (23 Oct 2002 18:15:02 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Wed, 23 Oct 2002 18:15:02 +0000 (UTC)
Original-To: ntg-context@ntg.nl
In-Reply-To: <5.1.0.14.1.20011218195933.03234988@server-1>
Xref: main.gmane.org gmane.comp.tex.context:6377
X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6377

Hallo Hans et al,

> Since i knew that you would come up with this question some day ...
:-)

>    \defineXMLcommand [pre] {\processtaggeddisplayverbatim{
}} works fine! great. -- Viele Grüße, Patrick Gundlach