gsalzer / subfiles

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

Incompatibility of subfiles 2.0 with lualatex 1.12.0 (TeX Live 2020) LaTeX2e <2020-10-01> pre-release-9 #10

Closed yuishin-kikuchi closed 3 years ago

yuishin-kikuchi commented 3 years ago

Hi, gsalzer! I really love subfiles package.

I've updated my TeX Live environment just now and LaTeX was updated (revision 56514). I've read subfiles.pdf and I believe that version 2.0 works with new LaTeX.

Unfortunately, the compilation fails:

%% test.tex \documentclass{article} \usepackage{subfiles} \begin{document} \subfile{sections/sectest} \end{document}

%% sections/sectest.tex \documentclass[../test]{subfiles} \begin{document} [ABC] \end{document}

How to avoid errors? Thanks.

gsalzer commented 3 years ago

Hi yuishin-kikuchi, I cannot reproduce the issue. Compiling your example, test.tex as well as sectest.tex, with (pdf)latex as well as (pdf)latex-dev from the current TeX Live 2020 distribution works without problems. The two versions:

Can you please re-check your setup and explain in more detail which errors you encounter? What does the log file say? Add \listfiles as first line in test.tex and check the file list at the end of the log. Which versions are reported? Is it really subfiles v2.0 that you are using? Maybe you have an old version on the search path, e.g. in your local texmf tree (under Linux/Unix, search the directories /usr/local/texlive/texmf-local and ~/texmf).

yuishin-kikuchi commented 3 years ago

Thanks to reply, gsalzer.

I checked subfiles.sty in my environment and the version is true 2020/09/07. I'm using LuaLaTeX.

This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/W32TeX) 
 restricted system commands enabled.

LaTeX2e <2020-10-01>

 L3 programming layer <2020-09-24> xparse <2020-03-03> (c:/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(c:/texlive/2020/texmf-dist/tex/latex/base/size10.clo)) (c:/texlive/2020/texmf-dist/tex/latex/subfiles/subfiles.sty (c:/texlive/2020/texmf-dist/tex/latex/import/import.sty)) (c:/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-luatex.def)
No file test.aux.
(c:/texlive/2020/texmf-dist/tex/latex/base/ts1cmr.fd) (./sections/sectest.tex
./sections/sectest.tex:4: Missing number, treated as zero.
<to be read again> 
=
l.4 \end{document}
gsalzer commented 3 years ago

Thanks for reporting the issue. I can now reproduce the error.

yuishin-kikuchi commented 3 years ago

Hi, gsalzer.

Almost same problem occurred with standalone package. I saw tickets of standalone package in source forge: https://sourceforge.net/p/standalone/tickets/2/

Ulrike Fischer said, "the problem has been resolved in l3kernel, the document compiles for me now."

In short, this problem was not in subfiles but in L3 kernel. Soon the bug is removed. Anyway, thanks!

gsalzer commented 3 years ago

@yuishin-kikuchi Thanks for the update!