[tex-live] latex package import.sty (ltxmisc) unwanted leading space after import

Heiko Oberdiek oberdiek at uni-freiburg.de
Mon Mar 23 01:45:30 CET 2009


On Sun, Mar 22, 2009 at 07:41:50PM +0100, Samuel wrote:

> I just encountered problem with import.sty package: Imagine the file
> include.tex consisting of:
> thing is bad.
> 
> And the file main.tex consisting of
> \documentclass{article}
> \usepackage{import}
> \begin{document}
> Some\import{.}{include.tex}
> \end{document}
> 
> You will get an outputing dvi with the text:
> Some thing is bad.
> instead of (as with input)
> Something is bad.

Bug in import.sty by unwanted line space (line end):

\def\@sub at import#1#2#3{%
  \begingroup
  \protected at edef\@tempa{\endgroup
    \let\noexpand\IfFileExists\noexpand#2
    \noexpand\@import  \noexpand#1%  param 1
      {\@ifundefined{input at path}{}{\input at path}}% 2
      {\@ifundefined{Ginput at path}{}{\Ginput at path}}% 3
      {\import at path#3}{\import at path}% 4,5
      {\ifx\IfFileExists\im@@IfFileExists \noexpand\im@@IfFileExists
       \else \noexpand\IfFileExists \fi}}% 6
  \@tempa}

The forth line needs a "%" after "#2".

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>


More information about the tex-live mailing list