git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #122 from adunning/patch-1

Allow for font options in LaTeX.

commit229ec44bb6ae116d5cf613bba0486f3757f9cd0d authorJohn MacFarlane <jgm@berkeley.edu> dateSat 3 Oct 2015, 16:57 (11 years ago) parent2f5f5391d72821
1 file changed+5−5
default.latex+5−5
default.latex+5−5
@@ -1,6 +1,6 @@
11\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
22$if(fontfamily)$
3−\usepackage{$fontfamily$}
3+\usepackage[$fontfamilyoptions$]{$fontfamily$}
44$else$
55\usepackage{lmodern}
66$endif$
@@ -27,16 +27,16 @@ $endif$
2727 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
2828 \newcommand{\euro}{€}
2929$if(mainfont)$
30− \setmainfont{$mainfont$}
30+ \setmainfont[$mainfontoptions$]{$mainfont$}
3131$endif$
3232$if(sansfont)$
33− \setsansfont{$sansfont$}
33+ \setsansfont[$sansfontoptions$]{$sansfont$}
3434$endif$
3535$if(monofont)$
36− \setmonofont[Mapping=tex-ansi]{$monofont$}
36+ \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$monofontoptions$$endif$]{$monofont$}
3737$endif$
3838$if(mathfont)$
39− \setmathfont(Digits,Latin,Greek){$mathfont$}
39+ \setmathfont(Digits,Latin,Greek)[$mathfontoptions$]{$mathfont$}
4040$endif$
4141$if(CJKmainfont)$
4242 \usepackage{xeCJK}