Hi again Actually, what I would do after looking around is * short term (even as a bug fix in 9.7): modifying the error message and say that unsupported Unicode characters can only be dealt with in XETEX or LUALATEX. * Long term as a new feature in 9.8: introducing two custom variables, one to enable/disable setting fonts from customisation (we could have them enabled by default) and one with a list of three font names ("serif" "sans" and "mono") to add in the preamble.
Best, /PA On Wed, 2 Apr 2025 at 07:47, Ihor Radchenko <yanta...@posteo.net> wrote: > Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes: > > >> My main idea is making export work "by default" for more users. > >> Without having to set defcustoms. So, I'd prefer detecting non-ascii to > >> be done, if possible. > > > > I would at least give control over generating or not any header and then > > hard-code a reasonable set of font-related preamble code. > > > > (defcustom org-latex-generate-font-preamble > > nil > > "Set to non-nil to generate a font preamble. Default value is nil > > which means that you have to add it with > > #+LATEX_HEADER: > > ") > > This is ok for me. > > > I'd go for the "Free---" fonts in lualatex and see what we need in latex. > > Also fine. > > > That said, even having the infrastructure to auto-generate the font > >> preamble will be an improvement. > > > > BTW, what about changing the default LaTeX compiler to lualatex in 9.8? > > I doubt that it is a good idea. > Mainly because we can break documents that were working in Org <9.8. > We can discuss it though, but better separately - discussions about > changing defaults tend to generate long threads that are difficult to > move forward. > > -- > 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