derric / cleanthesis

Clean Thesis is a clean, simple, and elegant LaTeX style (or template) for thesis documents.
http://cleanthesis.der-ric.de/
903 stars 116 forks source link

cleanthesis incompatible with prelim2e #68

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi,

I heavily rely on a package called prelim2e which puts text be­low the nor­mal page con­tent (such as version information). Using cleanthesis, this only works on title pages, empty pages, colophon and declaration, whereas the text should be on every page.

johannesbottcher commented 8 years ago

Please add a minimal working example.

ghost commented 8 years ago

The following MWE is based on the template in the current master branch:

% **************************************************
% Document Class Definition
% **************************************************
\documentclass[%
    paper=A4,               % paper size --> A4 is default in Germany
    twoside=true,           % onesite or twoside printing
    openright,              % doublepage cleaning ends up right side
    parskip=full,           % spacing value / method for paragraphs
    chapterprefix=true,     % prefix for chapter marks
    11pt,                   % font size
    headings=normal,        % size of headings
    bibliography=totoc,     % include bib in toc
    listof=totoc,           % include listof entries in toc
    titlepage=on,           % own page for each title page
    captions=tableabove,    % display table captions above the float env
    draft=false,            % value for draft version
]{scrreprt}%

\PassOptionsToPackage{utf8}{inputenc}
\usepackage{inputenc}

\usepackage[english]{babel} % babel system, adjust the language of the content
\PassOptionsToPackage{% setup clean thesis style
    figuresep=colon,%
    sansserif=false,%
    hangfigurecaption=false,%
    hangsection=true,%
    hangsubsection=true,%
    colorize=full,%
    colortheme=bluemagenta,%
    bibsys=biber,%
%     bibfile=bib-refs,%
    bibstyle=alphabetic,%
    wrapfooter=false,%
}{cleanthesis}
\usepackage{cleanthesis}

% **************************************************
% prelim2e
% **************************************************
\usepackage{prelim2e}
\renewcommand*{\PrelimWords}{\textnormal{\small Draft}}
\renewcommand*{\PrelimText}{\textnormal{\small\textcolor{black!40}{
\PrelimWords\ \quad \today }}}

% **************************************************
% Document CONTENT
% **************************************************
\begin{document}

% --------------------------
% Front matter
% --------------------------
\begin{titlepage}
    \pdfbookmark[0]{Cover}{Cover}
    \flushright
    \hfill
    \vfill
    {\LARGE Thesistitle \par}
    \rule[5pt]{\textwidth}{.4pt} \par
    {\Large Thesisname}
    \vfill
\end{titlepage}
\cleardoublepage

\tableofcontents
\cleardoublepage

% --------------------------
% Body matter
% --------------------------
\chapter{Introduction}
\label{sec:intro}
\Blindtext[2][2]

% --------------------------
% Declaration
% --------------------------
\pdfbookmark[0]{Declaration}{Declaration}
\chapter*{Declaration}
\label{sec:declaration}
\thispagestyle{empty}
You can put your declaration here.

\bigskip
\noindent\textit{ThesisUniversityCity, \today}
\smallskip
\begin{flushright}
    \begin{minipage}{5cm}
        \rule{\textwidth}{1pt}
        \centering ThesisName
    \end{minipage}
\end{flushright}
\cleardoublepage

% **************************************************
% End of Document CONTENT
% **************************************************
\end{document}