Added romanfont, sansfont, monofont variables to latex template.
Note: These only work with xelatex/lualatex.
This commit is contained in:
parent
188e01f80e
commit
6269b216b4
1 changed files with 15 additions and 4 deletions
|
@ -1,15 +1,26 @@
|
||||||
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$]{$documentclass$}
|
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$]{$documentclass$}
|
||||||
\usepackage{amssymb,amsmath}
|
\usepackage{amssymb,amsmath}
|
||||||
\usepackage{ifxetex,ifluatex}
|
\usepackage{ifxetex,ifluatex}
|
||||||
\ifxetex
|
\newcommand{\SetupFonts}{%
|
||||||
\usepackage{fontspec,xltxtra,xunicode}
|
|
||||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||||
\newcommand{\euro}{€}
|
\newcommand{\euro}{€}
|
||||||
|
$if(romanfont)$
|
||||||
|
\setromanfont{$romanfont$}
|
||||||
|
$endif$
|
||||||
|
$if(sansfont)$
|
||||||
|
\setsansfont{$sansfont$}
|
||||||
|
$endif$
|
||||||
|
$if(monofont)$
|
||||||
|
\setmonofont{$monofont$}
|
||||||
|
$endif$
|
||||||
|
}
|
||||||
|
\ifxetex
|
||||||
|
\usepackage{fontspec,xltxtra,xunicode}
|
||||||
|
\SetupFonts
|
||||||
\else
|
\else
|
||||||
\ifluatex
|
\ifluatex
|
||||||
\usepackage{fontspec}
|
\usepackage{fontspec}
|
||||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
\SetupFonts
|
||||||
\newcommand{\euro}{€}
|
|
||||||
\else
|
\else
|
||||||
\usepackage[utf8]{inputenc}
|
\usepackage[utf8]{inputenc}
|
||||||
\usepackage{eurosym}
|
\usepackage{eurosym}
|
||||||
|
|
Loading…
Add table
Reference in a new issue