I would like to add an explanation to each chapter... like the picture...

enter image description here

Is there a way to edit the TOC in this way??

I need to have a similar result to the one shown in the picture above.

  • Alright, do you suggest me to create another question?
    – Adriano
    Sep 8 '16 at 18:51
  • Yes, that would be better, you can link to this question of course
    – user31729
    Sep 8 '16 at 19:40

I assume that the descriptions should not be used with page numbers as well, so I provide a macro named \desctotoc which writes the argument to the ToC and leaves some medium vertical space afterwards.

In order to prevent fragile commands causing errors, I used a \detokenize - approach within \addtocontents which is the 'master' macro for writing contents to a ToC - related file.





    \item foo
    \item bar




enter image description here

  • Thanks a lot! Would it be possible to include any description AND page number? Anyway helped lots. thanks
    – Adriano
    Sep 5 '16 at 4:46
  • @Adriano - Do you know about the \pageref command to generate call-outs to page numbers?
    – Mico
    Sep 5 '16 at 5:19
  • @Mico Went looking for some help about the \pageref, but I do not know how to include the page number in its aproppriate place.
    – Adriano
    Sep 7 '16 at 22:48

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.