I am using the pdfpages package for including a few pages of pdf to my main LaTeX document, therefore I would like to add some lines to the table of content for that pages by myself. I am using the titletoc package as well.
I hope something like the following works:
\addtocontents{toc}{Preface to 2ed \titlerule i}
\addtocontents{toc}{Preface to 1ed \titlerule ii}
for the display
Preface to 2ed ............................................ i
Preface to 1ed ............................................ ii
where both "Preface" and the page numbers "i/ii" are typed by myself, while the "titlerule" should be consistent with what is being used.
Can someone help?
\documentclass{...}and ending with\end{document}. – lockstep Jul 04 '13 at 16:42includepdfhas one optional argument where you can specify options. I think you can use the optionaddtolist. – Marco Daniel Jul 04 '13 at 17:06