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

2025-04-20 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: >> You are replacing amsmath with mathspec in xetex and unicode-math in >> lualatex. >> > > Yes I was tempted to use unicode-math in both, but refrained... Looks like modern unicode-math supports both, so why not? > According to https://ctan.org/pkg/unicode

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

2025-04-20 Thread Pedro Andres Aranda Gutierrez
Answers inline /PA On Sun, 20 Apr 2025 at 13:51, Ihor Radchenko wrote: > Pedro Andres Aranda Gutierrez writes: > > > this is the first of a series of patches for font management. This one is > > independent of the > > fallback or font selection mechanism. So I'm sending it separately. > > Than

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

2025-04-20 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > this is the first of a series of patches for font management. This one is > independent of the > fallback or font selection mechanism. So I'm sending it separately. Thanks! > --- a/etc/ORG-NEWS > +++ b/etc/ORG-NEWS > @@ -335,2 +335,2 @@ This option makes

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

2025-04-19 Thread Pedro Andres Aranda Gutierrez
Of course, I'll check out! /PA On Sat, 19 Apr 2025 at 16:11, Ihor Radchenko wrote: > Pedro Andres Aranda Gutierrez writes: > > >> I've attached an example .tex (lualatex) file, with bits and pieces from > >> many discussions at tex.stackexchange and elsewhere. > >> The structure would allow us

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

2025-04-19 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: >> I've attached an example .tex (lualatex) file, with bits and pieces from >> many discussions at tex.stackexchange and elsewhere. >> The structure would allow us to create two custom variables to generate >> the code: >> >> one for the direct lua fallback l

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

2025-04-18 Thread Pedro Andres Aranda Gutierrez
Hi Max, Answers inline. On Fri, 18 Apr 2025 at 19:05, Max Nikulin wrote: > On 18/04/2025 15:13, Pedro Andres Aranda Gutierrez wrote: > > > > I think that trying to address all mappings out-of-the-box is not very > > realistic and would add too much noise. > > Just necessary mappings (for specif

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

2025-04-18 Thread Max Nikulin
On 18/04/2025 15:13, Pedro Andres Aranda Gutierrez wrote: I think that trying to address all mappings out-of-the-box is not very realistic and would add too much noise. Just necessary mappings (for specific document) instead of all ones should not be perceived as noise. luaotfload.add_f

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

2025-04-18 Thread Pedro Andres Aranda Gutierrez
And the file ;-) /PA On Fri, 18 Apr 2025 at 10:12, Pedro Andres Aranda Gutierrez < paag...@gmail.com> wrote: > HI again > > I've attached an example .tex (lualatex) file, with bits and pieces from > many discussions at tex.stackexchange and elsewhere. > The structure would allow us to create two

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

2025-04-18 Thread Pedro Andres Aranda Gutierrez
HI again I've attached an example .tex (lualatex) file, with bits and pieces from many discussions at tex.stackexchange and elsewhere. The structure would allow us to create two custom variables to generate the code: one for the direct lua fallback list and another for the \set...font mappings I

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

2025-04-17 Thread Pedro Andres Aranda Gutierrez
HI, interesting... I have been giving this a thought, Maybe what we should have are two things: 1. an alist for setting the main, sans and mono font with a reasonable default value (Free... seems to be available by default in a quite cross-OS manner - I'm testing with macOS, a couple of

Re: Help request ... was Re: [PATCH]: Add font specifications when exporting to LaTeX

2025-04-17 Thread Max Nikulin
On 15/04/2025 12:49, Pedro Andres Aranda Gutierrez wrote: Calling out to the list to see if someone can help more scripts integrate and show. I have currently running the Latin-x, Greek, Cyrillics, some UTF-8 (see my original file in this thread) and Emoticons. Sanskrit/Devanagari fonts not

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

2025-04-17 Thread Max Nikulin
On 13/04/2025 14:56, Ihor Radchenko wrote: Max Nikulin writes: This list looks like a set of fallback variants for primary font, not as options to try when some characters are missed. Perhaps it may be reasonable to have predefined configuration for widely used fonts like Noto, freefonts, DejaVu

Re: Help request ... was Re: [PATCH]: Add font specifications when exporting to LaTeX

2025-04-14 Thread Pedro Andres Aranda Gutierrez
Hi Calling out to the list to see if someone can help more scripts integrate and show. I have currently running the Latin-x, Greek, Cyrillics, some UTF-8 (see my original file in this thread) and Emoticons. The file attached by Ihor is actually and org file and not a tex file ;-). > El 14 abr

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

2025-04-14 Thread Pedro Andres Aranda Gutierrez
I’ve been playing with old-style search engine suggestions and the Noto fonts (which seem to be installed with TexLive) and have come up with a MWE with “challenging” UTF-8 and emojis… WDTY? Additional code to generate by org-mode is limited in size: —— cut here —— #+OPTIONS: num:nil toc:nil #+

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

2025-04-14 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > I’ve been playing with old-style search engine suggestions and the > Noto fonts (which seem to be installed with TexLive) and have come up > with a MWE with “challenging” UTF-8 and emojis… WDTY? Additional code > to generate by org-mode is limited in size:

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

2025-04-13 Thread Pedro Andres Aranda Gutierrez
PS: Free* means the Free* _fonts_ On Sun, 13 Apr 2025 at 10:49, Pedro Andres Aranda Gutierrez < paag...@gmail.com> wrote: > A bit more info > > With lualatex, I get > > luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: File > not found: > "/usr/lib/firefox/fonts/TwemojiMozilla.tt

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

2025-04-13 Thread Pedro Andres Aranda Gutierrez
A bit more info With lualatex, I get luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: File not found: "/usr/lib/firefox/fonts/TwemojiMozilla.ttf"texmf-dist/tex/luatex/luaotfload/luaotfload-fallback.lua:50: attempt to inde x a nil value (local 'f'). relax l.19 ... Serif}[Raw

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

2025-04-13 Thread Ihor Radchenko
Max Nikulin writes: >> \directlua{ >> luaotfload.add_fallback("global_fallback", { >> "Noto Serif:mode=harf;", % 1st: Broad Unicode coverage >> "DejaVu Serif:mode=harf;", % 2nd: Common Linux/Windows font >> "FreeSerif:mode=harf;",% 3rd: Common TeX Live font >>

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

2025-04-12 Thread Max Nikulin
On 12/04/2025 21:28, Ihor Radchenko wrote: % = UNIVERSAL FALLBACK STACK = % (Only activates when default font lacks glyphs) \directlua{ luaotfload.add_fallback("global_fallback", { "Noto Serif:mode=harf;", % 1st: Broad Unicode coverage "DejaVu Serif:mode=harf;", % 2nd

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

2025-04-12 Thread Ihor Radchenko
"Pedro A. Aranda" writes: > 0001 is a trivial way to clarify the warning about unsupported fonts > with a more 'blunt' language. This is what I said could go as a bug fix. Installed. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=066952da0b I removed the news entry as this chan