Added chapters index to pdf.