Pedro Andres Aranda Gutierrez <[email protected]> writes:

> Attached is your MWE in a better shape. The font config section at the
> bottom is to make the process more readable. At the end, the font
> configuration should be in the .dir-locals.el or in the emacs init code.
>
> The main thing in an RTL document using polyglossia is that you need to
> somehow mark the LRT parts (see for a different context:
> https://github.com/reutenauer/polyglossia/blob/master/doc/example-arabic.tex
> )
> So, I inserted the Latex \LR{} command for the title and enclosing the
> listing.
>
> This is not org or ox-latex specific but rather a LaTeX (polyglossia) quirk.

I still believe that it is not expected that *code blocks* are
inheriting RTL. What about marking them as
\begin{english}...\end{english} or \foreignlanguage... when we use
non-english environment?

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to