On 2017-10-08, Scott Kostyshak wrote: > On Sun, Oct 08, 2017 at 08:59:47PM +0000, Jean-Pierre Chrétien wrote: >> Le 08/10/2017 à 05:39, Scott Kostyshak a écrit :
>> > > Sort the language nesting mess with polyglossia >> > > When using polyglossia, lyx was making a real mess when changing >> > > language inside nested insets. The \begin{language} and >> > > \end{language} commands were not well paired such that they could >> > > easily occur just before and after the start or end of an >> > > environment. Of course this was causing latex errors such that >> > > "\begin{otherlanguage} ended by \end{environment}". >> > > There may still be some cases I did not take into account. If I remember right, the output for babel and polyglossia was the same but babel is more tolerant towards mix up of nesting. >> It seems that the Xetex error that I get with the lettre template is >> of that kind. I was about to write to the class author about this, but >> it seems thus that is is a LyX bug, right? > I don't know. From what I remember lettre started failing for me after a > TeX Live update. If it were a LyX bug, I wonder why it worked before. The same as with babel vs. polyglossia: a wrong nesting tolerated in a previous version but problematic in the new one. Could be tested on the LaTeX source level... Günter