I've used this code
\addtocontents{toc}{\cftpagenumbersoff{chapter}}
to remove the dots and page numbers after the entries in my ToC for all chapters. Is there a way to do this just for an arbitrary chapter?
The following is essentially the code I have.
\documentclass[twoside,openright, titlepage,numbers=noenddot, headinclude, %openany openright oneside twoside
footinclude=true,cleardoublepage=empty, abstractoff,
BCOR=5mm,paper=a4,fontsize=11pt,%11pt,a4paper,
ngerman,american
]{scrreprt}
\usepackage{tocloft}
\addtocontents{toc}{\cftpagenumbersoff{chapter}}
\begin{document}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\tableofcontents
\chapter{Test Chapter One}
\index{arte}
\section{Section One One}
\section{Section One Two}
\chapter{Test Chapter Two}
\section{Section Two One}
\section{Section Two Two}
\end{document}
The result is this
What I want is, for instance, only Test Chapter Two with dots after the title.
In particular is there a way to make the dots appear when the chapter has no sections?
.toc
file it self in order to remove it, and then once more to add it again afterwards. Wouldn't it look odd with a varying design?