From abb9e892e48d32936a35510cb0dc057a27231f42 Mon Sep 17 00:00:00 2001 From: Artem Klevtsov Date: Wed, 14 Sep 2016 16:24:12 +0700 Subject: Custom font families for beamer Adding ability to define custom font families. Needed for correct `polyglossia` operation with Cyrillic fonts and perhaps can find some other usages. Example usage in YAML metadata: ``` fontfamilies: - name: \cyrillicfont font: Liberation Serif - name: \cyrillicfonttt options: Scale=MatchLowercase font: Liberation Mono ``` --- default.beamer | 3 +++ 1 file changed, 3 insertions(+) diff --git a/default.beamer b/default.beamer index 3219028f8..a54519ced 100644 --- a/default.beamer +++ b/default.beamer @@ -24,6 +24,9 @@ $endif$ \usepackage{fontspec} \fi \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} +$for(fontfamilies)$ + \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$} +$endfor$ $if(euro)$ \newcommand{\euro}{€} $endif$ -- cgit v1.2.3