Skip to content

Commit

Permalink
Merge pull request #2 from randombenj/feature/typsetting
Browse files Browse the repository at this point in the history
Change some typsetting
  • Loading branch information
randombenj authored Jun 30, 2020
2 parents 146da6c + cd66806 commit 6bb599c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modern.cls
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

\LoadClass[
a4paper,
11pt,
12pt,
fleqn,
oneside,
openany
Expand Down Expand Up @@ -97,12 +97,18 @@
% ----------
% FONT SETUP
\RequirePackage[T1]{fontenc}
% set main font to Source Serif Pro (https://www.tug.org/FontCatalogue/sourceserifproregular/)
\RequirePackage[default,light,black]{sourceserifpro}
% set sans serif font to Gyre Adventor (https://tug.org/FontCatalogue/texgyreadventor/)
\RequirePackage{tgadventor} % defines '\sfdefault'
% monofont Droid Sans Mono (https://tug.org/FontCatalogue/droidsansmono/)
\RequirePackage[defaultmono]{droidmono} % defines '\ttdefault'
\RequirePackage{tgheros} % mainfont and '\rmdefault'

\setmainfont{SourceSerifPro} % sets the roman font
\setsansfont{TEX Gyre Adventor} % sets the sans font
\setmonofont{Droid Sans Mono} % sets the monospace font

% ------------------------------------------------------------------------------
% DOCUMENT PAGE SIZE

Expand Down Expand Up @@ -463,7 +469,7 @@
\Huge\sf\bfseries
}
[
\huge\sf\bfseries\doctitle
\huge\sf\doctitle
\vfill\clearpage
] % After the titleformat

Expand Down

0 comments on commit 6bb599c

Please sign in to comment.