Menu

#3 Incompatibility import.sty and standalone.sty

1.0
closed
None
2022-10-10
2021-01-11
No

Consider the following situation: File main.tex loads a file fi le.tex ( the space in the filename is relevant) using \import from the import package. This works.
But when the standalone package is loaded as well, the output contains additional characters, which are fragements of the filename.

% main.tex
\documentclass{article}
\usepackage{import}
\usepackage{standalone}
\begin{document}
Before import statement

\import{./}{"fi le"}

After import statement
\end{document}

% fi le.tex
File `fi le.tex'
1 Attachments

Discussion

  • Gernot Salzer

    Gernot Salzer - 2021-01-11

    Something went wrong with the attachment in the original post, and I didn't find a way to edit it, so once more the attachment.

     
  • Martin Scharrer

    Martin Scharrer - 2022-10-10

    Hi,
    this is actually an issue with currfile package, also written by me, used by standalone.
    The following example file generates the same issue. The problem seems to be the space in the filename. As work-around I would suggest to rename your input files.

    \documentclass{article}
    \usepackage{currfile}
    \usepackage{import}
    \begin{filecontents}{"fi le"}
    File `fi le.tex'
    \end{filecontents}
    \begin{document}
    Before import statement
    
    \import{./}{"fi le"}
    
    After import statement
    \end{document}
    
     
  • Martin Scharrer

    Martin Scharrer - 2022-10-10
    • status: open --> closed
     
  • Martin Scharrer

    Martin Scharrer - 2022-10-10

    Duplicate of https://sourceforge.net/p/currfile/tickets/2/.
    Fixed in currfile (used internally by standalone) in v0.8 2022-10-10.

     

Log in to post a comment.