Because I cannot be dependent on a particular package (drm), I need to emulate it as best as possible, which works fine until I decide to load unicode-math. Please consider this MWE which is cut so it only shows the error:



When you compile this document using XeLaTeX you receive the error message Command \textdied unavailable in encoding EU1. When I decide not to load unicode-math and only load fontspec the code works as expected, which seems to indicate that the former package alters the fontencoding somewhere. Does anyone know how to solve this issue while retaining the unicode-math package?


You should use neither \fontspec nor \providecommand:

  • using \fontspec is not recommended, because very inefficient;
  • \textdied already has a definition as a TS1 command when unicode-math is loaded, so `\providecommand does nothing





I have changed the size choices, but it's not very important.

The \UndeclareTextCommand is used in order to avoid the original definition to kick in; \normalfont ensures shape and weight parameters are reset, so in an italic or boldface context the symbol will print anyway.

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.