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.

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

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.

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.

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

Reply via email to