Hi again: 1) =тук= will use \ttfamily. My example explicitly says *not* to use it, remove that and everything will work as expected. 2) I'm OK with the warning. I was reading > Reading the existing paragraph, I cannot see that specifying Roman, > Sans-Serif, and Monotype is mandatory. as _imposing_ the definition of all fonts. As a matter of fact, the document classes come with a set of fonts and if you are OK with them and there is no complain, you don't need to d anything.
Best, /PA PS: the MWEs are based on the n-hundred letters I have been forced to write over the last couple of years to my (stupid) building management commision. I have a yasnippet and a tempel template for it ;-) On Fri, 26 Dec 2025 at 12:47, Ihor Radchenko <[email protected]> wrote: > Pedro Andres Aranda Gutierrez <[email protected]> writes: > > > consider the following examples: > > > > #+begin_src org > > ,#+OPTIONS: toc:nil > > ,#+LATEX_COMPILER: lualatex > > > > ,#+LATEX_HEADER: \setmainfont{DejaVu Serif} > > > > We only need to change the _main_ class to get a /viable/ document as > long > > as we > > don't use the *other* families. > > > > ,# Local variables: > > ,# org-latex-classes: (("article" > "\\documentclass[a4paper,12pt]{article}")) > > ,# end: > > #+end_src > > ... > > After trying them out, do you not feel that the extra burden on the user > by > > _mandating_ that *all four* font families be defined is unacceptable? > > Not sure. > Yes, you may get along with partially specifying fonts, but... > > Try the following: > > #+OPTIONS: toc:nil > #+LATEX_COMPILER: lualatex > > #+LATEX_HEADER: \setmainfont{DejaVu Serif} > > We only need to change the _main_ class to get a /viable/ document as long > as we > don't use the *other* families. =тук= тук > > # Local variables: > # org-latex-classes: (("article" "\\documentclass[a4paper,12pt]{article}")) > # end: > > When compiling it, you will see > ⛔ Warning (ox-latex): PDF file produced with warnings: [Missing > character(s): please load an appropriate font with the fontspec package] > > which refers to =тук=. However, it may be confusing for users - тук > renders just fine. In a much more complex document I would be left > wondering how come I specified unicode DejaVu Serif, but still get > missing characters. > > Not to say that we should *demand* users to set all the fonts, but we > should clearly warn that 4 fonts may be necessary. > > -- > 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" (ORF: Als Radiohören gefährlich war) => write BE! Year 1 of the New Koprocracy
