Re: Fwd: [PATCH]: Add font specifications when exporting to LaTeX

2025-04-23 Thread Pedro Andres Aranda Gutierrez
Just a small progress report: I'm able to generate the following font prelude \directlua{ luaotfload.add_fallback ("fallback_sans",{ "Noto Color Emoji:mode=harf", "Noto Sans CJK JP:", }) luaotfload.add_fallback ("fallback_main",{ "Noto Color Emoji:mode=harf", "Noto Serif CJK JP:", })

Re: Fwd: [PATCH]: Add font specifications when exporting to LaTeX

2025-04-22 Thread Pedro Andres Aranda Gutierrez
Answers inlne On Tue, 22 Apr 2025 at 18:55, Max Nikulin wrote: > On 21/04/2025 18:07, Pedro Andres Aranda Gutierrez wrote: > > I could try to go for something like: > > > > (defvar org-latex-font-fallback-alist > >'(("main . '(("emoji" . "Noto Color Emoji:mode-harf") > > ("ha

Re: Fwd: [PATCH]: Add font specifications when exporting to LaTeX

2025-04-22 Thread Max Nikulin
On 21/04/2025 18:07, Pedro Andres Aranda Gutierrez wrote: I could try to go for something like: (defvar org-latex-font-fallback-alist   '(("main . '(("emoji" . "Noto Color Emoji:mode-harf")                ("han"   . "Noto CJK JP:")                ("kana"  . "Noto CJK JP:")))     ("sans". '((

Re: Fwd: [PATCH]: Add font specifications when exporting to LaTeX

2025-04-21 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > Would you be more comfortable with fallbacks for the individual families in > the font-mappings-alist? > I could try to go for something like: > > (defvar org-latex-font-fallback-alist > '(("main . '(("emoji" . "Noto Color Emoji:mode-harf") >

Re: Fwd: [PATCH]: Add font specifications when exporting to LaTeX

2025-04-21 Thread Pedro Andres Aranda Gutierrez
HI, After a lot of consideration, more testing and some reading (including pandoc, thanks again for the inspirational source) I feel that this is the best approach for a first generation of the patch. It would provide relief for many situations and a starting point for further improvement. This fu

Re: Fwd: [PATCH]: Add font specifications when exporting to LaTeX

2025-04-21 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > The font configuration is done in two variables: > > (defvar org-latex-font-mapping-alist > '(("main" . "Noto Serif") > ("sans" . "Noto Sans") > ("mono" . "Noto Sans Mono")) > "Set this alist for your font preferences when exporting to > LuaLaTe

Fwd: [PATCH]: Add font specifications when exporting to LaTeX

2025-04-20 Thread Pedro Andres Aranda Gutierrez
I had forgotten the list... sorry. To add to the message, I scan the buffer for charsets using a variant of the code proposed by Juan Manuel Macías some time ago... Sorry and Best, /PA -- Forwarded message - From: Pedro Andres Aranda Gutierrez Date: Sun, 20 Apr 2025 at 15:34 Subj