From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13085 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt, XML and verbatim -- thanks Date: Thu, 04 Sep 2003 20:59:42 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <5.2.0.9.1.20030904205922.016755d8@server-1> References: <000b01c37225$09c13800$0500a8c0@best> <20030903194940.GA2420@scaprea> <000201c3730b$e87b3910$0500a8c0@best> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1062704721 1219 80.91.224.253 (4 Sep 2003 19:45:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2003 19:45:21 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Sep 04 21:45:20 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19v02h-0005eg-00 for ; Thu, 04 Sep 2003 21:45:19 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 639F610B8C; Thu, 4 Sep 2003 21:45:17 +0200 (MEST) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id 7E77B10B7F for ; Thu, 4 Sep 2003 21:27:34 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h84JRO215984 for ; Thu, 4 Sep 2003 21:27:24 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 89FA718510; Thu, 4 Sep 2003 21:27:21 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 1711B1850C for ; Thu, 4 Sep 2003 19:27:17 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: ntg-context@ntg.nl In-Reply-To: <000201c3730b$e87b3910$0500a8c0@best> Original-References: <000b01c37225$09c13800$0500a8c0@best> <20030903194940.GA2420@scaprea> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13085 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13085 At 08:49 04/09/2003 +0200, you wrote: >Hello! > > > There are no verbatim environments in XML, and you cannot get literal > > content. Instead, you can have tags, like your verbatim above, that > > request line-oriented layout. programlisting is such a tag in Docbook. > > > > This is how docbook in context does it: > > > > \def\XMLDBstartlineorientedlayout > > {\bgroup > > \frenchspacing \obeyspaces \obeytabs \obeylines > > \parindent=0pt% > > \setupwhitespace[none] > > \def\obeyedline{\par\def\obeyedline{\strut\par}}% > > \def\obeyedspace{\strut\space}% > > \blank[medium]} > > \def\XMLDBstoplineorientedlayout{\blank[medium]\egroup} > > > > \defineXMLenvironment[programlisting] > > {\XMLDBstartlineorientedlayout > > \tt\XMLsimpleentitiestrue}% > > {\XMLDBstoplineorientedlayout} > >Thanks Simon! Such line-oriented environment is also a solution. Pawel, you can learns a few tricks from x-contml and other x-* modules 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------