ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: \input introduces space
Date: Tue, 28 Feb 2006 17:22:54 +0100	[thread overview]
Message-ID: <440478DE.7080309@elvenkind.com> (raw)
In-Reply-To: <4404766B.2090007@elvenkind.com>



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

  reply	other threads:[~2006-02-28 16:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-28 15:55 Peter Münster
2006-02-28 16:12 ` Taco Hoekwater
2006-02-28 16:22   ` Taco Hoekwater [this message]
2006-02-28 17:24     ` Peter Münster
2006-02-28 18:04   ` Hans Hagen
2006-02-28 19:33     ` Peter Münster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=440478DE.7080309@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).