diff options
author | Artem Klevtsov <a.a.klevtsov@gmail.com> | 2016-09-14 16:24:12 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-14 16:24:12 +0700 |
commit | abb9e892e48d32936a35510cb0dc057a27231f42 (patch) | |
tree | 5f6e22251185e63c5ae776aeca9e6862c8087b3a | |
parent | 284279f61e493bf70a8375eb772d293b9fb5d6bf (diff) | |
download | pandoc-abb9e892e48d32936a35510cb0dc057a27231f42.tar.gz |
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
```
-rw-r--r-- | default.beamer | 3 |
1 files changed, 3 insertions, 0 deletions
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$ |