This is a follow up to: Accents with eulervm and LuaLaTeX
I am using lualatex with beamer and get and undefined control sequence
error when using \dot
or \ddot
Specifying the option OT1
works, but the math font is then serif if used with \usefonttheme{professionalfonts}
or I don't get euler font for e.g. the x
if used without \usefonttheme{professionalfonts}
% !TeX program = lualatex
% !TeX encoding = UTF-8
% !TeX spellcheck = en_US
% !BIB program = biber
\documentclass[lualatex, aspectratio=169, 10pt, english]{beamer}
\usetheme[subsectionpage=simple]{metropolis}
\usefonttheme{professionalfonts}
\usepackage[OT1,euler-digits]{eulervm}
\begin{document}
\begin{frame}
Text
\begin{align}
E &= \sin(x)\\
\dot{y}
\end{align}
\end{frame}
\end{document}
How can I fix this?