Allow for font options.
This commit is contained in:
parent
2f5f539605
commit
1d728214e8
1 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
|
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
|
||||||
$if(fontfamily)$
|
$if(fontfamily)$
|
||||||
\usepackage{$fontfamily$}
|
\usepackage[$fontfamilyoptions$]{$fontfamily$}
|
||||||
$else$
|
$else$
|
||||||
\usepackage{lmodern}
|
\usepackage{lmodern}
|
||||||
$endif$
|
$endif$
|
||||||
|
@ -27,16 +27,16 @@ $endif$
|
||||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||||
\newcommand{\euro}{€}
|
\newcommand{\euro}{€}
|
||||||
$if(mainfont)$
|
$if(mainfont)$
|
||||||
\setmainfont{$mainfont$}
|
\setmainfont[$mainfontoptions$]{$mainfont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(sansfont)$
|
$if(sansfont)$
|
||||||
\setsansfont{$sansfont$}
|
\setsansfont[$sansfontoptions$]{$sansfont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(monofont)$
|
$if(monofont)$
|
||||||
\setmonofont[Mapping=tex-ansi]{$monofont$}
|
\setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$monofontoptions$$endif$]{$monofont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(mathfont)$
|
$if(mathfont)$
|
||||||
\setmathfont(Digits,Latin,Greek){$mathfont$}
|
\setmathfont(Digits,Latin,Greek)[$mathfontoptions$]{$mathfont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(CJKmainfont)$
|
$if(CJKmainfont)$
|
||||||
\usepackage{xeCJK}
|
\usepackage{xeCJK}
|
||||||
|
|
Loading…
Add table
Reference in a new issue