diff options
author | Vladislav Turbanov <vturbanov@gmail.com> | 2016-05-18 22:02:09 +0400 |
---|---|---|
committer | Vladislav Turbanov <vturbanov@gmail.com> | 2016-05-18 22:02:09 +0400 |
commit | fd4ba42666314d851da89619b5d05924c093046e (patch) | |
tree | 307de46e67f497f4cd7a248cf11712355a73eda7 | |
parent | 63471c3b8cc2e30ccd92f46b2bc40521960fa066 (diff) | |
download | pandoc-fd4ba42666314d851da89619b5d05924c093046e.tar.gz |
Custom font families
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.latex | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/default.latex b/default.latex index 0a1c47391..bc84520a3 100644 --- a/default.latex +++ b/default.latex @@ -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$ |