-
Notifications
You must be signed in to change notification settings - Fork 0
/
bigdaddy.sty
32 lines (27 loc) · 1.13 KB
/
bigdaddy.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{bigdaddy}[2014/02/17]
% Sets the font encoding format to T1 amongst other things
\usepackage[T1]{fontenc}
% Set the default body font to Roboto Slab
\renewcommand{\rmfamily}{roboto}
\renewcommand{\familydefault}{\rmfamily}
\@ifundefined{KOMAClassName} % Checks if a KOMA-Script class has been used
{
% Change the fonts for section and subsection to PT Sans
\usepackage{titlesec}
\titleformat*{\section}{\fontfamily{miso}\selectfont\Large}
\titleformat*{\subsection}{\fontfamily{miso}\selectfont\large}
% Change the font for the \maketitle block to PT Sans
\usepackage{titling}
\renewcommand{\maketitlehooka}{\fontfamily{miso}\selectfont\Huge}
}
{
% Because we're using KOMA-Script, do the above using KOMA functions instead
\setkomafont{title}{\fontfamily{miso}\selectfont}
\setkomafont{sectioning}{\usekomafont{title}}
\setkomafont{descriptionlabel}{\usekomafont{title}}
\setkomafont{pagefoot}{\usekomafont{title}}
}
% Use the microtype package to fix the spacing after the 'c' in Miso
\usepackage[kerning=true]{microtype}
\SetExtraKerning{encoding={*},family={miso}}{c={,-80}}