From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26184 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:22:54 +0100 Message-ID: <440478DE.7080309@elvenkind.com> References: <4404766B.2090007@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141143826 18304 80.91.229.2 (28 Feb 2006 16:23:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Feb 2006 16:23:46 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 28 17:23:43 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 1FE7cx-0003qJ-8v for gctc-ntg-context-518@m.gmane.org; Tue, 28 Feb 2006 17:23:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 20C11127B0; Tue, 28 Feb 2006 17:23:06 +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-07; Tue, 28 Feb 2006 17:23:00 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4A53B127A7; Tue, 28 Feb 2006 17:23:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 74528127A7 for ; Tue, 28 Feb 2006 17:22:58 +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-05 for ; Tue, 28 Feb 2006 17:22:55 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with SMTP id E0B3E127A6 for ; Tue, 28 Feb 2006 17:22:55 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 95D941ABE7 for ; Tue, 28 Feb 2006 17:22:55 +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 22836-02 for ; Tue, 28 Feb 2006 17:22:55 +0100 (CET) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 44BDB18331 for ; Tue, 28 Feb 2006 17:22:55 +0100 (CET) User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4404766B.2090007@elvenkind.com> 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:26184 Archived-At: Taco Hoekwater wrote: > 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. Here is a file demonstrating all four: \starttext % 1 \immediate\write18{echo -n X >bla1.tex} X{\endlinechar=-1 \input bla1 }X % 2 \immediate\write18{echo -n X\letterpercent >bla2.tex} X\input bla2 X % 3 \immediate \write18 {echo -n X\letterbackslash\letterbackslash relax >bla3.tex} X\input bla3 X % 4 \immediate\write18{echo -n X >bla4.tex} X{\catcode`\^^M=9 \input bla4 }X \stoptext