I get a very odd chapter heading in the middle of my abbreviation chapter in my thesis. I simply cannot figure out why and have tried with \clearpage and other tricks, but none worked.
My full main.tex file and abbreviation file can be seen here: Main.tex file
Minimal example. Main.tex file: \documentclass[10pt, a4paper, twoside, english]{report} \input{include/packagescommands} \input{include/settings}
\begin{document}
\setlength{\parskip}{0pt} %spacing between paragraphs
\setcounter{tocdepth}{1}
\tableofcontents
\input{include/abbreviations}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%% CHAPTER 1 INTRODUCTION %%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage \setdefaulthdr \pagenumbering{arabic} \setcounter{page}{1}
\input{include/dummy}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
Abbrevation.tex file:
\chapter*{Abbreviations}
\addcontentsline{toc}{chapter}{\textit{Abbreviations}}
\vspace{-\baselineskip}
\bgroup
\def\arraystretch{0.8}
\begin{center}{
\begin{tabular}{l c l}
A, C, G, T, U&&adenine, cytosine, guanine, thymine, uracil\\
AFM&&atomic force microscopy\\
AGE&&agarose gel electrophoresis\\
...
\end{tabular}
\newpage
\begin{tabular}{l c l}
MASP(s)&&MBL-associated serine protease(s)\\
MBL&&mannan-binding lectin (also known as mannose-binding lectin)\\
...
\end{tabular}}
\end{center}
Dummy.tex file
\chapter[Dummy chapter]{\uppercase{Dummy chapter}}\label{ch:dummy}
dummy text\cite{okholm_quantification_2014}
\section{dummy}
\subsection{dummy}
My packages and settings can be seen here Packages
The relevant parts are extracted below, however, other parts could be relevant this is just my gut feeling.
Packagecommands.tex
\usepackage{fancyhdr}
\usepackage{fncychap}
\usepackage{array}
\usepackage{sectsty}
Settings.tex
%titlespaceing
\titlespacing*{\chapter}{0pt}{-50pt}{30pt} % this alters "before" spacing (the second length argument) to 0
\titlespacing*{\section}{0pt}{10pt}{0pt}
\titlespacing*{\subsection}{0pt}{10pt}{0pt}
\titlespacing*{\subsubsection}{0pt}{10pt}{0pt}
% Fancyheader (see packagescommands.tex for default/special)
\pagestyle{fancy}
\newcommand*\HUGE{\Huge}
\newcommand*\chapnamefont{\normalfont\LARGE\MakeUppercase}
\newcommand*\chapnumfont{\normalfont}
\newcommand*\chaptitlefont{\normalfont\HUGE\bfseries}
\newlength\beforechapskip
\newlength\midchapskip
\setlength\midchapskip{\paperwidth}
\addtolength\midchapskip{-\textwidth}
\addtolength\midchapskip{-\oddsidemargin}
\addtolength\midchapskip{-1in}
\setlength\beforechapskip{18mm}
\titleformat{\chapter}[display]
{\normalfont\filleft}
{{\chapnamefont\chaptertitlename}%
\makebox[0pt][l]{\hspace{.8em}%
\resizebox{!}{\beforechapskip}{\chapnumfont\thechapter}%
\hspace{.8em}%
\rule{\midchapskip}{\beforechapskip}%
}%
}%
{25pt}
{\chaptitlefont}
\titlespacing*{\chapter}
{0pt}{40pt}{40pt}
% Title font
\titleformat*{\section}{\large\bfseries}
\titleformat*{\subsection}{\large\bfseries}
\titleformat*{\subsubsection}{\normalsize\bfseries}
\titleformat*{\paragraph}{\normalsize\bfseries}
\titleformat*{\subparagraph}{\normalsize\bfseries}
Any help with be highly appreciated. Thank you