Commits

James Tocknell committed 6ce55f4

Some font stuff

Comments (0)

Files changed (3)

texmf/tex/aragilar/aragilar-tufte-lecture-notes.sty

 %% Maths Fonts
 \setmathfont{Asana Math}
 %\setmathfont{STIXGeneral}
-%\setmathfont{XITS Math}  %% NOT WORKING YET
+%\setmathfont{XITS Math}
 
 %%%% SPECIAL PAGES %%%%
 \newcommand{\coverpage}{

texmf/tex/aragilar/aragilar-xetex.sty

 
 
 %%%% FONTS %%%%
+
 %% Text Fonts
 %\setmainfont{Linux Libertine O}
 %\setmainfont{LiberationSerif}
 %\setmainfont{Linden Hill}
 
 %\setmainfont{TeX Gyre Bonum}
-\setmainfont{TeX Gyre Pagella}
+%\setmainfont{TeX Gyre Pagella}
 %\setmainfont{TeX Gyre Schola}
 %\setmainfont{TeX Gyre Termes}
 
-\setmonofont{Inconsolata}
+%\setmainfont{CMU Serif}
+
+\setmainfont[
+  BoldFont={* Demi},
+  ItalicFont={* 7 Italic},
+  BoldItalicFont={* Demi 10 Oblique},
+  SlantedFont={* Slanted},
+  UprightFeatures={SmallCapsFont={Latin Modern Roman Caps}},
+  BoldFeatures={SmallCapsFont={Latin Modern Roman Caps}},
+  ItalicFeatures={SmallCapsFont={Latin Modern Roman Caps}},
+  BoldItalicFeatures={SmallCapsFont={Latin Modern Roman Caps}},
+  SlantedFeatures={SmallCapsFont={Latin Modern Roman Caps}}
+%  SmallCapsFont={* Caps}
+]{Latin Modern Roman}
+
+%\setmonofont{Inconsolata}
 
 %% Heading Fonts
 %\allsectionsfont{\fontspec[SmallCapsFeatures={Letters=SmallCaps},]{Gillius ADF No2mod}\scshape} %scshape gives small caps
-\allsectionsfont{\fontspec[SmallCapsFeatures={Letters=SmallCaps},]{TeX Gyre Pagella}\scshape} %scshape gives small caps
+%\allsectionsfont{\fontspec[SmallCapsFeatures={Letters=SmallCaps},]{TeX Gyre Pagella}\scshape} %scshape gives small caps
+\allsectionsfont{\fontspec[Letters=SmallCaps]{Latin Modern Roman Caps}} %scshape gives small caps
 
 %% Maths Fonts
-\setmathfont{Asana Math}
+%\setmathfont{Asana Math}
 %\setmathfont{STIXGeneral}
-%\setmathfont{XITS Math}  %% NOT WORKING YET
+%\setmathfont{XITS Math}
+\setmathfont{Latin Modern Math}
 
+%\setmathfont{Neo Euler}  %% NOT WORKING YET
+\addfontfeatures{Ligatures=Historic}
+%\addfontfeatures{Contextuals=Swash,Fractions=On,}
 
-
-

texmf/tex/aragilar/font-settings.sty

+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{font-settings}
+
+%%%% SETTING UP CONFIGURATION ENVIRONMENT %%%%
+%% Packages
+\RequirePackage{pgfopts}
+\RequirePackage{boolexpr}
+
+%% Define keys
+\pgfkeys{
+  /ARAFONT/.cd,
+  font-family/.is choice,
+  font-family/Latin Modern/.is if=,
+  mainfont/.store in=\ARAFONT@mainfont,
+  monofont/.store in=\ARAFONT@monofont
+}
+
+%% Define keys if not defined
+
+\ProcessPgfOptions{/ARAFONT}