Hmmm... I'd have to sleep over it. This is more a "user taste" issue IMvvHO.
I have a snippet for that including: #+LATEX_HEADER: \setmainfont{FreeSerif} #+LATEX_HEADER: \setsansfont{FreeSans} #+LATEX_HEADER: \setmonofont{FreeMono} but just as a snippet which I modify on demand (and quite often). I would not dare to impose anything to anyone or force people to add customisations for this, because I don't have a "standard" setup. I would put this kind of things in the org-mode documentation. But once again, IMvvHO /PA On Mon, 31 Mar 2025 at 18:38, Ihor Radchenko <yanta...@posteo.net> wrote: > Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes: > > > For lualatex you don't need the \fontspec package. > > > > #+LATEX_COMPILER: lualatex > > #+LATEX_HEADER: \setmonofont{DejaVu Sans Mono} % or another monospace > font > > with Unicode support > > We should really provide some way to select fonts for lualatex and > xelatex automatically... > > `x-list-fonts' should give us a way to check if a given font is > available and we can assemble a list of common fonts that might be used. > `font-has-char-p' can check if all the characters in latex > document can be displayed using that font. > Then, we can select the first available font from that list. Or at least > the font that covers most of the characters. > > -- > 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