Hi

On Mon, 9 Jun 2025 at 19:25, Ihor Radchenko <yanta...@posteo.net> wrote:

> Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes:
>
> > Could make sense.
> > However, I would like to postpone this until I finish the code I'm
> working
> > on right now (give me a week).
>
> Sure. I just got an impression from one of your recent email that the
> branch is in near-final state.
>

It was until I found a chunk of code I really couldn't make out what it was
doing and which I couldn't integrate my code with.
So I'm working on a different approach to cover all lualatex/xelatex
scenarios, which I think might interesting to pursue.

> And I would also like us all to think about the presence of
> > \usepackage{polyglossia/babel},
> > because keeping this makes the code really difficult to understand and
> > maintain.
> > I do understand this is a breaking change, but there are other breaking
> > changes around, so why not?
>
> I do not quite understand the problem you are referring to.


OK, so let's elaborate a bit more. Currently we have a two pass approach.
First we generate some LaTeX code.
Then we go through the code we generated before and start replacing stuff
(mainly language names).
The replacement code is somehow complex and small details sometimes pass
inadverted until it is too late.
And, on top of that, it makes the generation of the set..font, babelfont,,
etc. commands really hard.

My  approach is to allow for a configuration that doesn't use the
#+LATEX_HEADER mechanism at all based on
keywords for languages and multi-language packages and custom variables for
font mapping.
For lualatex, the default values for the custom variables will import
fontspec and unicode-math and leave the rest to the #+LATEX_HEADER.
AFAIK this is compatible with the current main branch.
I'm using my lecture notes and presentations as personal test cases,
because I don't want to shoot myself in the foot ;-)

We can further discuss in the next meetup.

Best, /PA

> --
> 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>
>


-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Sagen's Paradeiser, write BE!
Year 1 of the New Koprocracy

Reply via email to