I have a document, where for different reasons, I use unicode-math
and siunitx
. When I load unicode-math
some units whose symbols are usually slanted (as math variables) are not slanted anymore.
Why is that? Do you know a workaround?
Here it is the minimal example:
\documentclass{article}
\usepackage{siunitx}
\usepackage{unicode-math}% this makes e appear straight (not math)
\begin{document}
\noindent
\SI{1.234}{\planckbar^{-4}\elementarycharge^{2}} %the outcome depends on loading unicode-math
$1.234 \hbar^{-4} e^2$ %this is always ok
\end{document}
Output (note the e
symbol, electron charge, it should appear slanted)