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

Anonymous warnings #552

Open LambdaP opened 3 years ago

LambdaP commented 3 years ago

Description

The documentation for the package (version 0.8q, dated 2020/01/31) says the following:

This package can produce a number of informational messages to try and inform the user when something might be going wrong due to package conflicts or something else. As an experimental feature, these can be turn off on an individual basis with the package option warnings-off which takes a comma-separated list of warnings to suppress. A warning will give you its name when printed on the console output; e.g.,

* unicode-math warning: "mathtools-colon"
*
* ... <warning message> ...

This warning could be suppressed by loading the package as follows:

\usepackage[warnings-off={mathtools-colon}]{unicode-math}

The warnings-off option is a welcome addition because of a couple of harmless warnings that come by default when one uses other standard packages such as mathtools. However, there is a discrepancy between the documentation and the behavior of the package. Namely, when compiling my document (with LuaLaTeX, using revision 53609 of the package)…

Package unicode-math Warning: Using \overbracket and \underbracket from
(unicode-math)                `mathtools' package.
(unicode-math)
(unicode-math)                 Use \Uoverbracket and \Uunderbracket for
(unicode-math)                original `unicode-math' definition.

…the name of the warning (mathtools-overbracket in this case) is absent, and I have to go dig into the source code to find it, which is annoying. I think the best solution to the problem of identifying the name of the warning would be to simply make the package conform with its documentation.

I haven’t tried with XeLaTeX, or tried to get it down to a MWE at all, but I can do the latter if so desired.

ArchangeGabriel commented 3 years ago

Thank you @LambdaP for making me discover the option, as well as the name of the two warnings I actually get (mathtools ones like you). :)