Pedro Andres Aranda Gutierrez <[email protected]> writes: > I'm getting a bit worried that this conversation is going in circles that > only delay the real target, which should be having an alternative support > for font configuration in ox-latex.el... > > Let me recap what has happened so far: > ... > Now, let's try a completely different approach to explaining the > variables... > ... > Then you create your variable. In this case, as a loval variable, you can > go for > > # org-latex-babel-font-config: '((nil :fonts (("rm" :font > "NewComputerModern10")))) > ...
We are on the same page here. > The org-latex-... variables I have included (hopefully) make it easy to map > what you see in the manuals and in this and other sites to your needs. > (At least easier than writing the whole stuff in LaTeX). My point is that I still believe that we can make the variables easier to use. Recall that I first raised this topic in https://list.orgmode.org/orgmode/87y0pxwpwo.fsf@localhost/ We postponed that discussion at that time, and I am bringing it back now, as I believe that we need to finish it before merging the branch. Before putting more concrete proposals on simplification, I would like to make sure that I have a clear understanding about similarities and differences between fontspec, polyglossia, and babel for font setup. As of now, I feel that the font configuration has a lot in common: we have default fonts per each script type, and we may have per-language fonts. There are differences, but I'd like to figure out if we really need to map every single feature of polyglossia/babel into variables exposed to Org users. As of now, for me, it looks like we do not need a special configuration for default fonts for babel. Instead, we can simply use fontspec defaults (babel falls back to them by default). Further, :tag in polyglossia does not seem necessary. We should be perfectly fine if we do not expose this feature to Org users. Finally, it looks like we do not have to force users specifying individual fonts for each rm/sf/tt script for babel. We can provide default per-language font just as we do for polyglossia. With the above 3 points, font configuration will become more uniform: 1. fontspec-config will set the defaults when per-language setting is not provided + fallbacks for lualatex. 2. polyglossia-config and babel-config will provide the same set features - per-language font settings, optionally also specifying language + script combinations. Then, the value formats for polyglossia-config and babel-config can be made the same, reducing the learning barrier. -- 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>
