using the beamer class theme metropolis, I stumbled over the physics package's \dv{} command. This MWE illustrates the issue:
\documentclass{beamer}
\usetheme{metropolis}
\usepackage{physics}
\begin{document}
\begin{frame}
Usual math is sans-serif: $12 + 4 = x^2$.
Physics package not necessarily: $\dv{x}{y} \neq \pdv{i}{k}$.
\end{frame}
\end{document}
Usually, the theme takes good care of its math font and typesetting everything sans-serif. Yet, the physics package seems to use a completely different, serif font. How do I fix this?

\diffd:\def\diffd{\mathop{}\!\mathsf{d}}. Compare space before dx with your definition and with mine, in$I=\int_a^b f(x)\dd x$. – quark67 Jan 18 '19 at 04:14physicspackage defines it. I'm not going to challenge that there are better ways to define it. – samcarter_is_at_topanswers.xyz Jan 18 '19 at 09:12