From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26183 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: \input introduces space Date: Tue, 28 Feb 2006 17:12:27 +0100 Message-ID: <4404766B.2090007@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1141143170 15671 80.91.229.2 (28 Feb 2006 16:12:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Feb 2006 16:12:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 28 17:12:47 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FE7Sn-0000c9-IX for gctc-ntg-context-518@m.gmane.org; Tue, 28 Feb 2006 17:12:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2971B127A5; Tue, 28 Feb 2006 17:12:37 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14180-01; Tue, 28 Feb 2006 17:12:32 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8AE62127A0; Tue, 28 Feb 2006 17:12:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5C683127A0 for ; Tue, 28 Feb 2006 17:12:31 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13926-04-2 for ; Tue, 28 Feb 2006 17:12:29 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with SMTP id 05A7F12793 for ; Tue, 28 Feb 2006 17:12:28 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id B6EAF1B43B for ; Tue, 28 Feb 2006 17:12:28 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22733-09 for ; Tue, 28 Feb 2006 17:12:28 +0100 (CET) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 6459418331 for ; Tue, 28 Feb 2006 17:12:28 +0100 (CET) User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: X-Virus-Scanned: by amavisd-new at elvenkind.net X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26183 Archived-At: Hi Peter, Not the \input command, but the end-of-line in the inputted file is creating the space, indirectly. TeX normally appends a character with the current value of \endlinechar to each line of an input-ed file, and that character is later converted to a space. Setting \endlinechar to -1 temporarily is a possibility, another is writing a percent sign to the end of the line, yet another is ending the written line with \relax (or a similar space-gobbling command), and finally changing the catcode of the current \endlinechar to 9 (ignored) also works. Cheers, Taco Peter M=FCnster wrote: > Hello, > \input seems to introduce a space. Example: > = > \starttext > \immediate\write18{echo -n X >bla.tex} > X\input bla\relax X > \stoptext > = > How could I get rid of this space? > = > Cheers, Peter > =