On 18/07/2022 17:32, Juan Manuel Macías wrote:

For example, something like this:

latex-lang: babel(sorbian) variant(upper) provide(hebrew:import,hyphenrules=+) 
options(bidi=default), others(french,catalan)

returns:

\usepackage[french,catalan,uppersorbian,bidi=default]{babel}
\babelprovide[import,hyphenrules=+]{hebrew}

I have never tried so complex babel configuration. Should "latex-lang" options affect ox-latex in any way besides adding \usepackage[...]{babel} and \babelprovide[...]{...}? If not, maybe it is better to use

#+latex_header: \usepackage[french,catalan,uppersorbian,bidi=default]{babel}
#+latex_header: \babelprovide[import,hyphenrules=+]{hebrew}

directly and add default \usepackage[french]{babel} based on "#+language:" only in the case when babel is not loaded through "#+latex_header:". Currently such strategy is implemented for inputenc or some other package.


Reply via email to