latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
239 stars 28 forks source link

several packages are specified twice #603

Closed davidcarlisle closed 10 months ago

davidcarlisle commented 1 year ago

Description

several packages are specified twice with \RequirePackage

https://tex.stackexchange.com/q/660627/1090

\RequirePackage{xparse,l3keys2e}
\RequirePackage{fontspec}
\RequirePackage{fix-cm}
\RequirePackage{amsmath}
\RequirePackage{lualatex-math}
\cs_set_protected:Npn \__um_after_package:nNn #1 #2 #3
  {
    \AtBeginDocument
      {
        \cs_new_protected:Npn #2 {#3}
        \@ifpackageloaded {#1} {#2} {}
      }
  }
\RequirePackage{xparse,l3keys2e}
\RequirePackage{fontspec}
\RequirePackage{fix-cm}
\RequirePackage{lualatex-math}
wspr commented 10 months ago

I think this was fixed up somewhere somehow.