From a6772a045093c36e2ef3a1b128804bc78c644fb6 Mon Sep 17 00:00:00 2001 From: Erik Hahn Date: Sat, 6 Jun 2015 20:55:18 +0200 Subject: [PATCH] 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.}