Re: Avoid inserting \beginL
On Fri, May 10, 2024 at 10:56 PM Ron Yutkin wrote: >> >> You can specify in the Language package "always babel" and pass the option >> in the document class options. >> > > How do I specify options in the document class options? In Document->Settings->Document Class->Class Options->Custom. I attached an example file. Udi newfile1.lyx Description: application/lyx -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Avoid inserting \beginL
> > You can specify in the Language package "always babel" and pass the option > in the document class options. > > How do I specify options in the document class options? My usepackage line is as follows: \usepackage[bidi=basic, layout=tabular, provide=*]{babel} Which I assume I should comment out, I then have: \babelprovide[main, import]{hebrew} \babelprovide{rl} Which I assume I shouldn't comment out. Thanks! -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Avoid inserting \beginL
On Fri, May 10, 2024, 9:06 PM Ron Yutkin wrote: > Hi, > > I'm using LyX for university and I'm trying to write a document in Hebrew > but I had to switch to using babel and LuaLaTeX due to some annoying > packages like so: > 1. Document Settings > Language > Language package > none > 2. Latex preamble: > > \usepackage[bidi=basic, layout=tabular, provide=*]{babel} > > \babelprovide[main, import]{hebrew} > > \babelprovide{rl} > > 3. File > Export > PDF (LuaTeX) > > > Once I try to export, I "undefined control sequence" on the following > commands: \beginL, \endL, \beginR, \endR, \R, \L > > It seems like LyX adds these around numbers and words in english. > Should be fixed in 2.4.0 which is about to release. Can you test with 2.4RC4? It is available in the download page in LyX's web page. You can specify in the Language package "always babel" and pass the option in the document class options. Udi > -- > lyx-users mailing list > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users > -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Avoid inserting \beginL
Hi, I'm using LyX for university and I'm trying to write a document in Hebrew but I had to switch to using babel and LuaLaTeX due to some annoying packages like so: 1. Document Settings > Language > Language package > none 2. Latex preamble: \usepackage[bidi=basic, layout=tabular, provide=*]{babel} \babelprovide[main, import]{hebrew} \babelprovide{rl} 3. File > Export > PDF (LuaTeX) Once I try to export, I "undefined control sequence" on the following commands: \beginL, \endL, \beginR, \endR, \R, \L It seems like LyX adds these around numbers and words in english. To mitigate this issue I tried to change the document language to English under Document settings > language and also ctrl+a > right click > language > english which then compiles successfully and looks correct thanks to babel. But when I do that, the text in LyX is backwards and I can't work like that, so I have to switch the language to english every time I want to export then switch back to hebrew when I want to edit my document. Another problem is that when I switch to english LyX swaps the parenthesis so they are swapped in the final PDF. It's not a very fun way to use LyX. Is there a way to tell LyX to not insert those commands? Or somehow disassociate the document display language from the compile language? (And set the compile to english and display to hebrew). Thanks. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users