From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10911 Path: main.gmane.org!not-for-mail From: drymartini@gmx.de (Robbie Pickering) Newsgroups: gmane.comp.tex.context Subject: Extraneous spaces in XML documents Date: Mon, 10 Feb 2003 02:58:25 +0000 Sender: ntg-context-admin@ntg.nl Message-ID: <20030210025825.F22427%05570575@gmx.de> 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 1044845876 7158 80.91.224.249 (10 Feb 2003 02:57:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2003 02:57:56 +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 18i48o-0001rH-00 for ; Mon, 10 Feb 2003 03:57:55 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 4F6DE10B67; Mon, 10 Feb 2003 04:00:02 +0100 (MET) Original-Received: from blueyonder.co.uk (pcow034o.blueyonder.co.uk [195.188.53.122]) by ref.ntg.nl (Postfix) with ESMTP id 4DD4D10AEC for ; Mon, 10 Feb 2003 03:58:34 +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); Mon, 10 Feb 2003 03:00:13 +0000 Original-To: ntg-context@ntg.nl 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 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:10911 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10911 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. I suppose I need a more sophisticated \gobble definition than the simple TeXbook one, yes? ----file minimal.tex %now we will map XML arguments to context ones. \defineXMLargument [title] \title \defineXMLargument [footnote] \footnote \defineXMLargument [section] \section % et cetera.... % this definition for drafts where comments are printed %in the margin %\defineXMLargument [comment] \inmargin %this definition for the final version where the % remaining comments are ignored \def\gobble#1{} \defineXMLargument [comment] \gobble \starttext \processXMLfilegrouped {sample.xml} \stoptext --- file sample.xml
Nonsense
A section
Makes complicated pages by starting with simple individual characters and putting them together in larger units, and putting these together what does he mean here, putting these together??? in still larger units, and so on. Conceptually, it's a big paste-up job.From The TeXbook.