Hi Reinhard,
Thanks for the detailed report.
I’m afraid this issue has been logged in the past (albeit relatively recently) and I haven’t had the time to look into it properly. It certainly needs to be addressed. See: https://github.com/wspr/unicodemath/issues/497
Regarding the loading order, I have even thought that unicodemath should load amsmath automatically, but I shy away from present unicodemath as a onestopshop. I’ll revisit whether I can force a more explicit warning or error, even if it’s via changes to amsmath.sty itself.
Thanks also for the invite to BachoTeX — I would truly love to go, I just need to line it up one year with some additional conference travel to make it worth the lengthy trip. (It looks like Adelaide to Bydgoszcz is 2 or 3 stops and 30+ hrs travel time…)
Regards,
Will
> On 28 Apr 2019, at 2:23 pm, Reinhard Kotucha <[log in to unmask]> wrote:
>
> Hello Will,
> when I load unicodemath after amsmath, the amsmath option intlimits
> has no effect any more. The options sumlimits and namelimits still
> work as expected.
>
> \documentclass{article}
> \usepackage[intlimits,sumlimits,namelimits]{amsmath}
> \usepackage{unicodemath}
>
> \begin{document}
> \[ \int_{0}^{1} \]
> \[ \sum_{i=0}^{1} \]
> \[ \lim_{x\to\infty} \]
> \end{document}
>
> Even worse, when I reverse the order (loading unicodemath first), the
> operator \lim is printed in italics. This is so strange that I can't
> believe it. Can anybody confirm this behavior?
>
> I tested with both, lualatex and xelatex and TeX Live 2012, 2013,..,2019.
> Same result, as expected.
>
> The above is a minimal example. When unicodemath is loaded first I
> only get a warning "Package amsmath Warning: Unable to redefine math
> accent \mathring.". But when I use other fonts like TeX Gyre Pagella
> with fontspec and texgyrepagellamath.otf with unicodemath, I get
> zillions of error messages about already defined control sequences.
>
> Thus I suppose that amsmath has to be loaded before unicodemath
> unconditionally. If this assumption is true it would be better if
> amsmath aborts with a meaningful error message if it detects an
> already loaded unicodemath.
>
> I'm aware that not all dependency issues can be resolved this way.
> ATM there are 180,000 files in TeX Live, three times more than ten
> years ago and the number is steadily growing. But if only the LaTeX
> core packages complain when loaded in an inappropriate order, that
> would be a great advantage.
>
> I'll meet Frank next week at the BachoTeX conference in Poland.
>
> Will, did you ever consider to attend this amazing conferece? Though
> it's [officially] the conference of the Polish TeX User Group, it's
> quite international. In the past it was attended by people from
> innumerable European countries, Japan, America, and Australia. The
> conference site (in a nature sanctuary) is an ideal place where
> families with [little] children can relax. BachoTeX even offers
> workshops which little kids can attend.
>
> See
> http://www.gust.org.pl/bachotex/bachotexpromo/bachotex1920x1080.pdf
>
> If you didn't register already, I really hope to meet you there next
> year.
>
> Regards,
> Reinhard
>
> 
> 
> Reinhard Kotucha Phone: +495113373112
> Marschnerstr. 25
> D30167 Hannover mailto:[log in to unmask]
> 
