reutenauer / polyglossia

An alternative to Babel for XeLaTeX and LuaLaTeX
http://www.ctan.org/pkg/polyglossia
MIT License
187 stars 52 forks source link

\begin{<lang>} \include{<file>} \end{<lang>} not working at the end of a file #588

Closed Letinain closed 1 year ago

Letinain commented 1 year ago

Here is a MWE :

This example seems a bit dubious but I encountered this problem when I wanted to switch the last include in my file to another language than the main one.

The error given is : ! Missing } inserted. <inserted text> } l.9 \end{document}

Notice that inserting \null right before the \end{document} seems to fix the compilation issue, and it adds an empty page.

My version of Polyglossia is 1.53 (2021/04/12).

jspitz commented 1 year ago

This works with a current version of polyglossia, so I assume the bug has been fixed in the meantime.

Please reopen if you can reproduce after upgrading.