From a6772a045093c36e2ef3a1b128804bc78c644fb6 Mon Sep 17 00:00:00 2001 From: Erik Hahn Date: Sat, 6 Jun 2015 20:55:18 +0200 Subject: [PATCH 1/2] Use Fira fonts when compiling with Luatex --- beamerthemem.sty | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/beamerthemem.sty b/beamerthemem.sty index b8b8ac4..b634f7c 100644 --- a/beamerthemem.sty +++ b/beamerthemem.sty @@ -52,14 +52,24 @@ \RequirePackage{etoolbox} \RequirePackage{tikz} \RequirePackage{pgfplots} -\RequirePackage{ifxetex} +\RequirePackage{ifxetex,ifluatex} +\newif\ifxetexorluatex +\ifxetex + \xetexorluatextrue +\else + \ifluatex + \xetexorluatextrue + \else + \xetexorluatexfalse + \fi +\fi \usetikzlibrary{backgrounds} \usetikzlibrary{calc} \usecolortheme{metropolis} -\ifxetex +\ifxetexorluatex \usefonttheme{metropolis} \else \PackageWarning{beamerthemem}{You need to compile with XeLaTeX for the Fira fonts.} From 8fe6d5dcc8c4c265b4cd55552caab1d390fa8724 Mon Sep 17 00:00:00 2001 From: Erik Hahn Date: Sun, 7 Jun 2015 01:34:41 +0200 Subject: [PATCH 2/2] Also mention Lualatex in the warning message --- beamerthemem.sty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beamerthemem.sty b/beamerthemem.sty index b634f7c..437410f 100644 --- a/beamerthemem.sty +++ b/beamerthemem.sty @@ -72,7 +72,7 @@ \ifxetexorluatex \usefonttheme{metropolis} \else - \PackageWarning{beamerthemem}{You need to compile with XeLaTeX for the Fira fonts.} + \PackageWarning{beamerthemem}{You need to compile with XeLaTeX or LuaLaTeX for the Fira fonts.} \fi %}}}