From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11057 Path: main.gmane.org!not-for-mail From: Guy Worthington Newsgroups: gmane.comp.tex.context Subject: Re: inlining pretty-printed XML Date: 16 Feb 2003 17:03:27 +0800 Sender: ntg-context-admin@ntg.nl Message-ID: References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045385748 17217 80.91.224.249 (16 Feb 2003 08:55:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2003 08:55:48 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18kKaR-0004TZ-00 for ; Sun, 16 Feb 2003 09:55:47 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 4FCAE10AF0; Sun, 16 Feb 2003 09:58:07 +0100 (MET) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by ref.ntg.nl (Postfix) with ESMTP id 7ADD210AE7 for ; Sun, 16 Feb 2003 09:56:43 +0100 (MET) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18kKZ3-0004QZ-00 for ; Sun, 16 Feb 2003 09:54:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ref.ntg.nl Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18kKZ2-0004QQ-00 for ; Sun, 16 Feb 2003 09:54:20 +0100 Original-Lines: 39 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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:11057 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11057 I'm seem to be using this mailing list as private correspondence, I'll try to keep my posting down in future. But.. Following up on my question on how to inline XML code, I vaguely remember reading that the TeX primitive \par, has no effect in restricted horizontal mode, (I think that's what it's called, anyways the horizontal mode that's not paragraph mode). So on that assumption, I forced the verbatim pretty printer to operate inside an \hbox, with the following code: -------------------------------------------------- %output=pdf \definetyping [XMLtag] [option=XML] \setuptyping [XMLtag] [before={\ \hbox\bgroup}, after={\egroup\ }, palet=colorpretty] \setupcolors[state=start] \starttext This is a \startXMLtag \stopXMLtag tag inline; and this is a comment \startXMLtag \stopXMLtag \startXML
\stopXML \stoptext --------------------------------------------------