aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Turbanov <vturbanov@gmail.com>2016-05-18 22:02:09 +0400
committerVladislav Turbanov <vturbanov@gmail.com>2016-05-18 22:02:09 +0400
commitfd4ba42666314d851da89619b5d05924c093046e (patch)
tree307de46e67f497f4cd7a248cf11712355a73eda7
parent63471c3b8cc2e30ccd92f46b2bc40521960fa066 (diff)
downloadpandoc-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.latex3
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$