matze / mtheme

A modern LaTeX Beamer theme
6.33k stars 836 forks source link

Unable to compile using lualatex on Fedora 24 #218

Open Jerry-Ma opened 7 years ago

Jerry-Ma commented 7 years ago

Hi, I just started using this theme, and found that it won't compile if using lualatex while xelatex and pdflatex works just fine. (pdflatex does not pick up the Fira Sans font correctly though.)

The error message indicates that there is undefined control sequence in the sty file, to be specific, it's:

! Undefined control sequence.
\checkfont #1->\suppressfontnotfounderror 
                                      =1\font \x = "#1" at 10pt \selectf...

I believe this has to do with this thread. The current fix that I have is to add this line in fontthememetropolis.dtx:

  \providecommand\suppressfontnotfounderror{\luatexsuppressfontnotfounderror}
matze commented 7 years ago

Have you tried if this works? I don't have a current Fedora installation available to verify this fix.

Jerry-Ma commented 7 years ago

@matze yes. I added that providecommand line and it works for lualatex

sargas commented 7 years ago

Can confirm this on a new install of gentoo with LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) and commit caa3387782416bbd98f82968e6db1c60b4cf4d9c. The providecommand before \usetheme works as well.