Skip to content

Instantly share code, notes, and snippets.

@denisdefreyne
Created October 6, 2013 17:56
Show Gist options
  • Save denisdefreyne/6857029 to your computer and use it in GitHub Desktop.
Save denisdefreyne/6857029 to your computer and use it in GitHub Desktop.
\defaultfontfeatures{Mapping=tex-text}
\setromanfont[Mapping=tex-text]{GentiumBasic}
\setsansfont{ITC Franklin Gothic LT Medium}
\setmonofont{Consolas}
%%%%%%%%%%
\clubpenalty=10000
\widowpenalty=10000
\raggedbottom
%%%%%%%%%%
\SetKwFor{VoorAlle}{voor alle}{}{eind}
\SetKwInput{Invoer}{invoer}
\SetKwInput{Uitvoer}{uitvoer}
\SetArgSty{textrm}
\SetDataSty{textit}
\DontPrintSemicolon
\SetAlCapFnt{\fontspec{ITC Franklin Gothic LT Medium} \fontsize{11}{11}}
\SetAlCapSty{}
\SetAlCapNameFnt{\itshape}
\SetAlTitleSty{}
\SetAlCapSkip{2ex}
\setlength{\algomargin}{3em}
\makeatletter
\renewcommand{\listalgorithmcfname}{Lijst van algoritmes}%
\renewcommand{\algorithmcfname}{Algoritme}%
\renewcommand{\algocf@typo}{}%
\renewcommand{\@algocf@procname}{Procedure}%
\renewcommand{\@algocf@funcname}{Functie}%
\makeatother
%%%%%%%%%%
\setlength{\heavyrulewidth}{0.15em}
%%%%%%%%%%
% Create
\makeatletter
\makechapterstyle{thesis}{%
\renewcommand{\chapnamefont}{\fontspec{Futura LT Book} \LARGE}
\renewcommand{\chapnumfont}{\fontspec{Futura LT Book} \LARGE}
\renewcommand{\chaptitlefont}{\fontspec{Futura LT Book} \LARGE}
\renewcommand{\chapterheadstart}{\vspace*{\beforechapskip}}
\renewcommand{\printchaptername}{}
\renewcommand{\chapternamenum}{}
\renewcommand{\printchapternum}{\chapnumfont \thechapter}
\renewcommand{\printchaptertitle}[1]{%
\chaptitlefont \MakeUppercase{##1}%
}
\renewcommand{\afterchapternum}{. \space}
\renewcommand{\afterchaptertitle}{\par \nobreak \vskip \afterchapskip}
}
\makeatother
% Use
\chapterstyle{thesis}
%%%%%%%%%%
\renewcommand*{\cftchapterfont}{\fontspec{ITC Franklin Gothic LT Medium}}
\renewcommand*{\cftchapterpagefont}{\fontspec{ITC Franklin Gothic LT Medium}}
\renewcommand*{\cftchapteraftersnum}{.}
\renewcommand*{\cftsectionaftersnum}{.}
%%%%%%%%%%
\captionnamefont{\fontspec{ITC Franklin Gothic LT Medium} \normalsize}
\captiontitlefont{\itshape}
\changecaptionwidth
\captionwidth{13cm}
%%%%%%%%%%
\setsecnumformat{\csname the#1\endcsname. \space}
\setsecheadstyle{\raggedright \fontspec{ITC Franklin Gothic LT Medium} \Large}
\setsubsecheadstyle{\raggedright \fontspec{ITC Franklin Gothic LT Medium} \large}
\setparaheadstyle{\fontspec{ITC Franklin Gothic LT Medium} \normalsize}
%%%%%%%%%%
\lstset{%
basicstyle=\fontspec{Consolas} \small,
aboveskip=\parskip,
belowskip=\parskip,
xrightmargin=3em,
xleftmargin=3em
}
%%%%%%%%%%
% Create
\makepagestyle{thesis}
% Headers and footers - DEFAULT
\makeoddhead{thesis}{}{}{%
\fontspec{ITC Franklin Gothic LT Medium} \fontsize{9}{9} %
\chaptername\ \thechapter:\ \leftmark\hspace{0.2cm}\raisebox{0.05cm}{$\displaystyle \blacktriangleright$}\hspace{0.2cm}\thepage%
}
\makeoddfoot{thesis}{}{}{}
% Headers and footers - CHAPTER
\makeoddhead{plain}{}{}{%
\fontspec{ITC Franklin Gothic LT Medium} \fontsize{9}{9} %
\raisebox{0.05cm}{$\displaystyle \blacktriangleright$}\hspace{0.2cm}\thepage%
}
\makeoddfoot{plain}{}{}{}
% Marks
\makepsmarks{thesis}{%
\nouppercaseheads
\createmark{chapter}{both}{nonumber}{}{}
\createmark{section}{right}{shownumber}{}{. \space}
\createplainmark{toc}{both}{\contentsname}
\createplainmark{lof}{both}{\listfigurename}
\createplainmark{lot}{both}{\listtablename}
\createplainmark{bib}{both}{\bibname}
\createplainmark{index}{both}{\indexname}
\createplainmark{glossary}{both}{\glossaryname}
}
% Use
\pagestyle{thesis}
%%%%%%%%%%
\setlength{\parskip}{3ex}
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\setlength{\parindent}{0pt}
\setlength{\topsep}{0pt}
\setlength{\partopsep}{0pt}
\linespread{1.07}
\titlespacing{\section} {0pt}{3ex}{0pt}
\titlespacing{\subsection} {0pt}{3ex}{0pt}
\titlespacing{\subsubsection}{0pt}{3ex}{0pt}
\titlespacing{\paragraph} {0pt}{0pt}{1em}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment