On Thu, Dec 22, 2022 at 2:49 PM Jürgen Spitzmüller <jspi...@gmail.com> wrote:
> Am Donnerstag, dem 22.12.2022 um 10:39 +0000 schrieb Udicoudco: > > You can simply select "Language package: always babel" if you want > babel with LuaTeX. > > It seems that I can not pass the options i want to babel from the document class declaration, if you will try to move all the babel option to the document class declaration in the newfile1.tex you will see the problem. Also LyX still adds the \R and \L macros with this configuration, even though they are not defined. Unrelated to my specific problem, I think it would make more sense to prevent LyX from wrapping things with \R, \L and similar macros when you prevent LyX from adding a language package automatically, as this will make this option unusable sometimes. I could write in my preamble "\let\R\relax" to prevent the error ! Undefined control sequence. <recently read> \R for example , but the exported code would contain a lot of unnecessary \R's and \L's. Another issue with using LyX and LuaTeX with RTL language is identical to this ticket <https://www.lyx.org/trac/ticket/9686> I mentioned previously. The file RTL_tabular_lua2.lyx demonstrates that. > > That's an effect of the fix to > https://www.lyx.org/trac/ticket/10548 > > > If I understand, any layout that is tagged as forceRTL is wrapped with \LRE (or \L if not using polyglossia), except ERT. Since this does not affect math equations in any way (as they are always printed LTR), I think that equations should be an exception too. Math equations sometimes appear a lot in a document, and this \LRE can cause some spacing problems (see for example this post <https://tex.stackexchange.com/questions/610036/bidi-lre-command-causes-too-much-vertical-space-if-put-at-end-of-an-item-in-a-li>, and this post <https://tex.stackexchange.com/questions/611598/stop-lyx-from-automatically-wrapping-formulas-with-lre-in-hebrew> ), and it makes the latex code unreadable without any advantage. Could math equations be an exception just as ERT? Best Regards, Udi > -- > lyx-devel mailing list > lyx-devel@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-devel >
RTL_tabular_lua2.lyx
Description: application/lyx
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel