added default font option

This commit is contained in:
Paul Baxter 2016-02-18 16:58:55 +00:00
parent cb08ed447f
commit e04225737a
1 changed files with 39 additions and 29 deletions

View File

@ -16,6 +16,9 @@
\newif\if@doNoFlama \newif\if@doNoFlama
\@doNoFlamafalse \@doNoFlamafalse
\DeclareOption{noflama}{\@doNoFlamatrue} \DeclareOption{noflama}{\@doNoFlamatrue}
\newif\if@doBasicFont
\@doBasicFontfalse
\DeclareOption{basicfont}{\@doBasicFonttrue}
\newif\if@doSectionPage \newif\if@doSectionPage
\@doSectionPagefalse \@doSectionPagefalse
\DeclareOption{nosectionpages}{\@doSectionPagetrue} \DeclareOption{nosectionpages}{\@doSectionPagetrue}
@ -118,36 +121,43 @@
% General % General
% Declare fontfamilys % Declare fontfamilys
\if@doNoFlama% \if@doBasicFont%
% Sans serif math option % basic font option
\if@doSans% \newcommand{\Light}{}%
% sans serif math % \newcommand{\Book}{\bf}%
\usepackage[no-math]{fontspec}% \newcommand{\Medium}{\bf}%
\setmainfont{Arial}%
\else%
% serif math %
\usepackage{fontspec}%
\usefonttheme[onlymath]{serif}%
\fi%
\newfontfamily\Light{Arial}%
\newfontfamily\Book{Arial-Bold}%
\newfontfamily\Medium{Arial-Bold}%
\setsansfont{Arial}%
\else% \else%
% Sans serif math option \if@doNoFlama%
\if@doSans% % Sans serif math option
\usepackage[no-math]{fontspec}% \if@doSans%
\setmainfont{FlamaLight}% % sans serif math %
\else% \usepackage[no-math]{fontspec}%
\usepackage{fontspec}% \setmainfont{Arial}%
\usefonttheme[onlymath]{serif}% \else%
\fi% % serif math %
\usepackage{fontspec} \usepackage{fontspec}%
\defaultfontfeatures{Ligatures=TeX} % To support LaTeX quoting style \usefonttheme[onlymath]{serif}%
\newfontfamily\Light{FlamaLight}% \fi%
\newfontfamily\Book{FlamaBook}% \newfontfamily\Light{Arial}%
\newfontfamily\Medium{FlamaMedium}% \newfontfamily\Book{Arial-Bold}%
\setsansfont{FlamaLight}% \newfontfamily\Medium{Arial-Bold}%
\setsansfont{Arial}%
\else%
% Sans serif math option
\if@doSans%
\usepackage[no-math]{fontspec}%
\setmainfont{FlamaLight}%
\else%
\usepackage{fontspec}%
\usefonttheme[onlymath]{serif}%
\fi%
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX} % To support LaTeX quoting style
\newfontfamily\Light{FlamaLight}%
\newfontfamily\Book{FlamaBook}%
\newfontfamily\Medium{FlamaMedium}%
\setsansfont{FlamaLight}%
\fi%
\fi% \fi%
\renewcommand\UrlFont{\Medium} \renewcommand\UrlFont{\Medium}