gsalzer / subfiles

class and package for multi-file projects in LaTeX
LaTeX Project Public License v1.3c
25 stars 1 forks source link

Incompabability with import package version 6.0 #6

Closed samcarter closed 4 years ago

samcarter commented 4 years ago

After the update of the import package from 5.1 to 6.0 the following example stopped working

\documentclass{book}

\usepackage{subfiles}

\begin{filecontents*}{file.tex}
\documentclass[document]{subfiles}

\begin{document}

test

\end{document}

\end{filecontents*}

\begin{document}

\subfile{file}

\end{document}

with the error

! LaTeX Error: File `document.aux' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: aux)

Enter file name: 
! Emergency stop.
<read *> 

l.19 \subfile{file}
                   ^^M
*** (cannot \read from terminal in nonstop modes)

Is this something you can fix or should I report this to the import package author?

gvdeynde commented 4 years ago

I also had weird issues with the new version of import.sty and subfiles. Suddenly, LaTeX couldn't find an image anymore (other images in the same folder were ok). And running LaTeX on a subfile (where one would expect to have only that part rendered but with the preamble of the main document included) the compilation also broke off. Putting the previous version of import.sty in my document directory solved the problem...

samcarter commented 4 years ago

I was just made aware of related discussions at

gsalzer commented 4 years ago

Thanks for reporting the problem, I will think about it. Probably subfiles should not depend on import; it isn't a perfect fit anyway.

samcarter commented 4 years ago

Import package has just been patched. With import v. 6.1 subfiles works again

https://lists.dante.de/pipermail/ctan-ann/2020-March/013656.html

gsalzer commented 4 years ago

Thanks for the follow up!