English environment is changed to textenglish
Jürgen Spitzmüller
spitz at lyx.org
Mon Feb 21 08:55:04 UTC 2022
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ch01.lyx
Type: application/x-lyx
Size: 2844 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220221/b5a27e65/attachment.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220221/b5a27e65/attachment.asc>
More information about the lyx-users
mailing list