reutenauer / polyglossia

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

Tha latin gloss write to the aux file commands that might be undefined #643

Open Udi-Fogiel opened 1 month ago

Udi-Fogiel commented 1 month ago

consider the following

\documentclass{book}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage[variant=classic]{latin}
\begin{document}
Test
\end{document}

if I compile this file, then compile again after commenting out the line \setotherlanguage[variant=classic]{latin} I get the error \shorthandoff, this is because the lain gloss writes to the aux https://github.com/reutenauer/polyglossia/blob/752da6be7f2ff6d9994a436ac4b2947159a536d3/tex/gloss-latin.ldf#L619-L623

@wehro Would it be possible to add the line \ProvideDocumentCommand \shorthandoff{sm}{} to the aux to possible gobble these commands?

Udi-Fogiel commented 1 month ago

Are there any more glosses that do the same?