[texhax] \input adds an extra space if the included file contains a command?

Aleksandar Zec zealeksanman at gmail.com
Thu Oct 7 01:28:20 CEST 2010


2010/10/7 Kevin Godby <godbyk at gmail.com>:
> Hello, Aleksandar.
>
> On Wed, Oct 6, 2010 at 6:02 PM, Aleksandar Zec <zealeksanman at gmail.com> wrote:
>> ----- i.tex -----
>> \text{test}% <-- add a percent sign to suppress the space
>> -----------------
>
> Put a % after the \text{test} command.  This will suppress the space
> inserted by the new-line character.

Thank you, Kevin (and all that replied off-list), this works! However,
I still don't understand because there is no newline in the file. Try

echo -n "test" > i.tex

i.e. no newline; the extra space is still there.

Alex



More information about the texhax mailing list