Commit ba5a1178 authored by Dominik Kaaser's avatar Dominik Kaaser
Browse files

hide content of preface environment for proposal

parent 0d16ef29
Loading
Loading
Loading
Loading
+10 −1
Changes for thesis/thesis.cls: 10 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -22,6 +22,9 @@
\def\backmatter{}
\let\orig@subject\subject
\def\subject#1{\orig@subject{#1 Proposal}}
\def\tableofcontents{}
\def\listoffigures{}
\def\listoftables{}
\fi

\PassOptionsToPackage{a4paper, right=40mm, left=20mm, top=40mm, bottom=40mm, headsep=10mm, footskip=20mm, headheight=10mm, nomarginpar, bindingoffset=20mm}{geometry}
@@ -196,12 +199,18 @@ Supervisors:
}

% Abstract
\ifproposal
\RequirePackage{comment}
\excludecomment{preface}
\excludecomment{abstract}
\else
\newenvironment{preface}[1]{\markboth{#1}{}%
\chapter*{#1}%
\addcontentsline{toc}{chapter}{#1}}
{\ifproposal\else\cleardoublepage\fi}
{\cleardoublepage}

\newenvironment{abstract}{\preface{Abstract}}{\endpreface}
\fi

% Biblatex
\PassOptionsToPackage{style=alphabetic,