Warnings when using Listings in a RTL document

Udicoudco udifoglle at gmail.com
Wed Mar 22 22:11:16 UTC 2023


On Wed, Mar 22, 2023 at 2:22 PM Scott Kostyshak <skostysh at lyx.org> wrote:
>
> On Wed, Mar 22, 2023 at 01:13:27PM +0100, Jürgen Spitzmüller wrote:
> > Am Mittwoch, dem 22.03.2023 um 12:54 +0200 schrieb Udicoudco:
> > > I think in the case of where forceLTR insets will have multiple
> > > paragraphs, it is better to use
> > > \begin{RTL}...\end{RTL}, which basically only issues \par and sets
> > > the
> > > RTL related conditionals
> > > to be false.
> >
> > Thanks for the detailed explanation. Could you please file a ticket on
> > trac?
>

Sorry Jürgen, I did not notice I hit reply instead of reply all in my
last email.
I'm currently having difficulties with getting access to the bug tracker. If
I will manage to log in, I'll do that, but this is not likely to happen.

> If there's a patch, I'd be happy to run it through the ctests. If I recall correctly, we have a good amount of tests for documents using Hebrew.

I attached a possible patch, it only fix the lstlisting case when
polyglossia is used, since babel-hebrew does not have an equivalent
to \begin{RTL}...\end{RTL} (or there is one?) and babel with luatex
does not need this kind of wrappers.

Regards,
Udi
> --
> lyx-devel mailing list
> lyx-devel at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Listings_LRE.diff
Type: text/x-patch
Size: 1177 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230322/843cd34f/attachment.bin>


More information about the lyx-devel mailing list