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}

E &= \sin(x)\\


How can I fix this?

2 Answers 2


I had the same problem and found an answer using this question Eulervm and LuaLaTeX results in wrong front for math operators. This is not very elegant, but it does work for Windows fonts as well (I'm using Corbel here).

My solution:





% this simply redefines all the accents and keeps the operators in Corbel font




  1+ \hat{\sin} \hat{x} \tilde{x} \foo \quad \text{sin}


Hope this helps either you or the next person who wants to use both eulervm and luatex (and maybe even Windows fonts).


Compiling your example on a TeXLive (linux), I get Fira Sans (Light weight) fonts for text and indeed CM (serif) fonts for maths.

You can choose the matching Fira maths fonts (sans serif only available in Regular weight ) rather than 8-bits fonts by adding

\setmainfont{Fira Sans} % for math operators
\setsansfont{Fira Sans} % for text (instead of the light version)
\setmathfont{Fira Math}

Output: enter image description here or if you prefer Euler fonts (no math italics), you could try

\setmainfont{Fira Sans Light}[Scale=0.88] % for math operators

Output: enter image description here The latter (euler.otf) is not included in TeXLive, it is available github.com/khaledhosny/euler-otf but the project looks like abandoned, sigh…

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .