I have encountered a weird problem (in my eyes) to do with bibliographys in included chapters and the structure of a document and I just cannot find out whats the cause...
In the final document, I want to include a table of contents structured as follows:
I would like NOT to have the page for stating "PART 1 - Introduction", which I want to exclude using this command:
\renewcommand{\part}[1]{\addcontentsline{toc}{part}{#1}}
However, if I include this into my document, I end up with the following TOC:
--> The "Introduction" part moves to the bottom of the TOC
I have already figured out using a MWE, that it has something to do with including the bibliography inside a chapter that I am including, as a MWE with the bibliography in the main file was fine as well as including a chapter without a bibliography was fine - but the combination of those somehow triggers this?
This works:
\documentclass{book}
\usepackage{lipsum}
\renewcommand{\part}[1]{\addcontentsline{toc}{part}{#1}} %removes pages with part headers
\begin{document}
\tableofcontents
\cleardoublepage
\part{Introduction}
%\include{MWE_Chapter}
\chapter{Wabbadabbadupdup} % (fold)
This is just a test and a citation \citep{Carmichael2008} -
\section{Hey ho Lets go}
\lipsum
\bibliographystyle{jneurosci} %apalike, abbrv
\bibliography{library}
\end{document}
This doesn't:
\documentclass{book}
\usepackage{lipsum}
\renewcommand{\part}[1]{\addcontentsline{toc}{part}{#1}} %removes pages with part headers
\begin{document}
\tableofcontents
\cleardoublepage
\part{Introduction}
\include{MWE_Chapter}
\end{document}
with MWE_Chapter being:
\chapter{Wabbadabbadupdup} % (fold)
This is just a test and a citation \citep{Carmichael2008} -
\section{Hey ho Lets go}
\lipsum
\bibliographystyle{jneurosci} %apalike, abbrv
\bibliography{library}
I would really like to know what causes this behavior and if someone can reproduce it? Or if there is another possibility to remove the pages created by the \part syntax without changing the TOC! Thanks!
The same by the way happens if I use
\addcontentsline{toc}{part}{<Header of the part>}
instead of the renewcommand to remove the part page


\partyou will not have any part page again. If you want to remove it from the ToC, you must use more sophisticated strategies – Jan 25 '18 at 20:16\renewcommand{\part}[1]{\addcontentsline{toc}{part}{#1}\null}, because you're getting into troubles with\includehere. Thenon-\includeversion works as expected, but\includehas some issues with\addcontentsline– Jan 25 '18 at 20:25\partcomment. If you just want an entry in the toc, add\addcontentsline{toc}{part}{Introduction}, and if you want to increase the part number, put\stepcounter{part}. – Jan 25 '18 at 20:28\citepis no standard command. – Jan 26 '18 at 19:35