I'm trying to make a 3 column table of contents, which includes chapter name, page number, and a blank line for grading for a homework assignment. A previous question gave me the answer as to how to prepare this extra blank line using tocloft:
\documentclass[12pt]{report}
\usepackage{tocloft}
\renewcommand{\cftsubsecafterpnum}{\quad\rule{2cm}{0.4pt}}
\renewcommand{\cftsecafterpnum}{\quad\rule{2cm}{0.4pt}}
\setlength{\cftbeforesecskip}{10pt}
\setlength{\cftbeforesubsecskip}{10pt}
\newcommand{\mychapter}[2]{
\setcounter{chapter}{#1}
\setcounter{section}{0}
\chapter*{#2}
\addcontentsline{toc}{chapter}{#2}
}
\setcounter{secnumdepth}{0}
\begin{document}
\tableofcontents
\subsection*{Acknowledgements:}
Problem 1c: Jack Smith helps me with deriving this and that.
\clearpage
\mychapter{1}{Section 1.1 Problems}
\section{Problem 1}
\subsection{Part C}
\section{Problem 1d}
\mychapter{2}{Section 1.2 Problems}
\mychapter{3}{Problem A}
\mychapter{4}{Problem B}
\end{document}

However, I want \quad\rule{2cm}{0.4pt} to appear after the page number of problems A and B, but not the other chapters. E.g. I want to apply \cftchapafterpnum to specific entries if that's possible. If the way I've been doing this is inconvenient please let me know, especially if there's a way to get a title on each section, (i.e. label the vertical columns "chapter", "page", and "grade".) Also, elementary question I know, but how do you get chapters to appear on the same page? E.g. avoid automatically making chapters on separate pages in the report class?

etocshould be able to do this. – jon Jan 24 '14 at 03:59