From a365f4320519cd6ebeb512575849a4582aae4f45 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Tue, 17 Aug 2021 03:00:45 +0000
Subject: CTAN sync 202108170300

---
 macros/latex/contrib/siunitx/siunitx-unit.dtx | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'macros/latex/contrib/siunitx/siunitx-unit.dtx')

diff --git a/macros/latex/contrib/siunitx/siunitx-unit.dtx b/macros/latex/contrib/siunitx/siunitx-unit.dtx
index be3e6eaf61..2c76156563 100644
--- a/macros/latex/contrib/siunitx/siunitx-unit.dtx
+++ b/macros/latex/contrib/siunitx/siunitx-unit.dtx
@@ -2826,6 +2826,17 @@
   }
 %    \end{macrocode}
 %
+% Cover the case where the default font is sanserif.
+%    \begin{macrocode}
+\AtBeginDocument
+  {
+    \str_if_eq:eeTF
+      { \exp_not:o { \familydefault } }
+      { \exp_not:n { \sfdefault } }
+      { \keys_set:nn { siunitx } { unit-font-command = \mathsf } }
+  }
+%    \end{macrocode}
+%
 %    \begin{macrocode}
 %</package>
 %    \end{macrocode}
-- 
cgit v1.2.3

