Chapters are nesting (appears as sections) within references in Table of Contents

by Thomasblindhardt   Last Updated May 16, 2019 05:23 AM

The title says it all.

Im a little confused on why this is happening and im blind to whats wrong. (dont mind the second appendix B, i've changed that to C) However, the appendix A is a subfile.tex with chapter*.

The appendix are un-numbered chapters*

This is document.tex (main)

\clearpage
\bibliographystyle{plain}
\bibliography{./library}
\cleardoublepage

\subfile{\main/app/app1}\label{sec:app1} % Appendix A 
\addcontentsline{toc}{chapter}{\numberline{}Appendix A}

This is app1.tex:

\providecommand{\main}{..}
\documentclass[\main/document.tex]{subfiles}


\begin{document}

\onlyinsubfile
\notinsubfile

\chapter*{\center{ {\large Appendix} {\Huge I}}}
\cleardoublepage

%------------------------------------------
\section{Stereotaxic surgery, drug delivery and head holder implantation}

Let me know if you need more from the main.tex however its very very looong



Related Questions


Updated August 30, 2017 09:23 AM

Updated January 11, 2018 15:23 PM

Updated July 21, 2018 15:23 PM

Updated April 05, 2015 00:09 AM

Updated May 26, 2015 21:09 PM