aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-10-03 16:57:09 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-10-03 16:57:09 -0700
commit229ec44bb6ae116d5cf613bba0486f3757f9cd0d (patch)
treebc71e2f52800432495e5554a5ebcc7cb6cfa4514
parent2f5f539605782f41b0059c46b2ba0a5dfc723540 (diff)
parent1d728214e8c00156030e8796bbc1db0f305442af (diff)
downloadpandoc-229ec44bb6ae116d5cf613bba0486f3757f9cd0d.tar.gz
Merge pull request #122 from adunning/patch-1
Allow for font options in LaTeX.
-rw-r--r--default.latex10
1 files changed, 5 insertions, 5 deletions
diff --git a/default.latex b/default.latex
index c67dbfecb..2deebfecc 100644
--- a/default.latex
+++ b/default.latex
@@ -1,6 +1,6 @@
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
$if(fontfamily)$
-\usepackage{$fontfamily$}
+\usepackage[$fontfamilyoptions$]{$fontfamily$}
$else$
\usepackage{lmodern}
$endif$
@@ -27,16 +27,16 @@ $endif$
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{€}
$if(mainfont)$
- \setmainfont{$mainfont$}
+ \setmainfont[$mainfontoptions$]{$mainfont$}
$endif$
$if(sansfont)$
- \setsansfont{$sansfont$}
+ \setsansfont[$sansfontoptions$]{$sansfont$}
$endif$
$if(monofont)$
- \setmonofont[Mapping=tex-ansi]{$monofont$}
+ \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$monofontoptions$$endif$]{$monofont$}
$endif$
$if(mathfont)$
- \setmathfont(Digits,Latin,Greek){$mathfont$}
+ \setmathfont(Digits,Latin,Greek)[$mathfontoptions$]{$mathfont$}
$endif$
$if(CJKmainfont)$
\usepackage{xeCJK}