English environment is changed to textenglish

ehud.behar at protonmail.com ehud.behar at protonmail.com
Mon Feb 21 09:20:33 UTC 2022


What do you mean "I have just fixed it"?

-------- Original Message --------
On Feb 21, 2022, 10:55, Jürgen Spitzmüller via lyx-users wrote:

> Am Sonntag, dem 20.02.2022 um 18:00 +0000 schrieb tush via lyx-users:
>> Please consider the two lyx files attached.
>> It is a MWE of a book that includes mainly Hebrew but also some
>> English.
>>
>> The wrong thing here is that the last line is converted in LyX (via
>> the Code Preview Pane) as
>> \begin{english}
>> Some text in English. This should be left aligned.
>> \end{english}
>>
>> but when exporting `main.lyx` to tex (via XeTeX), this English
>> sentence is formatted as
>>
>> \textenglish[variant=american]{Some text in English. This should
>> be left aligned.}
>>
>> which causes the line to be right aligned.
>>
>> Why is it?
>
> This is a bug in LyX. I have just fixed it.
>
>> How to keep the English line of text to be inside an English
>> environment?
>
> Workaround is to write \setLTR in TeX mode at the beginning of the
> English paragraph, having the TeX mode inset itself in Hebrew. See
> attached.
>
> Jürgen
>
> --
> lyx-users mailing list
> lyx-users at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220221/032e73b2/attachment-0001.html>


More information about the lyx-users mailing list