English environment is changed to textenglish

ehud.behar at protonmail.com ehud.behar at protonmail.com
Sun Feb 20 18:00:32 UTC 2022


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? How to keep the English line of text to be inside an English environment?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220220/c540336f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hebrew and english.zip
Type: application/zip
Size: 31689 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220220/c540336f/attachment-0001.zip>


More information about the lyx-users mailing list