# No page numbers after chapters in the contents

Seems that digging for several hours for solution did not help me, so I must ask a question directly.

So, I'm writing a book, that consists of chapters and sections. The deal is with the table of contents.

But I do want them to follow section names.

Also, how can I make TeX write in contents:

Chapter 1. This is the first chapter

1. This is the first chapter

I am using the book class with this modification:

\def\contentsname{Оглавление}
}

\renewcommand{\tableofcontents}{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\Large\contentsname
\@mkboth{%
\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
}

I saw some decisions, but I do not want to write something before each chapter, how can I define it in my package?

Thank you for assistance =)

P.S. A little question: where can I find a manual for writing TeX styles?

• Wow - three questions in one! "The LaTeX Companion", Mittlebach, Goosens et al, AW 2004 is pretty good on how to write packages. – Thruston Nov 18 '13 at 16:21
• Still, what about those three, they all concern one matter, anyway =) – Immelstrom Nov 18 '13 at 16:23
• I think that the tocloft package does all these things.... – Thruston Nov 18 '13 at 16:43
• See this answer – Thruston Nov 18 '13 at 16:45