From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10962 Path: main.gmane.org!not-for-mail From: robbieinsel@freeuk.com (Robbie Pickering ) Newsgroups: gmane.comp.tex.context Subject: Re: Extraneous spaces in XML documents Date: Tue, 11 Feb 2003 13:30:50 +0000 Sender: ntg-context-admin@ntg.nl Message-ID: <20030211133050.13232F3%05570575@freeuk.com> References: <20030210025825.F22427%05570575@gmx.de> <20030210220515.GB3325@scaprea> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1044983404 22543 80.91.224.249 (11 Feb 2003 17:10:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 11 Feb 2003 17:10:04 +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 18iduv-0005qQ-00 for ; Tue, 11 Feb 2003 18:09:57 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 56C9710AE8; Tue, 11 Feb 2003 18:12:08 +0100 (MET) Original-Received: from blueyonder.co.uk (pcow053o.blueyonder.co.uk [195.188.53.96]) by ref.ntg.nl (Postfix) with ESMTP id 2890510AB6 for ; Tue, 11 Feb 2003 14:30:58 +0100 (MET) Original-Received: from smtp.blueyonder.co.uk ([62.31.121.166]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.757.75); Tue, 11 Feb 2003 13:32:25 +0000 Original-To: ntg-context@ntg.nl In-Reply-To: <20030210220515.GB3325@scaprea> X-Mailer: Macintosh SweetMail 2.2r2 Carbon Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: robbieinsel@freeuk.com 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:10962 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10962 Simon Pepping wrote: >On Mon, Feb 10, 2003 at 02:58:25AM +0000, Robbie Pickering wrote: >> >> I'm typesetting some XML text with comments in and for the working >> version the comments are to go in the margin. For the final version the >> comments are simply to be ignored. >> >> In the end result there is a noticeably larger space between the words >> where the comma had been. Apparently more than one space is reaching >> TeX's stomach, though it's beyond me to work out how. >> >> \defineXMLargument [comment] \gobble > >You should use \ignorespaces in the end tag. Unfortunately, >\defineXMLargument does not allow you to define the action for the end >tag. This would work: > >\defineXMLenvironmentsave [comment] {} {\ignorespaces} > >The save action gobbles the content as well. > >Regards, Simon > Thanks. Is this conceptually different to writing \def\gobble#1{\ignorespaces} \defineXMLargument [comment] \gobble ? It seems to have the effect of also devouring the necessary space after a full stop, if the comment tag comes directly after it in the source: Makes complicated pages by starting.This is not a proper sentence. With simple ... The space after the comment, before "With" should get into the final document, but doesn't make it. (on the other hand, this also happens when the comments are shown with \defineXMLargument [comment] \inmargin cheers, robbie