Answers inline

/PA

On Sun, 20 Apr 2025 at 13:51, Ihor Radchenko <yanta...@posteo.net> wrote:

> Pedro Andres Aranda Gutierrez <paag...@gmail.com> 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 ~org-cite~'s ~basic~ insert
> processor use
> >  It can also be set to dynamically compute ~crm-separator~ so that the
> >  separator does not appear in completion candidates.
> >
> > +*** LaTeX export font management is changing
> > +Exporting to LaTeX and Beamer is undergoing a gradual change:
> > +1. Default font management packages follow [[
> https://github.com/jgm/pandoc/blob/main/data/templates/fonts.latex][~pandoc~
> conventions]]
>
> Please write news entry that reflect actual changes made in the patch,
> not planned changes. Otherwise, this patch cannot qualify as a separate
> patch.
>

OK.


> (Note that another option could be you creating a new git feature branch
> and accumulating commits there.  Then, you can put NEWS entry after a
> series of commit, summarizing all the changes.  We can merge that branch
> after it is finished.)
>



> >  (defcustom org-latex-default-packages-alist
> > -  '(;; amsmath before fontspec for lualatex and xetex
> > -    (""     "amsmath"   t ("lualatex" "xetex"))
> > -    ;; fontspec ASAP for lualatex and xetex
> > -    (""     "fontspec"  t ("lualatex" "xetex"))
> > +  '(;; fontspec is loaded by either of these
> > +    (""     "mathspec"     t ("xetex"))
> > +    (""     "unicode-math" t ("lualatex"))
>
> 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...

According to https://ctan.org/pkg/unicode-math,
>
>     here are some differences between the legacy mathematical
>     definitions in LATEX and amsmath, and the Unicode mathematics
>     definitions. Care should be taken when transitioning from a legacy
>     workflow to a Unicode-based one.
>
> We need to explore this further.
>

I was just trying to mimic what pandoc is doing as per your suggestion ;-)


> https://ctan.org/pkg/mathspec documentation says that it may still
> require amsmath:
>
>     If amsmath is required, it must be loaded earlier than mathspec
>
> also,
>
>     The package is under development and later versions might to be
>     incompatible with this version, as this version is incompatible with
>     earlier versions
>
> So, it may not be wise to use mathspec.
>

So, do you suggest to stay with unicode-math for everybody? That would be
the other
path to go. OK, yes, warning everybody using lualatex/xetex that we are
using unicode-math
and that they may need to fine-tune their documents...


>
> --
> 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>
>

best, /PA
-- 
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

Reply via email to