Menu

#2 Problems using Standalone after update

1.0
closed
None
2022-10-10
2020-10-04
No

I have a problem using standalone. I described it in more detail here (see Edit2): https://tex.stackexchange.com/questions/565269
Basically when using standalone I get

(./file2.tex ! Missing number, treated as zero. = l.11 \end{document}

The same example code works on another machine not updated as recently so I'm wondering if this might be related to a recent update (which I did before the error occured) or that the update broke my installation.

Discussion

  • U_Fischer

    U_Fischer - 2020-10-04

    A simple example is

    \begin{filecontents}[overwrite]{file2.tex}
    \documentclass{article}
    \begin{document}
    
        blub
    
    \end{document}
    \end{filecontents}
    \documentclass[]{report}
    \usepackage{standalone}
    \begin{document}
    
    \input{file2.tex}
    
    \end{document}
    

    It fails only with lualatex (which uses a different implementation of a string comparision command). The problem seems to be the \aftergroup\endinput in \sa@enddocument which interrupts the command. I will also open an issue about the string comparision command, perhaps this need a correction.

     
  • Martin Scharrer

    Martin Scharrer - 2020-10-04
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -I have a problem using standalone. I described it in more detail here (see Edit2): https://tex.stackexchange.com/questions/565269/standalone-broken
    +I have a problem using standalone. I described it in more detail here (see Edit2): https://tex.stackexchange.com/questions/565269
     Basically when using standalone I get 
    
     > (./file2.tex ! Missing number, treated as zero. = l.11 \end{document}
    
    • status: open --> accepted
    • assigned_to: Martin Scharrer
     
  • Martin Scharrer

    Martin Scharrer - 2020-10-04

    According to Ulrike Fischer is problem is: \aftergroup\endinput in \sa@enddocument is too early now, it interrupts the hook code

     
  • U_Fischer

    U_Fischer - 2020-10-04

    the problem has been resolved in l3kernel, the document compiles for me now. https://github.com/latex3/latex3/issues/813

     

    Last edit: Martin Scharrer 2022-10-10
  • Martin Scharrer

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

    Martin Scharrer - 2022-10-10

    Closed as the problem got fixed upstream (LaTeX core).

     

Log in to post a comment.

MongoDB Logo MongoDB