Hello.
I think there is a bug related to partial TOC. If chapters are included in the document with \include command, \stopcontents command does not work correctly. The chapter included just after \stopcontents is still added to the partial TOC. In the sample below \printcontents gives both chapters while only one is expected. I used pdflatex, TeX Live 2019 on Manjaro Linux. Package titletoc 2019/07/16 v. 2.11, titlesec 2019/07/17 v. 2.11.
Sample document:
\begin{filecontents*}{One}
\chapter{One}
\end{filecontents*}
\begin{filecontents*}{Two}
\chapter{Two}
\end{filecontents*}
\documentclass{book}
\usepackage{titletoc}
\begin{document}
\startcontents
\printcontents{}{0}{}
\include{One}
\stopcontents
\include{Two}
\end{document}
P.S. I've also submitted this issue on http://www.texnia.com.
EDIT. I've tried this sample on overleaf.com. The same result. It used pdflatex, TeX Live 2016/Debian, titletoc 2011/12/15 v1.6.
Hello.
I think there is a bug related to partial TOC. If chapters are included in the document with
\includecommand,\stopcontentscommand does not work correctly. The chapter included just after\stopcontentsis still added to the partial TOC. In the sample below\printcontentsgives both chapters while only one is expected. I used pdflatex, TeX Live 2019 on Manjaro Linux. Packagetitletoc2019/07/16 v. 2.11,titlesec2019/07/17 v. 2.11.Sample document:
P.S. I've also submitted this issue on http://www.texnia.com.
EDIT. I've tried this sample on overleaf.com. The same result. It used pdflatex, TeX Live 2016/Debian,
titletoc2011/12/15 v1.6.