From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13075 Path: main.gmane.org!not-for-mail From: "Pawel Jackowski na Onet" Newsgroups: gmane.comp.tex.context Subject: ConTeXt, XML and verbatim -- thanks Date: Thu, 4 Sep 2003 08:49:06 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <000201c3730b$e87b3910$0500a8c0@best> References: <000b01c37225$09c13800$0500a8c0@best> <20030903194940.GA2420@scaprea> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1062697710 19095 80.91.224.253 (4 Sep 2003 17:48:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2003 17:48:30 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Sep 04 19:48:29 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 19uyDd-0006Tw-00 for ; Thu, 04 Sep 2003 19:48:29 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 6DD0510B75; Thu, 4 Sep 2003 19:48:26 +0200 (MEST) Original-Received: from smtp1.poczta.onet.pl (smtp1.poczta.onet.pl [213.180.130.31]) by ref.ntg.nl (Postfix) with ESMTP id F1BDC10B71 for ; Thu, 4 Sep 2003 19:42:28 +0200 (MEST) Original-Received: from pa36.debniki.sdi.tpnet.pl ([213.77.147.36]:23814 "HELO best") by ps1.test.onet.pl with SMTP id ; Thu, 4 Sep 2003 19:42:07 +0200 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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:13075 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13075 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.