add tag
UdiB
Consider the following beamer file:

```
\documentclass{beamer}
\usepackage{fontspec}
\setsansfont{Arial}
\usefonttheme[onlymath]{serif}

\usepackage{siunitx}
\sisetup{%
input-digits = 0123456789\pi,per-mode = fraction,range-units = single,
}
\AtBeginDocument{\sisetup{unit-font-command = \mathrm}}
\usepackage{polyglossia}
\setdefaultlanguage[variant=american]{english}

\begin{document}
\begin{frame}{example}
$x=\mu$; A distance equal to \qty{100}{\um}.
\end{frame}
\end{document}
```

I want the equations and the units' symbols to be typed in serif font. That's why I do`\usefonttheme[onlymath]{serif}` and `\AtBeginDocument{\sisetup{unit-font-command = \mathrm}}`.

But I noticed that the `μ` in micro meter units is typed in the beamer main document font. How to fix it?

![Untitled.png](/image?hash=cbdbc0dca694e0abb4ed2ff2b9c67c7387a2da490f07c5fef931475aa1f91359)
Top Answer
samcarter
You redefine micro to e.g. use the upright μ from the `upgreek` package:

```
% !TeX TS-program = lualatex
\documentclass{beamer}
\usepackage{fontspec}
\setsansfont{Arial}
\usefonttheme[onlymath]{serif}

\usepackage{siunitx}
\sisetup{%
  input-digits = 0123456789\pi,
  per-mode = fraction,
  range-units = single,
}
\AtBeginDocument{\sisetup{unit-font-command = \mathrm}}

\usepackage{upgreek}
\DeclareSIPrefix{\micro}{\upmu}{-6}

\begin{document}
\begin{frame}  
\frametitle{example}
$x=\mu$; A distance equal to \qty{100}{\um}.
\end{frame}
\end{document}  
```

![document-1.png](/image?hash=4b99814a64bb32ccc8748e95a9381161228e146836e8444592ea7875e7d45eb6)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.