[texhax] \input adds an extra space if the included file contains a command?
Philip Taylor (Webmaster, Ret'd)
P.Taylor at Rhul.Ac.Uk
Thu Oct 7 10:08:15 CEST 2010
Maybe escape end-of-line in i.tex, as in
----- i.tex -----
\text{test}\relax
If insufficient, then try
----- i.tex -----
\text{test}\endinput
Philip Taylor
(Not tested : caveat emptor !).
--------
Aleksandar Zec wrote:
> Hello,
>
> If you create these two files, t.tex and i.tex
>
> ----- t.tex -----
> \documentclass{article}
> \newcommand{\text}[1]{#1}
> \begin{document}
> X\input{i}X
> \end{document}
> -----------------
>
> ----- i.tex -----
> \text{test}
> -----------------
>
> the result will look like this:
>
> Xtest X
>
> i.e. there is an extra space where it (IMHO) shouldn't be. I can't see
> how I instructed LaTeX to insert it. Is this behaviour intentional and
> how can I avoid it?
>
> Thank you in advance,
> Alex
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
More information about the texhax
mailing list