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.

I do not want dotted lines and page numbers to follow the chapter name in 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

instead of:

  1. This is the first chapter

I am using the book class with this modification:



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
  • 2
    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

Thank you a lot, Thruston, tocloft was really helpfull.

I used the following features of tocloft:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.