old lyx document in lyx 2.3.6 doesn't compile
Csikos Bela
bcsikos425 at freemail.hu
Wed Sep 21 19:50:34 UTC 2022
On 9/14/22 13: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,bcsikosThe problem seems to be that the "nosep" option for the enumeration
is in the wrong place. It might be getting crosswise with the
language changes. I got it to compile as follows.I removed the magyar option from the line in the preamble that
loads babel. This may not be necessary for you, but on my system
"magyar" is not recognized by babel as a language name.I deleted the "enumerate options" inset.I put the cursor at the start of item 1 and hit enter,
temporarily changing the text to item 2.In the new (empty) item 1 (which has reverted to English), I
used Insert > Enumerate Options to add back the "nosep"
option, then put the cursor after the inset and hit delete to
bring the original text back to item 1.HTH,PaulHello:Adding an option to enumitem in lyx 2.3.6. doesn't work if the list item has different language than the previous text. It works in lyx 2.0.6. It is a regression. I attach lyx, exported latex and compiled pdf files created with lyx 2.0.6 and 2.3.6.1.bcsikos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220921/7bc6efc7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enumitem-nosep-lyx2.0.6.lyx
Type: application/x-lyx
Size: 1989 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220921/7bc6efc7/attachment-0002.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enumitem-nosep-lyx2.0.6.tex
Type: text/x-tex
Size: 906 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220921/7bc6efc7/attachment-0002.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enumitem-nosep-lyx2.0.6.pdf
Type: application/pdf
Size: 18383 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220921/7bc6efc7/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enumitem-nosep-lyx-2.3.6.lyx
Type: application/x-lyx
Size: 2478 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220921/7bc6efc7/attachment-0003.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enumitem-nosep-lyx-2.3.6.tex
Type: text/x-tex
Size: 904 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220921/7bc6efc7/attachment-0003.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enumitem-nosep-lyx-2.3.6.pdf
Type: application/pdf
Size: 17060 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220921/7bc6efc7/attachment-0003.pdf>
More information about the lyx-users
mailing list