Raised in https://github.com/josephwright/siunitx/issues/728 - at present the standard settings use \ifmmode ... \else ... \fi for various unit symbols and fail to protect from expansion in literal mode (where \protected@edef is applied). This should be fixed by shifting to \TextOrMath or similar.
Raised in https://github.com/josephwright/siunitx/issues/728 - at present the standard settings use
\ifmmode ... \else ... \fi
for various unit symbols and fail to protect from expansion in literal mode (where\protected@edef
is applied). This should be fixed by shifting to\TextOrMath
or similar.