Main Text
On the following pages I use Latex to format the pages to my needs. I will give brief comments on each page:
Blank page
This commands creates a blank page without a page number.
\clearpage\mbox{}\thispagestyle{empty}\clearpage
This command tells the document to start counting at this page (page 3), as the first two pages will be removed.
\setcounter{page}{1}
Title page
Needs will be very different. This is the Layout from our Faculty. Just change the name, date and place of birth in case you need this layout. See comments behind some points for additional information.
\thispagestyle{empty} % remove page number from this page
\begin{center}
\vspace*{10mm} % start a bit lower on the page
\textbf{\Large An example document using RMarkdown and papaja to write your dissertation}\\
\begin{figure}[h]
\begin{center}
\includegraphics[width=!,totalheight=!,scale=0.18]{UzKSiegel.jpg}
\end{center}
\end{figure}
{\setstretch{1.7} %set a larger distance between lines to fill the page
Inauguraldissertation\\
zur\\
Erlangung des Doktorgrades\\
der Humanwissenschaftlichen Fakultät\\
der Universität zu Köln \\
nach der Prüfungsordnung vom 10.05.2010 \\
vorgelegt von \\
\smallskip
\textbf{Tobias Heycke}\\ %you probably want to change this
\smallskip
aus \\
Bergisch Gladbach \\ %you probably want to change this
\smallskip
Tag der Abgabe: 01.01.1970\\ %you defiantely want to change this
}
\end{center}
Table of content
The table of content is created by Latex. I added a setstretch of 1 as I found that the line spacing for the main text did not look good for the toc. I added the flushleft command only so pandoc knew I was writing Latex as the “{” was otherwise evaluated as Markdown code and not Latex.
\begin{flushleft}
{\setstretch{1.0}
\tableofcontents
}
\end{flushleft}
Main text
Now all chapters can be included in the main text (see the main Rmd and Chapter Rmd files). I removed all YAML headers from the documents and just added my research articles.