Remove the \usepackage[magyar,english]{babel}
from the Preamble and switch in Document -> Settings... Language to Hungarian, then it will compile. Asking for help on a document with Disabled Editing is (thoughtlessly) rude. el On 2022-09-14 19:16 , Csikos Bela wrote: > Hello: > > I have an old document I made in lyx 2.0. Lyx 2.3.6.1 opens is but > interprets the code incorrectly and gives compilation error: > > In lyx 2.0 the latex code is: > > \selectlanguage{magyar}% > \begin{enumerate}[nosep] > \inputencoding{latin2}% > \item Első item.\inputencoding{latin9}\foreignlanguage{english}{}\\ > \foreignlanguage{english}{First item. }\selectlanguage{english}% > \end{enumerate} > > Opening the file in lyx 2.3.6.1 latex code is: > > \selectlanguage{magyar}% > \begin{enumerate}[\foreignlanguage{english}{nosep}] > \inputencoding{latin2}% > \item Első item.\inputencoding{latin9}\foreignlanguage{english}{}\\ > \foreignlanguage{english}{First item. }\selectlanguage{english}% > \end{enumerate} > > How can I convert or open my lyx 2.0 document in lyx 2.3 so that it > would work correctly? > > I attach the the lyx 2.0 file (MWE). > > Thanks, > > bcsikos > > -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users