LaTeX: use mainfont instead of romanfont, allow multiple geometry.
This commit is contained in:
parent
efd4ae929d
commit
329c356da6
1 changed files with 5 additions and 5 deletions
|
@ -5,8 +5,8 @@
|
||||||
\usepackage{fontspec,xltxtra,xunicode}
|
\usepackage{fontspec,xltxtra,xunicode}
|
||||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||||
\newcommand{\euro}{€}
|
\newcommand{\euro}{€}
|
||||||
$if(romanfont)$
|
$if(mainfont)$
|
||||||
\setromanfont{$romanfont$}
|
\setmainfont{$mainfont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(sansfont)$
|
$if(sansfont)$
|
||||||
\setsansfont{$sansfont$}
|
\setsansfont{$sansfont$}
|
||||||
|
@ -19,8 +19,8 @@ $endif$
|
||||||
\usepackage{fontspec}
|
\usepackage{fontspec}
|
||||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||||
\newcommand{\euro}{€}
|
\newcommand{\euro}{€}
|
||||||
$if(romanfont)$
|
$if(mainfont)$
|
||||||
\setromanfont{$romanfont$}
|
\setmainfont{$mainfont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(sansfont)$
|
$if(sansfont)$
|
||||||
\setsansfont{$sansfont$}
|
\setsansfont{$sansfont$}
|
||||||
|
@ -34,7 +34,7 @@ $endif$
|
||||||
\fi
|
\fi
|
||||||
\fi
|
\fi
|
||||||
$if(geometry)$
|
$if(geometry)$
|
||||||
\usepackage[$geometry$]{geometry}
|
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
|
||||||
$endif$
|
$endif$
|
||||||
$if(natbib)$
|
$if(natbib)$
|
||||||
\usepackage{natbib}
|
\usepackage{natbib}
|
||||||
|
|
Loading…
Add table
Reference in a new issue